October 28, 2014
https://issues.dlang.org/show_bug.cgi?id=12990

--- Comment #21 from Sum Proxy <sum.proxy@gmail.com> ---
Or perhaps "the right" way would be to stick to UTF-16, since it's default for Unicode in Windows.

--
October 28, 2014
https://issues.dlang.org/show_bug.cgi?id=12990

--- Comment #22 from Sum Proxy <sum.proxy@gmail.com> ---
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 = stdin.readln();
    write(s);
}
///////////////////////////////////

--
March 22, 2020
https://issues.dlang.org/show_bug.cgi?id=12990

Mike Parker <aldacron@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aldacron@gmail.com
          Component|dmd                         |phobos

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=12990

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
June 20, 2023
https://issues.dlang.org/show_bug.cgi?id=12990

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=24001

--
June 22, 2023
https://issues.dlang.org/show_bug.cgi?id=12990

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #23 from Walter Bright <bugzilla@digitalmars.com> ---
(In reply to Sum Proxy from comment #22)
>     SetConsoleCP(1200);

1200    utf-16  Unicode UTF-16, little endian byte order (BMP of ISO 10646); available only to managed applications

https://learn.microsoft.com/en-us/windows/win32/intl/code-page-identifiers

--
1 2 3
Next ›   Last »