[Issue 1448] UTF-8 output to console is seriously broken

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 12 13:03:28 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=1448

--- Comment #18 from kinke <kinke at gmx.net> ---
This isn't solved, but would now be solvable with recent Windows versions.

There are 2 things about this:
* DMD outputs a mix of UTF-8 and strings in the current codepage, AFAIK without
setting any console codepage, so DMD output on Windows can be garbage. LDC
v1.17 fixes this for LDC.
* User programs writing UTF-8 strings to the console suffer from the same
issue. This *could* be worked around by setting the console codepage in
druntime's _d_run_main and resetting it to the original one before termination.

--


More information about the Digitalmars-d-bugs mailing list