[Issue 13651] Writing Unicode text with console code page 65001 (UTF-8) may fail

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Oct 27 05:07:53 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13651

--- Comment #4 from Vladimir Panteleev <thecybershadow at gmail.com> ---
Yes.

The program I posted throws an exception because fwrite returns a number (bytes
written) smaller than the size of the data. According to its documentation,
this indicates a write error.

I've tried modifying std.stdio to retry incomplete fwrites with the remaining
data segment, but although now no exception is thrown, the output is corrupted
(some data is repeated).

--


More information about the Digitalmars-d-bugs mailing list