Bugzilla – Bug 313354
output of non-ASCII characters does not work
Last modified: 2007-09-15 21:24:46 UTC
---- Reported by bruno@clisp.org 2003-12-12 09:00:21 MST ---- 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:55 MST ---- Created an attachment (id=165296) hello.cs (source code) ---- Additional Comments From gonzalo@ximian.com 2004-01-12 06:09:16 MST ---- You were right. setlocale call was missing. It's fixed in CVS. Thanks. Imported an attachment (id=165296) Unknown bug field "cf_version_details" encountered while moving bug <cf_version_details>mono 0.28</cf_version_details> Unknown operating system SUSE 9.0. Setting to default OS "Other".