[Mono-bugs] [Bug 41998][Nor] Changed - Uri constructor fails with unix style path

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Mon, 5 May 2003 23:06:14 -0400 (EDT)

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gonzalo@ximian.com.


--- shadow/41998	Mon May  5 22:31:36 2003
+++ shadow/41998.tmp.17751	Mon May  5 23:06:14 2003
@@ -56,6 +56,14 @@
 What does MS do for '../file' and '/file'?
 ------- Additional Comments From ianm@activestate.com  2003-05-05 22:31 -------
 ms throws an 'System.UriFormatException' exception in both those
 cases. ( ie ..\file and \file )
+------- Additional Comments From gonzalo@ximian.com  2003-05-05 23:06 -------
+My suggestion is to treat the argument in the same way as when running
+mono under windows. Just testing the Path.DirectorySeparatorChar is a
+'/' and then checking that Path.IsPathRooted returns true should be
+enough to take the same code path as C:\