Author: gonzalo
Date: 2005-04-13 19:03:14 -0400 (Wed, 13 Apr 2005)
New Revision: 42970
Modified:
trunk/mcs/class/corlib/System.IO/ChangeLog
trunk/mcs/class/corlib/System.IO/Path.cs
Log:
2005-04-13 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* Path.cs: don't trim the path in CanonicalizePath on non-windows
systems. Fixes bug #53173.
Modified: trunk/mcs/class/corlib/System.IO/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.IO/ChangeLog 2005-04-13 23:02:06 UTC (rev
42969)
+++ trunk/mcs/class/corlib/System.IO/ChangeLog 2005-04-13 23:03:14 UTC (rev
42970)
@@ -1,3 +1,8 @@
+2005-04-13 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+ * Path.cs: don't trim the path in CanonicalizePath on non-windows
+ systems. Fixes bug #53173.
+
2005-04-09 Miguel de Icaza <[EMAIL PROTECTED]>
* StreamWriter.cs (Initialize): Avoid echoing the preamble to a
Modified: trunk/mcs/class/corlib/System.IO/Path.cs
===================================================================
--- trunk/mcs/class/corlib/System.IO/Path.cs 2005-04-13 23:02:06 UTC (rev
42969)
+++ trunk/mcs/class/corlib/System.IO/Path.cs 2005-04-13 23:03:14 UTC (rev
42970)
@@ -393,7 +393,9 @@
// STEP 1: Check for empty string
if (path == null) return path;
- path = path.Trim ();
+ if (Environment.IsRunningOnWindows)
+ path = path.Trim ();
+
if (path == String.Empty) return path;
// STEP 2: Check to see if this is only a root
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches