https://issues.dlang.org/show_bug.cgi?id=12990
--- Comment #22 from Sum Proxy ---
This actually works on my system:
/ test.d //
import std.stdio;
import std.c.windows.windows;
extern(Windows) BOOL SetConsoleCP( UINT );
void main()
{
SetConsoleCP(1200);
string s
https://issues.dlang.org/show_bug.cgi?id=12990
--- Comment #21 from Sum Proxy ---
Or perhaps "the right" way would be to stick to UTF-16, since it's default for
Unicode in Windows.
--
https://issues.dlang.org/show_bug.cgi?id=12990
--- Comment #20 from Sum Proxy ---
I believe the problem is that default internal representation of Unicode in
Windows is UTF-16, which implies that some sort of conversion would be
necessary here.
I haven't found a way to do it right yet.
--
https://issues.dlang.org/show_bug.cgi?id=13586
--- Comment #18 from Sobirari Muhomori ---
What optimization does it provide? Most parameters are scoped, i.e. not owned
by the callee, so since they are owned by the caller, they are destroyed by the
caller.
--