[Mono-bugs] [Bug 75083][Nor] New - SByte.Parse ("-128", NumberStyles.Any) fails

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat May 28 16:00:27 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 bmaurer at users.sf.net.

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

--- shadow/75083	2005-05-28 16:00:27.000000000 -0400
+++ shadow/75083.tmp.7560	2005-05-28 16:00:27.000000000 -0400
@@ -0,0 +1,43 @@
+Bug#: 75083
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: bmaurer at users.sf.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: SByte.Parse ("-128", NumberStyles.Any) fails
+
+using System;
+using System.Globalization;
+
+class X {
+	static void Main ()
+	{
+		Console.WriteLine (SByte.Parse ("-128", NumberStyles.Any));
+	}
+}
+
+[benm at omega benm]$ mono x.exe
+ 
+Unhandled Exception: System.ArgumentOutOfRangeException: Argument is out of
+range.
+Parameter name: sourceIndex
+in <0x00082> System.String:IndexOfAny (System.Char[] anyOf, Int32 startIndex)
+in <0x0006f> System.Int32:FindExponent (System.Int32 pos, System.String s)
+in <0x0086e> System.Int32:Parse (System.String s, NumberStyles style,
+IFormatProvider fp, Boolean tryParse, System.Int32 result)
+in <0x00020> System.Int32:Parse (System.String s, NumberStyles style,
+IFormatProvider fp)
+in <0x00017> System.SByte:Parse (System.String s, NumberStyles style,
+IFormatProvider provider)
+in <0x0000f> System.SByte:Parse (System.String s, NumberStyles style)
+in <0x00014> X:Main ()


More information about the mono-bugs mailing list