Improving D's support of code-pages
Sean Kelly
sean at f4.ca
Sun Aug 19 17:40:00 PDT 2007
Anders F Björklund wrote:
>
> It was my understanding that D by design only supports UTF environments,
> and the behaviour on legacy systems (CP437/ISO-8859-1) is "undefined"...
> It's not only output, if you run on a such a system and try to read the
> args (char[][]) you can get an UTF exception due to it being malformed.
Tango converts the input args to UTF-8 on Win32 rather than just
accepting them as they are. The args are left alone on Unix however,
because most Unix consoles seem to use Unicode anyway.
Sean
More information about the Digitalmars-d
mailing list