develooper Front page | perl.perl5.porters | Postings from July 2008

Re: [rt.cpan.org #37251] File::Spec->case_tolerant works only on systems where one filesystem type is installed

Thread Previous | Thread Next
From:
Craig A. Berry
Date:
July 3, 2008 11:25
Subject:
Re: [rt.cpan.org #37251] File::Spec->case_tolerant works only on systems where one filesystem type is installed
Message ID:
c9ab31fc0807031121x78c9f683m271f5e6f772e5e63@mail.gmail.com
On Thu, Jul 3, 2008 at 2:26 AM, Reini Urban <rurban@x-ray.at> wrote:

> The problem is: What is the first arg and the default arg for
> case_tolerant on VMS?
>
> For Win32 it's the driveletter, default "c:", jan wants $ENV{SYSTEMDRIVE})
> for cygwin/unix it's the mount point as in /etc/fstab, default "/"
> for VMS? for ODS-5 I would just make it overridable for now. or use a
> saner default.

If you want to default to the system disk, you can use sys$sysdevice,
but as John said, case sensitivity is an attribute of a process and
not of a disk volume.  As of 5.10.0, the process setting is available
via VMS::Filespec::case_tolerant_process().  I suppose the correct
behavior is that if we can get at that setting and if it returns
false, then File::Spec->case_tolerant returns false.  Otherwise it
returns true.  I suppose we can just ignore the argument.

I think Schwern once did a case tolerant probe empirically -- not sure
how slow it was.

> Should all the core libs be updated to use this enhancement,
> or just user-code which really need it?
> Think of Module::Build (the worst) and Module::Install

What exactly do you want to do differently when case tolerance is
available as opposed to when it's not?

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About