Backport #5629

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

Added by hannibal (Masafumi Kiribayashi) 6 months ago. Updated 4 months ago.

[ruby-dev:44864]
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となります。 日本語名のディレクトリを途中に挟む場合に発生します。

test.rb (243 Bytes) hannibal (Masafumi Kiribayashi), 11/14/2011 01:27 pm


Related issues

duplicates Backport93 - Backport #5601: Ruby 1.9.3 fails to compile in directories with accent in... Closed 11/09/2011

Associated revisions

Revision 34435
Added by usa (Usaku NAKAMURA) 4 months ago

merge revision(s) 33603: * file.c (file_expand_path): reset coderange after expanding path. [Backport #5601] [Backport #5629]

History

Updated by usa (Usaku NAKAMURA) 4 months ago

  • Status changed from Open to Closed

Also available in: Atom PDF