This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: Sorry... (was: Re: Bug: cygwin Perl uses File/Spec/Unix.pm instead of File/Spec/Win3 2.pm)
- From: George Necula <necula at eecs dot berkeley dot edu>
- To: "'Gerrit P. Haase'" <freeweb at nyckelpiga dot de>, cygwin at cygwin dot com, perl5-porters at perl dot org
- Date: Tue, 2 Apr 2002 08:28:49 -0800
- Subject: RE: Sorry... (was: Re: Bug: cygwin Perl uses File/Spec/Unix.pm instead of File/Spec/Win3 2.pm)
I have fixed the bug in my copy by changing the implementation of
File::Spec::Unix->file_name_is_absolute to check whether $^O is cygwin and
use the rule from Win32.pm. There are other places in the file where such
conditionals occur.
As to one of the previous replies saying to use ActivePerl on Windows, that
is not helpful at all. ActivePerl won't understand /cygdrive/c notation,
which makes it hard to have a cygwin installation working with ActivePerl.
So far I noticed that the C:/Test notation is understood by everybody
(cygwin, Windows tools) so it seems like a good middle ground.
George.
> -----Original Message-----
> From: Gerrit P. Haase [mailto:freeweb@nyckelpiga.de]
> Sent: Tuesday, April 02, 2002 4:26 AM
> To: George Necula; cygwin@cygwin.com; perl5-porters@perl.org
> Subject: Sorry... (was: Re: Bug: cygwin Perl uses
> File/Spec/Unix.pm instead of File/Spec/Win3 2.pm)
>
>
> Gerrit schrieb:
>
> Not that nice, excuse me please.
>
> >> To reproduce the bug:
> >> perl -e 'use File::Spec; print
> >> File::Spec->file_name_is_absolute("C:/test")
> >> ? "no bug" : "bug";'
>
> This should be handled by cygwin1.dll.
> E.g. it is possible to type:
> $ mkdir c:/test
> $ ls c:/test
> and so on.
> Since CygwinPerl is linked against cygwin1.dll it should work
> inside Perl too.
>
>
> Gerrit
> --
> =^..^=
>
--
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/