www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13241] New: writeln no longer flushes stdout

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

          Issue ID: 13241
           Summary: writeln no longer flushes stdout
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: regression
          Priority: P1
         Component: Phobos
          Assignee: nobody puremagic.com
          Reporter: thecybershadow gmail.com

Windows test case:

///////////////// test.d /////////////////
import std.stdio;

extern(System) void ExitProcess(int code);

void main()
{
    writeln("Test!");
    ExitProcess(0);
}
//////////////////////////////////////////

Before, the line showed up immediately after the writeln.
This bug causes issues for programs that display their status to stdout/stderr.

Introduced in https://github.com/D-Programming-Language/phobos/pull/2334

--
Aug 01 2014