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@lists.ximian.com
        ReportedBy: [EMAIL PROTECTED]
         QAContact: mono-bugs@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.
_______________________________________________
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to