[Issue 13651] Writing Unicode text with console code page 65001 (UTF-8) may fail
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Sep 20 07:22:19 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=13651
Jan Jurzitza <d.bugs at webfreak.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |d.bugs at webfreak.org
--- Comment #9 from Jan Jurzitza <d.bugs at webfreak.org> ---
Minimal reproducible test cast:
import core.sys.windows.windows;
import std.stdio;
void main()
{
SetConsoleOutputCP(65001);
stderr.writeln("あ");
}
Which causes this exception:
std.exception.ErrnoException at C:\D\dmd2\windows\bin\..\..\src\phobos\std\stdio.d(2889):
Enforcement failed (No error)
----------------
0x00402499
0x0040242E
0x00402328
0x00402263
0x00404275
0x0040410F
0x0040268F
0x760B343D in BaseThreadInitThunk
0x77039832 in RtlInitializeExceptionChain
0x77039805 in RtlInitializeExceptionChain
Normal writeln without stderr or using stdout works.
--
More information about the Digitalmars-d-bugs
mailing list