[Jifty-commit] r1549 - jifty/trunk/lib/Jifty

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Thu Jul 13 02:53:10 EDT 2006


Author: audreyt
Date: Thu Jul 13 02:53:09 2006
New Revision: 1549

Modified:
   jifty/trunk/lib/Jifty/Util.pm

Log:
* Fix Jifty-Win32 by having canonicalize_path always returning
  /-separated paths, never \-separated paths.

Modified: jifty/trunk/lib/Jifty/Util.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Util.pm	(original)
+++ jifty/trunk/lib/Jifty/Util.pm	Thu Jul 13 02:53:09 2006
@@ -47,7 +47,8 @@
 =head2 canonicalize_path PATH
 
 Takes a "path" style /foo/bar/baz and returns a canonicalized (but not necessarily absolute)
-version of the path.
+version of the path.  Always use C</> as the separator, even on platforms which recognizes
+both C</> and C<\> as valid separators in PATH.
 
 =cut 
 
@@ -73,7 +74,7 @@
     }
 
     
-    return File::Spec->catdir(@newpath);
+    return File::Spec::Unix->catdir(@newpath);
 
 
 }


More information about the Jifty-commit mailing list