[#119637] Behavior of raising from rescue blocks when multiple rescue blocks exist — Rodrigo Rosenfeld Rosas via ruby-core <ruby-core@...>
Hello, I couldn't find any documentation about the subject, so I thought
3 messages
2024/10/29
[ruby-core:119536] [Ruby master Bug#20801] Handling non-ascii drive letter on Windows
From:
"mame (Yusuke Endoh) via ruby-core" <ruby-core@...>
Date:
2024-10-21 08:50:10 UTC
List:
ruby-core #119536
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 Ru=
by methods do not seem to handle this well.
```
subst =E4: C:\tmp\
```
```ruby
File.absolute_path?("=E4:/") #=3D> expected: true, actual: false
File.write("=E4:/foo.txt", "foo")
Dir.glob("c:/tmp/*.txt") #=3D> ["c:/tmp/foo.txt"]
Dir.glob("=E4:/*.txt") #=3D> expected: ["=E4:/foo.txt"], actual:=
[]
Dir.entries("=E4:/") #=3D> [".", "..", "foo.txt"]
```
It would be nice if someone more familiar with Windows could do a more comp=
rehensive investigation and write a patch.
--=20
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.rub=
y-lang.org/