Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <00a901c1d821$daef49c0$5b46fea9@mchasecompaq> From: "Michael A Chase" To: "George Necula" , References: <4E06A937DADC3842ACE4D3A1096A9EAC0297C6 AT JANUS DOT eecs DOT berkeley DOT edu> Subject: Re: cygwin Perl uses File/Spec/Unix.pm instead of File/Spec/Win32.pm Date: Sat, 30 Mar 2002 11:31:06 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 From: "George Necula" To: 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 AT perl DOT 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/