[Mono-bugs] [Bug 74872][Nor] New - System.Uri construction from pre-escaped strings inconsistent

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 8 May 2005 16:07:01 -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 dsd@gentoo.org.

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

--- shadow/74872	2005-05-08 16:07:01.000000000 -0400
+++ shadow/74872.tmp.31073	2005-05-08 16:07:01.000000000 -0400
@@ -0,0 +1,53 @@
+Bug#: 74872
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: Gentoo Linux
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: dsd@gentoo.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.Uri construction from pre-escaped strings inconsistent
+
+Using Mono 1.1.7, constructing a Uri involving the escaped forms of some
+non-ASCII characters seems odd. As you can see from the test case, it seems
+to work fine with "isolated" non-ASCII characters, but not when two are
+together.
+
+Here's the output I get from the testcase:
+Using string: file:///blah/abc
+Uri: file:///blah/abc
+Path: /blah/abc
+
+Using string: file:///blah/ab%C2
+Uri: file:///blah/abÂ
+Path: /blah/abÂ
+
+Using string: file:///blah/ab%F8
+Uri: file:///blah/abø
+Path: /blah/abø
+
+Using string: file:///blah/ab%C2c%F8
+Uri: file:///blah/abÂcø
+Path: /blah/abÂcø
+
+Using string: file:///blah/ab%C2%F8c
+Uri: file:///blah/abøc
+Path: /blah/abøc
+
+
+
+
+I expected the last 3 lines to read: (note the missing Â)
+
+
+Using string: file:///blah/ab%C2%F8c
+Uri: file:///blah/abÂøc
+Path: /blah/abÂøc