[Mono-bugs] [Bug 75763][Maj] Changed - System.Xml.XmlTextWriter writes garbage at the beginning of the document.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Aug 9 22:20:17 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 atsushi at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=75763

--- shadow/75763	2005-08-09 14:24:19.000000000 -0400
+++ shadow/75763.tmp.26631	2005-08-09 22:20:17.000000000 -0400
@@ -1,13 +1,13 @@
 Bug#: 75763
 Product: Mono: Runtime
 Version: 1.1
 OS: Mandrake 9.1
 OS Details: 
-Status: NEW   
-Resolution: 
+Status: RESOLVED   
+Resolution: NOTABUG
 Severity: Unknown
 Priority: Major
 Component: misc
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: mwickline at maad.com               
 QAContact: mono-bugs at ximian.com
@@ -66,6 +66,27 @@
 }   
 }
 
 ------- Additional Comments From mwickline at maad.com  2005-08-09 14:24 -------
 The Expected vs Actual results should actually say "RootElement"
 instead of "GarbageElement".
+
+------- Additional Comments From atsushi at ximian.com  2005-08-09 22:20 -------
+It is nothing to do with XmlTextWriter and not a bug. When you create
+StreamWriter with explicit Encoding.UTF8 parameter. The heading EF BB
+BF (in hex) is common to MS.NET output (of course also true to the
+output with XmlTextWriter).
+
+using System;
+using System.IO;
+using System.Text;
+class Test
+{
+  public static void Main(string[] args)
+  {
+        StreamWriter sw = new StreamWriter ("test.out", false,
+Encoding.UTF8);
+        sw.Write ("TEST");
+        sw.Close ();
+  }
+}
+


More information about the mono-bugs mailing list