[Mono-bugs] [Bug 363320] New: double escaping on System.Uri ?

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Feb 20 11:27:29 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=363320


           Summary: double escaping on System.Uri ?
           Product: Mono: Class Libraries
           Version: SVN
          Platform: x86-64
        OS/Version: openSUSE 10.3
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: sdelcroix at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


looks like System.Uri does some unwanted escaping on some strings...

using System;
public class Test
{
        public static void Main()
        {
                string ok = "file:///tmp/x (%232).jpg";
                string nok = "file:///tmp/ü (%232).jpg";

                Console.WriteLine (new Uri (ok).ToString ());
                Console.WriteLine (new Uri (nok).ToString ());
        }
}

returns:

file:///tmp/x (%232).jpg
file:///tmp/ü (%25232).jpg

the 25232 is the unexpected thing on the second string.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list