[Mono-bugs] [Bug 76247][Nor] Changed - XmlTextReader corrupts
UTF-16 surrogate characters in strings
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Sep 27 08:12:10 EDT 2005
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 brion at pobox.com.
http://bugzilla.ximian.com/show_bug.cgi?id=76247
--- shadow/76247 2005-09-27 08:09:46.000000000 -0400
+++ shadow/76247.tmp.12848 2005-09-27 08:12:10.000000000 -0400
@@ -1,14 +1,14 @@
Bug#: 76247
Product: Mono: Class Libraries
Version: 1.1
-OS:
+OS: unknown
OS Details: Ubuntu Hoary/x86
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Normal
Component: Sys.XML
AssignedTo: atsushi at ximian.com
ReportedBy: brion at pobox.com
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
@@ -65,6 +65,32 @@
------- Additional Comments From brion at pobox.com 2005-09-27 08:09 -------
Created an attachment (id=15810)
C# program that reads the above in.xml and demonstrates bug
+
+------- Additional Comments From brion at pobox.com 2005-09-27 08:12 -------
+Output from sample program:
+
+Reading from file:
+3c <
+61 a
+3e >
+d862 ?
+ddc0 ?
+3c <
+2f /
+61 a
+3e >
+a
+
+
+Reading from XmlTextReader:
+d801 ?
+65c0 ?
+
+^^ the two characters listed from the XmlTextReader should match what
+is read directly, but don't. The second char isn't even a valid low
+surrogate half, so re-outputting this string to an XmlTextWriter will
+produce invalid XML output.
+
More information about the mono-bugs
mailing list