[Issue 1077] New: writef and friends won't read/write from/to redirected std handles
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 21 10:03:35 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1077
Summary: writef and friends won't read/write from/to redirected
std handles
Product: D
Version: 1.009
Platform: PC
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: bugzilla at digitalmars.com
ReportedBy: jascha at mainia.de
on win32 writef and friends don't use redirected std handles if they are piped.
stdin/out/err handles 0, 1 and 2 are not the redirected versions on win32. one
needs to get redirected handles with
GetStdHandle(STD_INPUT_HANDLE);
etc.
therefore, the std handles from std.c.stdio used in std.stdio probably cannot
be constant.
--
More information about the Digitalmars-d-bugs
mailing list