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

User [email protected] added comment
http://bugzilla.novell.com/show_bug.cgi?id=527421#c2





--- Comment #2 from Atsushi Enomoto <[email protected]>  2009-08-02 20:51:42 
MDT ---
Here is an example I tried:

using System;
using System.IO;
using System.Xml;
using System.Xml.Linq;

public class Test
{
        public static void Main ()
        {
                string xml = @"<root>
  </root>";
                var doc = XDocument.Parse (xml,
LoadOptions.PreserveWhitespace);
                doc.Save (Console.Out, SaveOptions.None);
                doc.Save (Console.Out, SaveOptions.DisableFormatting);
        }
}

Both .NET and mono outputs below (where Encoding.Default is CP932):

<?xml version="1.0" encoding="shift_jis"?>
<root>
  </root><?xml version="1.0" encoding="shift_jis"?><root>
  </root>

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to