[Issue 1448] UTF-8 output to console is seriously broken
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Oct 25 02:26:49 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=1448
Sum Proxy <sum.proxy at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sum.proxy at gmail.com
Hardware|x86_64 |x86
--- Comment #12 from Sum Proxy <sum.proxy at gmail.com> ---
The issue still exists in
DMD32 D Compiler v2.065, Windows 7
==============
Code:
==============
import std.stdio;
import std.c.windows.windows;
extern(Windows) BOOL SetConsoleOutputCP( UINT );
void main() {
SetConsoleOutputCP( 65001 ); // or use "chcp 65001" instead
stderr.write("STDERR:Output utf-8 accented char \u00e9\n... and the rest is
cut off!\n");
stderr.write("end_STDERR.\n");
}
==============
Output:
==============
STDERR:Output utf-8 accented char é
... and the rest is cut off!
==============
end_STDERR.\n
is not written
--
More information about the Digitalmars-d-bugs
mailing list