[Issue 2742] std.stdio assumes console works in utf-8

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 30 04:17:06 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2742





------- Comment #2 from maxmo at pochta.ru  2009-03-30 06:17 -------
>But how many DOS or Windows console apps in the real world output UTF-8? 
>Presumably not many, considering that no versions of DOS and only a few 
>versions of Windows support it.  There's also a causal loop in that even 
>modern Windows versions don't come with the console code page set to 65001 
>by default.  I don't know what is likely to break this loop, but I doubt 
>that the restrictiveness of one language's standard library is going to do 
>it.
There is PoshConsole http://poshconsole.codeplex.com/
It's all .net and WPF, therefore UTF-16, but it's way different architecture
and interface.
BTW cmd has /u switch for (redirected) unicode output, I use it sometimes.


-- 



More information about the Digitalmars-d-bugs mailing list