[Mono-bugs] [Bug 72221][Nor] Changed - double tryparse with hex numbers returns opposite of .net

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 11 Feb 2005 00:44:22 -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 mei@work.email.ne.jp.

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

--- shadow/72221	2005-02-04 14:58:38.000000000 -0500
+++ shadow/72221.tmp.26935	2005-02-11 00:44:22.000000000 -0500
@@ -1,14 +1,14 @@
 Bug#: 72221
 Product: Mono: Class Libraries
 Version: 1.0
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: CORLIB
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: jluke@cfl.rr.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -31,6 +31,19 @@
         double d;
         Console.WriteLine (!double.TryParse ("0dead",
 NumberStyles.HexNumber, null, out d));
         // true on mono
     }
 }
+
+------- Additional Comments From mei@work.email.ne.jp  2005-02-11 00:44 -------
+run on .NET2.0 Beta
+
+Unhandled Exception: System.ArgumentException: The number style 
+AllowHexSpecifier is not supported on floating point data types.
+   at 
+System.Globalization.NumberFormatInfo.ValidateParseStyleFloatingPoint
+(NumberStyles style)
+   at Driver.Main(String[] args)
+
+.NET1.x bug?
+