Bug #16391
Updated by nobu (Nobuyoshi Nakada) over 4 years ago
Directory globbing case sensitivity is os-dependent (https://ruby-doc.org/core-2.6.5/Dir.html, glob, "Case sensitivity depends on your system"); On Windows 10, directory globbing is case insensitive, and may return glob matches that do not match the case of the query. Unfortunately, `File.fnmatch` File.fnmatch seems to be case sensitive, so this is not a workaround. Expected: If `Dir.pwd` Dir.pwd => `'C:/users/dave/Documents'` 'C:/users/dave/Documents' (lower case for users) then `Dir[Dir.pwd+'/*']` Dir[Dir.pwd+'/*'] => `['C:/users/dave/Documents/...',...]` ['C:/users/dave/Documents/...',...] (lower case for users), not `[C:/Users/dave/Documents/...',...]` [C:/Users/dave/Documents/...',...] (upper case Users) Impact: Rails 6.0 Activeview implementation has an assumption that case in pwd will match that in glob