[Mono-bugs] [Bug 542464] New: Int32.Parse doesn't respect NumberStyles.AllowExponent
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sat Sep 26 18:21:07 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=542464
Summary: Int32.Parse doesn't respect NumberStyles.AllowExponent
Classification: Mono
Product: Mono: Class Libraries
Version: 2.4.x
Platform: i386
OS/Version: Mac OS X 10.6
Status: NEW
Severity: Major
Priority: P5 - None
Component: CORLIB
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: xenolinguist at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 GTB5
Int32.Parse isn't correctly respecting NumberStyles.AllowExponent. A cursory
glance at mcs/class/corlib/System/Int32.cs show that there's an intention to do
so, in
internal static bool FindExponent (ref int pos, string s)
but this doesn't seem to be doing the trick.
Reproducible: Always
Steps to Reproduce:
int x = System.Int32.Parse("10249E+02",
System.Globalization.NumberStyles.AllowExponent,
System.Globalization.CultureInfo.InvariantCulture);
Actual Results:
x == 10249
Expected Results:
x == 1024900
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list