October 25, 2014 [Issue 13651] New: Writing Unicode text with console code page 65001 (UTF-8) may fail | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13651 Issue ID: 13651 Summary: Writing Unicode text with console code page 65001 (UTF-8) may fail Product: D Version: D2 Hardware: All OS: Windows Status: NEW Severity: normal Priority: P1 Component: Phobos Assignee: nobody@puremagic.com Reporter: thecybershadow@gmail.com Created attachment 1447 --> https://issues.dlang.org/attachment.cgi?id=1447&action=edit Data for demo program //////////////// demo.d /////////////// import core.sys.windows.windows; import std.file; import std.stdio; void main() { SetConsoleOutputCP(65001); stdout.write(readText("data.txt")); } /////////////////////////////////////// data.txt attached. This crashes in different ways on Win32 and Win64. In both cases, fwrite completes partially (no error with DMC runtime, "broken pipe" with MSVC runtime). -- |
Copyright © 1999-2021 by the D Language Foundation