Bug 313354 (MONO52100) - output of non-ASCII characters does not work
Summary: output of non-ASCII characters does not work
Status: RESOLVED FIXED
Alias: MONO52100
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2003-12-12 16:00 UTC by Bruno Haible
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
hello.cs (source code) (271 bytes, text/plain)
2003-12-12 16:00 UTC, Thomas Wiest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:21:45 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".