[Mono-bugs] [Bug 51844][Maj] New - System.Uri holds incorrect file url

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 7 Dec 2003 21:07:49 -0500 (EST)


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 ginga@kit.hi-ho.ne.jp.

http://bugzilla.ximian.com/show_bug.cgi?id=51844

--- shadow/51844	2003-12-07 21:07:49.000000000 -0500
+++ shadow/51844.tmp.23678	2003-12-07 21:07:49.000000000 -0500
@@ -0,0 +1,42 @@
+Bug#: 51844
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: cygwin
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: ginga@kit.hi-ho.ne.jp               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.Uri holds incorrect file url
+
+Uri.ToString() makes absolute uri as relative file uri.
+
+
+using System;
+using System.Xml;
+
+public class Test
+{
+        public static void Main (string [] args)
+        {
+                string url = "/usr/local/src/gtk-sharp/doc/all.xml";
+                Uri uri = new Uri (url);
+                Console.WriteLine (uri);
+        }
+}
+
+Expected result:
+file:///usr/local/src/gtk-sharp/doc/all.xml
+
+Actual result:
+file://usr/local/src/gtk-sharp/doc/all.xml
+
+How often does this happen? 
+Always