Project

General

Profile

Actions

Backport #5629

closed

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

Added by hannibal (Masafumi Kiribayashi) over 12 years ago. Updated about 12 years ago.

Status:
Closed
Assignee:
-
[ruby-dev:44864]

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


Files

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

Related issues 1 (0 open1 closed)

Is duplicate of Backport193 - Backport #5601: Ruby 1.9.3 fails to compile in directories with accent in their namesClosed11/09/2011Actions

Updated by usa (Usaku NAKAMURA) about 12 years ago

  • Status changed from Open to Closed
Actions

Also available in: Atom PDF

Like0
Like0