digitalmars.D.bugs - [Issue 12990] New: utf8 string not read/written to windows console
- via Digitalmars-d-bugs (24/24) Jun 25 2014 https://issues.dlang.org/show_bug.cgi?id=12990
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 puremagic.com Reporter: sum.proxy 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. --
Jun 25 2014