std.locale

Rainer Deyke rainerd at eldwood.com
Mon Mar 2 12:31:29 PST 2009


Sergey Gromov wrote:
> To actually solve this problem the default exception handler must be
> fixed to convert any UTF-8 into the current OEM code page before
> printing.  It would also help if default stdin and stdout performed such
> a conversion.

No, stdin/stdout *must* perform this conversion.  It is a serious bug if
they don't.

The conversion cannot be performed at any other level.  D uses unicode
internally.  The console uses a specific encoding.  Therefore all data
passing between D and the console must be encoded/decoded.


-- 
Rainer Deyke - rainerd at eldwood.com



More information about the Digitalmars-d mailing list