[Mono-bugs] [Bug 55926][Nor] Changed - Error Loading XmlFiles with "#" character in Path
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 23 Mar 2004 00:55:56 -0500 (EST)
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 atsushi@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=55926
--- shadow/55926 2004-03-22 23:41:25.000000000 -0500
+++ shadow/55926.tmp.9630 2004-03-23 00:55:56.000000000 -0500
@@ -4,13 +4,13 @@
OS: unknown
OS Details:
Status: REOPENED
Resolution:
Severity: Unknown
Priority: Normal
-Component: Sys.XML
+Component: System
AssignedTo: mono-bugs@ximian.com
ReportedBy: tropico@tiscali.be
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
URL:
Cc:
@@ -106,6 +106,40 @@
/home/jluke/cvs/mcs/class/System.XML/System.Xml/XmlTextReader.cs:49)
System.Xml.XmlTextReader:.ctor (string)
in [0x00001] (at
/home/jluke/cvs/mcs/class/System.XML/System.Xml/XmlDocument.cs:578)
System.Xml.XmlDocument:Load (string)
in [0x0000c] (at /home/jluke/ff.cs:12) Test:Main ()
+
+------- Additional Comments From atsushi@ximian.com 2004-03-23 00:55 -------
+Yes, as you guess, System.Uri is used in XmlUrlResolver.
+
+Then would you please try this one on your box?
+
+using System;
+using System.IO;
+
+public class Test
+{
+ public static void Main ()
+ {
+ try {
+ Uri uri = new Uri (new FileInfo
+("c#book/testc#book1.xml").FullName);
+ Console.WriteLine (uri);
+ } catch (Exception ex) {
+ Console.WriteLine (ex);
+ }
+ }
+}
+
+BTW I got different results on my Windows XP SP1 box:
+
+MS.NET:
+$ ./sharpuri.exe
+file:///C:/cygwin/home/ginga/tests/c%23book/testc%23book1.xml
+
+Mono:
+$ mono sharpuri.exe
+file:///C:/cygwin/home/ginga/tests/c#book/testc#book1.xml
+
+Thanks.