From: Ryan Davis Date: 2011-01-11T05:06:44+09:00 Subject: [ruby-core:34312] Re: [Ruby 1.9-Bug#4255][Closed] When on a case-insensitive filesystem, "loaded features" search in require should ignore case On Jan 10, 2011, at 06:41 , Benoit Daloze wrote: > On 10 January 2011 14:47, Nobuyoshi Nakada wrote: >> This issue was solved with changeset r30508. >> >> * include/ruby/defines.h (CASEFOLD_FILESYSTEM): HFS+ is case insensitive. > > That is not always true, unfortunately, you can have a HFS+ case > sensitive partition. > However, it seems the system partition is formatted by default as case > insensitive HFS+. > So, it would be best to check case sensitivity for HFS+ instead of > assuming, if that is possible. Yup. I run case-sensitive HFS+ on both my root and backup disk, but interact with case-insensitive disks from time to time. > Also, it is not optimal to determine case sensitivity at compile time. > The ideal would be to be able check the case sensitivity of the > partition where the concerned file is. > But I guess that is not easy and would impact too much the performance. Agreed that you can't determine at compile time. It could switch from run to run... But I think it would be ok to check once per filesystem. But as soon as you do that you open up another set of cross-platform issues (determining mounts, etc).