Project

General

Profile

Actions

Bug #20801

closed

Handling non-ascii drive letter on Windows

Added by mame (Yusuke Endoh) 3 months ago.

Status:
Feedback
Assignee:
-
Target version:
-
[ruby-core:119536]

Description

On Windows, non-ascii drive letters are allowed for virtual drives. Some Ruby methods do not seem to handle this well.

subst ä: C:\tmp\
File.absolute_path?("ä:/")      #=> expected: true, actual: false

File.write("ä:/foo.txt", "foo")

Dir.glob("c:/tmp/*.txt")        #=> ["c:/tmp/foo.txt"]
Dir.glob("ä:/*.txt")            #=> expected: ["ä:/foo.txt"], actual: []

Dir.entries("ä:/")              #=> [".", "..", "foo.txt"]

It would be nice if someone more familiar with Windows could do a more comprehensive investigation and write a patch.

No data to display

Actions

Also available in: Atom PDF

Like0