http://bugzilla.novell.com/show_bug.cgi?id=510765


           Summary: [PATCH] Uri.AbsolutePath: Directory separators are
                    escaped for Windows file URIs
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---


We are currently escaping directory separators for Windows file URIs. This is
because we do not replace backslashes with forward slashes for actual file
URI's. We do replace them when the URI is a Windows file path.

To reproduce, compile and run the following code:

using System;

class Program
{
    static void Main (string [] args)
    {
        Uri uri = new Uri (@"file://D:\mono");
        Console.WriteLine (uri.AbsolutePath);
    }
}

Expected result:

D:/mono

Actual result:

D:%5Cmono

-- 
Configure bugmail: http://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  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to