From: nobu@ruby-lang.org
To: ruby-core@ruby-lang.org
Subject: [ruby-core:90223] [Ruby trunk Feature#15363] Case insensitive file systems - add info to CONFIG or somewhere?
Date: Sun, 02 Dec 2018 12:37:25 +0000 (UTC) [thread overview]
Message-ID: <redmine.journal-75343.20181202123724.fb67bca3c314286d@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-15363.20181130233410@ruby-lang.org
Issue #15363 has been updated by nobu (Nobuyoshi Nakada).
Case-sensitiveness is runtime environment property, and may differ per mounted volumes.
----------------------------------------
Feature #15363: Case insensitive file systems - add info to CONFIG or somewhere?
https://bugs.ruby-lang.org/issues/15363#change-75343
* Author: MSP-Greg (Greg L)
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
----------------------------------------
I was under the impression that Windows was the only case insensitive file system. That is not the case. In RubyGems, there are places in both code and tests where this needs to be accounted for.
Although none come to mind, the same may exist here. I haven't seen anything defining it's state. If I'm not mistaken, could something like the following be added, maybe as an additional CONFIG key or constant somewhere?
```ruby
if __FILE__ != __FILE__.downcase
FS_CASE_INSENS = File.exists?(__FILE__.downcase)
elsif __FILE__ != __FILE.upcase
FS_CASE_INSENS = File.exists?(__FILE__.upcase)
else
FS_CASE_INSENS = true # indeterminate? assume true?
end
p "FS_CASE_INSENS #{FS_CASE_INSENS}"
```
Thanks, Greg
--
https://bugs.ruby-lang.org/
next prev parent reply other threads:[~2018-12-02 12:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <redmine.issue-15363.20181130233410@ruby-lang.org>
2018-11-30 23:34 ` [ruby-core:90198] [Ruby trunk Feature#15363] Case insensitive file systems - add info to CONFIG or somewhere? Greg.mpls
2018-12-01 15:51 ` [ruby-core:90211] " hanmac
2018-12-01 16:27 ` [ruby-core:90213] " pdahorek
2018-12-01 16:36 ` [ruby-core:90214] " Greg.mpls
2018-12-01 16:41 ` [ruby-core:90215] " pdahorek
2018-12-02 12:37 ` nobu [this message]
2018-12-02 13:01 ` [ruby-core:90224] " nobu
2018-12-02 15:10 ` [ruby-core:90225] " Greg.mpls
2018-12-03 0:00 ` [ruby-core:90232] " nobu
2018-12-03 3:54 ` [ruby-core:90243] " Greg.mpls
2018-12-03 4:30 ` [ruby-core:90245] " nobu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.ruby-lang.org/en/community/mailing-lists/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=redmine.journal-75343.20181202123724.fb67bca3c314286d@ruby-lang.org \
--to=ruby-core@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).