[Issue 387] When EOF of din is reached, a line of output is lost

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 30 10:22:15 PDT 2006


http://d.puremagic.com/issues/show_bug.cgi?id=387





------- Comment #5 from fvbommel at wxs.nl  2006-09-30 12:22 -------
Stewart Gordons said:
> But at least something that can be done now is to find out on which Windows
> versions the bug occurs.  We have that it works on XP and fails on 98SE.  This 
> leaves 95, 98, ME, 2000 and Server 2003 to check if I haven't missed any.

I think you missed previous NT versions.

Anyway, it works fine on Win2000:

--------------------------
D:\Temp>type test.d
import std.cstream;
import std.stdio;

void main() {
    while (din.getc != char.init) {}
    writefln("Line 1");
    writefln("Line 2");
}
D:\Temp>dmd test.d
d:\d\dmd\bin\..\..\dm\bin\link.exe test,,,user32+kernel32/noi;

D:\Temp>test.exe
^Z
Line 1
Line 2

D:\Temp>test.exe < test.d
Line 1
Line 2

D:\Temp>ver

Microsoft Windows 2000 [Version 5.00.2195]

D:\Temp>
--------------------------


-- 




More information about the Digitalmars-d-bugs mailing list