From: "MSP-Greg (Greg L) via ruby-core" Date: 2023-05-24T16:55:24+00:00 Subject: [ruby-core:113636] [Ruby master Misc#19691] File.realpath on Windows does not return actual case of the file Issue #19691 has been updated by MSP-Greg (Greg L). @nobu Thanks. Using the following Windows Rubies, I get different results. All double load and throw `NameError`: ``` ruby 3.1.4p223 (2023-03-30 revision 957bb7cb81) [x64-mingw-ucrt] ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x64-mingw-ucrt] ruby 3.3.0dev (2023-05-24T13:45:34Z master 6d976eb534) [x64-mingw-ucrt] ruby 3.3.0dev (2023-05-24T13:45:34Z master 6d976eb534) [x64-mswin64_140] ``` ---------------------------------------- Misc #19691: File.realpath on Windows does not return actual case of the file https://bugs.ruby-lang.org/issues/19691#change-103280 * 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/