[Mono-bugs] [Bug 58231][Nor] New - Localization problems with Locale de_DE@euro

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 8 May 2004 05:29:55 -0400 (EDT)


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 projects@saring.de.

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

--- shadow/58231	2004-05-08 05:29:55.000000000 -0400
+++ shadow/58231.tmp.10803	2004-05-08 05:29:55.000000000 -0400
@@ -0,0 +1,64 @@
+Bug#: 58231
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: Debian Sarge
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: projects@saring.de               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Localization problems with Locale de_DE@euro
+
+Hi,
+
+When the system locale variable LANG is set to "de_DE@euro" (the default
+value for german Linux machines), then the localization of e.g. printed
+numbers and dates failes (there comes the english version). It's also a
+problem for e.g. the Int32.Parse() methods.
+
+When the system locale variable LANG is set to "de_DE", then the
+localization seems to be OK.
+
+Here's a sample application with running output on different locales:
+
+eddie@saring:~/$ export LANG=de_DE@euro
+eddie@saring:~/$ mono LocaleSample.exe
+Float: 15.56
+DateTime: 05/08/2004
+
+=> This is not OK, because it's the same as on english systems.
+
+eddie@saring:~/$ export LANG=de_DE
+eddie@saring:~/$ mono LocaleSample.exe
+Float: 15,56
+DateTime: 08.05.04
+
+=> This is OK.
+
+Here's the source code of the little application:
+
+
+using System;
+    
+public class LocaleSample 
+{
+    public static void Main (string[] args)
+    {
+        float fTest = 15.56f;
+        DateTime dtTest = DateTime.Now;
+        
+        Console.WriteLine ("Float: " + fTest.ToString ());
+        Console.WriteLine ("DateTime: " + dtTest.ToShortDateString ());
+    }
+}
+
+
+Bye,
+Stefan