2008/10/8 jerry gay <[EMAIL PROTECTED]>:
> On Wed, Oct 8, 2008 at 1:59 PM, Nicholas Clark <[EMAIL PROTECTED]> wrote:
>> On Wed, Oct 08, 2008 at 01:48:17PM -0700, chromatic wrote:
>>
>>> In general, filesystems are case-insensitive, not platforms.  I believe Mac 
>>> OS
>>> X's Hateful File System Plus is one offender, though you can use UFS 
>>> instead.
>>
>> HFS+ itself can be set to case sensitive. I have a machine partitioned so 
>> that
>> it has a case sensitive partition, as well as a boot partition with the
>> default.
>>
>> I have no idea whether NTFS can be set to case sensitive. I wouldn't be
>> surprised if it can, and that that would thoroughly surprise most programs 
>> :-)
>>
>> Likewise, *nix can mount file systems from machines that are not case
>> sensitive. You just can't know.
>>
> i believe ntfs 5.0 can be set case sensitive--i haven't been crazy
> enough to try.
>
> give me a method of detecting the file system upon which these tests
> are running,
> and i'll give you a box of doughnuts. i might even modify the test.
> ~jerry

I've added those tests for cygwin and MSWin32 to blead perl recently.
See perl-current\lib\File\Spec\Win32.pm: case_tolerant()

"Cygwin case-tolerance depends on managed mount settings and
as with MSWin32 on GetVolumeInformation() $ouFsFlags == FS_CASE_SENSITIVE,
indicating the case significance when comparing file specifications.
Since XP FS_CASE_SENSITIVE is effectively disabled for the NT subsystem.
See http://cygwin.com/ml/cygwin/2007-07/msg00891.html";
-- 
Reini Urban
http://phpwiki.org/              http://murbreak.at/

Reply via email to