[Mono-bugs] [Bug 70469][Nor] New - Can't roundtrip format `E'

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 11 Dec 2004 17:01:11 -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 bmaurer@users.sf.net.

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

--- shadow/70469	2004-12-11 17:01:11.000000000 -0500
+++ shadow/70469.tmp.20109	2004-12-11 17:01:11.000000000 -0500
@@ -0,0 +1,43 @@
+Bug#: 70469
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bmaurer@users.sf.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Can't roundtrip format `E'
+
+using System;
+using System.Globalization;
+
+class X {
+	static void Main ()
+	{
+		int b = 1;
+		int bb = int.Parse(b.ToString ("E"), NumberStyles.Any);
+		Console.WriteLine ("in: {0} out: {0}", b, bb);
+	}
+}
+
+[benm@omega benm]$ mcs t.cs
+[benm@omega benm]$ mono t.exe
+ 
+Unhandled Exception: System.FormatException: Input string was not in the
+correct format.
+in <0x00b54> System.Int32:Parse
+(string,System.Globalization.NumberStyles,System.IFormatProvider,bool,int&)
+in <0x00021> System.Int32:Parse
+(string,System.Globalization.NumberStyles,System.IFormatProvider)
+in <0x00010> System.Int32:Parse (string,System.Globalization.NumberStyles)
+in <0x00036> X:Main ()
+
+On MSFT you get in: 1 out: 1