[Mono-bugs] [Bug 23738] New - hex numbers parsed wrong
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
22 Apr 2002 16:25:52 -0000
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 lupus@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=23738
--- shadow/23738 Mon Apr 22 12:25:52 2002
+++ shadow/23738.tmp.29849 Mon Apr 22 12:25:52 2002
@@ -0,0 +1,32 @@
+Bug#: 23738
+Product: Mono/Class Libraries
+Version: unspecified
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: lupus@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: hex numbers parsed wrong
+
+This test pasted by gonzalo in a different bug report compiles wrong with
+our corlib:
+public class MyClass
+{
+ public static void Main ()
+ {
+ long value = 0xFFFFFFFF;
+
+ System.Console.WriteLine ("{0:X}", value);
+ }
+}
+
+The result is 55555555. From a quick check, the parse routines use 'A' -
+'F', but they need to do 10 + 'A' - 'F'.