Backport #5629
Windows環境で日本語を含むパスに対して、File.expand_path が存在しないパスを返すパターンが存在する。
| Status: | Closed | Start date: | 11/14/2011 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - |
Description
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となります。
日本語名のディレクトリを途中に挟む場合に発生します。
Related issues
Associated revisions
History
Updated by usa (Usaku NAKAMURA) 4 months ago
- Status changed from Open to Closed