www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13651] New: Writing Unicode text with console code page 65001


          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()


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

Oct 24 2014