develooper Front page | perl.perl5.porters | Postings from August 2003

[PATCH] File::Spec::Win32

Thread Previous | Thread Next
From:
Mattia Barbon
Date:
August 18, 2003 05:53
Subject:
[PATCH] File::Spec::Win32
Message ID:
Mahogany-0.64.2-1068-20030818-141631.00@rbnet.it
  Hello,
this is the version in maintperl (File::Spec::Win32 version = 1.4,
File::Spec version = 0.86), and it's currently broken, because it calls a
->cwd method on itself, which isn't present. Patch adds the method (back?).
  Alternatives are renaming the method to _cwd (since it's not documented)
or rewrite the code to explicitly do the require (as in File::Spec::Unix).

Regards
Mattia

P.S.: maintperl on Win32 currently fails a lot of tests because of this

--- lib/File/Spec/Win32.pm.orig Sun Aug 17 11:18:40 2003
+++ lib/File/Spec/Win32.pm      Mon Aug 18 13:47:16 2003
@@ -352,4 +352,10 @@
 }

+# for backward compatibility
+sub cwd {
+    require Cwd;
+    return Cwd::cwd();
+}
+
 =back




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