* [ruby-core:119536] [Ruby master Bug#20801] Handling non-ascii drive letter on Windows
@ 2024-10-21 8:50 mame (Yusuke Endoh) via ruby-core
0 siblings, 0 replies; only message in thread
From: mame (Yusuke Endoh) via ruby-core @ 2024-10-21 8:50 UTC (permalink / raw)
To: ruby-core; +Cc: mame (Yusuke Endoh)
Issue #20801 has been reported by mame (Yusuke Endoh).
----------------------------------------
Bug #20801: Handling non-ascii drive letter on Windows
https://bugs.ruby-lang.org/issues/20801
* Author: mame (Yusuke Endoh)
* Status: Feedback
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
On Windows, non-ascii drive letters are allowed for virtual drives. Some Ruby methods do not seem to handle this well.
```
subst ä: C:\tmp\
```
```ruby
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.
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-10-21 8:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-21 8:50 [ruby-core:119536] [Ruby master Bug#20801] Handling non-ascii drive letter on Windows mame (Yusuke Endoh) via ruby-core
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).