[Mono-bugs] [Bug 53022][Nor] New - en-us floating point numbers missing decimal part

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 18 Jan 2004 10:07:06 -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 dave-mono@earth.li.

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

--- shadow/53022	2004-01-18 10:07:06.000000000 -0500
+++ shadow/53022.tmp.31361	2004-01-18 10:07:06.000000000 -0500
@@ -0,0 +1,59 @@
+Bug#: 53022
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: dave-mono@earth.li               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: en-us floating point numbers missing decimal part
+
+Description of Problem:
+
+the en-US Culture doesn't appear to format their floating point numbers
+consistantly.
+
+Steps to reproduce the problem:
+1. Take code:
+using System;
+using System.Globalization;
+using System.Threading;
+
+class t1
+{
+  static void Main(string [] args ) {
+    Byte b = 0;
+    Console.WriteLine(b.ToString("f"));
+    CultureInfo EnUs = new CultureInfo ("en-us", false);
+    Thread.CurrentThread.CurrentCulture = EnUs;
+    Console.WriteLine(b.ToString("f"));
+  }
+}
+
+
+2. Compile
+3. Run with ICU enabled mono
+
+Actual Results:
+0.00
+0.
+
+
+Expected Results:
+0.00
+0.00
+
+Additional Information:
+
+Is this more an ICU problem than a mono problem? It is causing a failure in
+the corlib test-suite for me.
+
+I am using ICU version 2.6.1.