[Mono-bugs] [Bug 52100][Nor] New - output of non-ASCII characters does not work

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 12 Jan 2004 06:09:16 -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 gonzalo@ximian.com.

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

--- shadow/52100	2004-01-12 06:09:16.000000000 -0500
+++ shadow/52100.tmp.21809	2004-01-12 06:09:16.000000000 -0500
@@ -0,0 +1,74 @@
+Bug#: 52100
+Product: Mono/Runtime
+Version: unspecified
+OS: SUSE 9.0
+OS Details: 
+Status: RESOLVED   
+Resolution: FIXED
+Severity: Unknown
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bruno@clisp.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: output of non-ASCII characters does not work
+
+Description of Problem: 
+Non-ASCII characters are printed as question marks on the console with 
+'mint' (but not with 'mono'). 
+ 
+ 
+Steps to reproduce the problem: 
+Install mono-0.28. 
+$ export LANG=de_DE.UTF-8 
+$ export LC_COLLATE=POSIX 
+$ env | grep '^\(LANG\|LC_\)' 
+LC_COLLATE=POSIX 
+LANG=de_DE.UTF-8 
+$ cat > hello.cs <<\EOF 
+using System; 
+class Hello { 
+  static void Main() { 
+    System.Threading.Thread.CurrentThread.CurrentCulture = 
+    System.Threading.Thread.CurrentThread.CurrentUICulture = 
+      new System.Globalization.CultureInfo("de-DE"); 
+    Console.WriteLine("Hall\u00f6chen"); 
+  } 
+} 
+EOF 
+$ mcs hello.cs -o hello.mono.exe 
+$ mint hello.mono.exe 
+ 
+ 
+Actual Results: 
+$ mint hello.mono.exe 
+Hall?chen 
+ 
+ 
+Expected Results: 
+$ mint hello.mono.exe 
+Hallöchen 
+ 
+ 
+How often does this happen?  
+Reproducible. 
+ 
+Additional Information: 
+ 
+Results on Windows (.NET CLR 1.0.3705): 
+>hello.mono.exe 
+Hallöchen [in CP437 or CP850 encoding] 
+ 
+Possible reason: mint does not perform a setlocale(LC_ALL,"") call.
+
+------- Additional Comments From bruno@clisp.org  2003-12-12 09:00 -------
+Created an attachment (id=6206)
+hello.cs (source code)
+
+
+------- Additional Comments From gonzalo@ximian.com  2004-01-12 06:09 -------
+You were right. setlocale call was missing.
+It's fixed in CVS. Thanks.