[Mono-bugs] [Bug 510765] New: [PATCH] Uri.AbsolutePath: Directory separators are escaped for Windows file URIs

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Jun 6 18:49:43 EDT 2009


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: mono-bugs at lists.ximian.com
        ReportedBy: gert.driesen at pandora.be
         QAContact: mono-bugs at lists.ximian.com
          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.


More information about the mono-bugs mailing list