This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: cygwin Perl uses File/Spec/Unix.pm instead of File/Spec/Win32.pm
- From: "Michael A Chase" <mchase at ix dot netcom dot com>
- To: "George Necula" <necula at eecs dot berkeley dot edu>,<cygwin at cygwin dot com>
- Date: Sat, 30 Mar 2002 11:31:06 -0800
- Subject: Re: cygwin Perl uses File/Spec/Unix.pm instead of File/Spec/Win32.pm
- References: <4E06A937DADC3842ACE4D3A1096A9EAC0297C6@JANUS.eecs.berkeley.edu>
From: "George Necula" <necula@eecs.berkeley.edu>
To: <cygwin@cygwin.com>
Sent: Saturday, March 30, 2002 10:32
Subject: Bug: cygwin Perl uses File/Spec/Unix.pm instead of
File/Spec/Win32.pm
> To reproduce the bug:
> perl -e 'use File::Spec; print
File::Spec->file_name_is_absolute("C:/test")
> ? "no bug" : "bug";'
>
> To fix the bug add a line
>
> cygwin => 'Win32',
>
> at the beginning of File/Spec.pm in the definition of the %modules hash
> table.
This is a standard Perl module, so you should send bug reports to
perlbug@perl.org. Run perlbug to help you format the report to them.
File/Spec/Unix.pm already has a special case for Cygwin in canonpath, so
they may be willing to make another special case for "x:/".
Try "/cygdrive/c/test" instead, "C:/test" isn't a POSIX path.
By using File/Spec/Win32.pm, you are causing other filename handling to be
done incorrectly for Cygwin.
--
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/