[Mono-bugs] [Bug 77657][Nor] Changed - XmlSerializer exception when
serializing Double.MaxValue
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Feb 28 12:12:40 EST 2006
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=77657
--- shadow/77657 2006-02-28 09:23:35.000000000 -0500
+++ shadow/77657.tmp.9403 2006-02-28 12:12:40.000000000 -0500
@@ -1,12 +1,12 @@
Bug#: 77657
Product: Mono: Class Libraries
Version: 1.1
OS: unknown
OS Details:
-Status: REOPENED
+Status: NEEDINFO
Resolution:
Severity: Unknown
Priority: Normal
Component: Sys.XML
AssignedTo: atsushi at ximian.com
ReportedBy: scottellington at comcast.net
@@ -73,6 +73,47 @@
I don't see any errors from that code. Are you running the latest
version from svn, or one of the packaged release version? (-> will
close this bug as FIXED)
------- Additional Comments From scottellington at comcast.net 2006-02-28 09:23 -------
I am getting this on 1.1.12.1 and HEAD from a couple of weeks ago.
+
+------- Additional Comments From atsushi at ximian.com 2006-02-28 12:12 -------
+Can you tell me what happens when you run this program?
+
+using System.Reflection;
+using System.Threading;
+using System.Globalization;
+using System.Xml;
+using System;
+
+class Test
+{
+ public static void Main ()
+ {
+ BindingFlags bf = BindingFlags.NonPublic | BindingFlags.Instance;
+ Type type = typeof (XmlTextWriter);
+ MethodInfo mi = type.GetMethod ("MockupPrefix", bf);
+ mi.ToString ();
+ int i = 0;
+ try {
+ CultureInfo ci;
+ for (; i < 65536; i++) {
+ try {
+ ci = new CultureInfo (i);
+ if (ci.IsNeutralCulture)
+ continue;
+ } catch {
+ continue;
+ }
+ Thread.CurrentThread.CurrentCulture = ci;
+ XmlConvert.ToString (double.MaxValue);
+ }
+ } catch {
+ Console.WriteLine ("Culture at {0}", i);
+ }
+ }
+}
+
+It verifies that you are really not running older version of mono, and
+then sees on which culture it crashes on your box (it should not break
+at any of the cultures though).
More information about the mono-bugs
mailing list