[Issue 12990] New: utf8 string not read/written to windows console
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Jun 25 06:48:23 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12990
Issue ID: 12990
Summary: utf8 string not read/written to windows console
Product: D
Version: D2
Hardware: x86_64
OS: Windows
Status: NEW
Severity: normal
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: sum.proxy at gmail.com
import std.stdio;
void main()
{
string s = stdin.readln();
write(s);
}
The code above should write a unicode (specifically cyrillic) string to output
to a windows console (with cp set to 65001), but the string comes out empty.
The same code works correctly when run through windows debugger windbg.exe, so
hopefully it will be an easy fix.
--
More information about the Digitalmars-d-bugs
mailing list