[Mono-bugs] [Bug 76643][Min] New - System.Uri.ToString is broken

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Nov 7 15:35:36 EST 2005


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 danw at novell.com.

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

--- shadow/76643	2005-11-07 15:35:36.000000000 -0500
+++ shadow/76643.tmp.25224	2005-11-07 15:35:36.000000000 -0500
@@ -0,0 +1,34 @@
+Bug#: 76643
+Product: Mono: Class Libraries
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: danw at novell.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.Uri.ToString is broken
+
+Uri.ToString doesn't re-escape characters that need to be hex-escaped,
+making the output sometimes semantically different from the string
+that was passed into the constructor. Eg:
+
+	using System;
+	
+	public class UriTest {
+		public static void Main ()
+		{
+			Uri uri = new Uri ("file:///foo%25bar");
+			Console.WriteLine (uri.ToString ());
+		}
+	}
+
+mono outputs "file:///foo%bar" (meaning "/fooºr"). .NET correctly
+outputs "file:///foo%25bar"


More information about the mono-bugs mailing list