[Backport93 - Backport #5629][Open] Windows環境で日本語を含むパスに対して、File.expand path が存在しないパスを返すパターンが存在する。

Issue #5629 has been reported by Masafumi Kiribayashi.


Backport #5629: Windows環境で日本語を含むパスに対して、File.expand_path
が存在しないパスを返すパターンが存在する。

Author: Masafumi Kiribayashi
Status: Open
Priority: Normal
Assignee:
Category:
Target version:

Windows環境の1.9.3-p0において、(http://rubyinstaller.org/のバイナリでテスト)
path1 = “H:/TEMP/いろは/file”
というファイルが存在したとして、
path2 = File.expand_path(path1)
とすると、
path1 == path2 => true
File.exist?(path1) => true
File.exist?(path2) => false
となります。
1.8.7-p352、1.9.2-p290では、すべてtrueとなります。
日本語名のディレクトリを途中に挟む場合に発生します。

Issue #5629 has been updated by Usaku NAKAMURA.

Status changed from Open to Closed


Backport #5629: Windows環境で日本語を含むパスに対して、File.expand_path
が存在しないパスを返すパターンが存在する。

Author: Masafumi Kiribayashi
Status: Closed
Priority: Normal
Assignee:
Category:
Target version:

Windows環境の1.9.3-p0において、(http://rubyinstaller.org/のバイナリでテスト)
path1 = “H:/TEMP/いろは/file”
というファイルが存在したとして、
path2 = File.expand_path(path1)
とすると、
path1 == path2 => true
File.exist?(path1) => true
File.exist?(path2) => false
となります。
1.8.7-p352、1.9.2-p290では、すべてtrueとなります。
日本語名のディレクトリを途中に挟む場合に発生します。