This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]