[#113435] [Ruby master Feature#19634] Pattern matching dynamic key — "baweaver (Brandon Weaver) via ruby-core" <ruby-core@...>
Issue #19634 has been reported by baweaver (Brandon Weaver).
6 messages
2023/05/09
[#113489] [Ruby master Bug#19642] Remove vectored read/write from `io.c`. — "ioquatix (Samuel Williams) via ruby-core" <ruby-core@...>
Issue #19642 has been reported by ioquatix (Samuel Williams).
10 messages
2023/05/15
[ruby-core:113635] [Ruby master Misc#19691] File.realpath on Windows does not return actual case of the file
From:
"jeremyevans0 (Jeremy Evans) via ruby-core" <ruby-core@...>
Date:
2023-05-24 16:36:24 UTC
List:
ruby-core #113635
Issue #19691 has been updated by jeremyevans0 (Jeremy Evans).
Subject changed from Case insensitive file systems, require filename casing to File.realpath on Windows does not return actual case of the file
Status changed from Feedback to Open
Looks like #17885 fixed the issue for case-insensitive Mac OS file systems. However, it is not fixed on Windows because `File.realpath` on Windows doesn't fix the case:
```ruby
File.realpath('a')
# => "C:/Users/jeremye/a"
File.realpath('A')
# => "C:/Users/jeremye/A"
```
Not sure if that is considered a bug in `File.realpath`, but it would be nice if `File.realpath` returned the actual case of the file.
----------------------------------------
Misc #19691: File.realpath on Windows does not return actual case of the file
https://bugs.ruby-lang.org/issues/19691#change-103279
* Author: MSP-Greg (Greg L)
* Status: Open
* Priority: Normal
----------------------------------------
I don't know what I think of this (expected or bug), but recently in a forum I saw an issue that I don't recall accidentally doing myself. An equivalent example:
```
ruby -rsingleton -rSingleton -e "puts 'case issue'"
```
Note the change of casing with `Singleton`.
On case insensitive file systems, the above will double load the file, which errors.
Obviously, on case sensitive file systems, it errors with `cannot load such file -- Singleton`
So, options are:
A. No change to current behavior, which I'm fine with.
B. If the OS is case insensitive, don't reload the file, and maybe a warning that `Singleton` and `singleton` are equivalent.
--
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/postorius/lists/ruby-core.ml.ruby-lang.org/