On Jun 15, 2011, at 12:01 AM, DJ Delorie wrote: > >> This is wrong as not all FSs are case insensitive. In fact HFS+ can >> be case sensitive too. I think you need better check than just >> saying all Darwin is case insensitive. This is just like using >> FAT32 on Linux. In fact I think HAVE_DOS_BASED_FILE_SYSTEM is >> incorrect also for NTFS as it can also be case sensitive. > > There's a difference between case preserving and case sensitive, > though, and we really don't have a portable way to detect > case-sensitivity on a per-directory basis, sow how can we do better?
Seconded. I have mixed feelings about this issue. Handling HFS as case insensitive might not be user friendly, but on the other hand it might be boring for developers working on a case sensitive HFS with two files that differs only in case. We can do something better using pathconf(2) with the _PC_CASE_SENSITIVE, but this would result in an API change and maybe performance issue. Tristan.