Thread overview
[Issue 1077] New: writef and friends won't read/write from/to redirected std handles
Mar 21, 2007
d-bugmail
Nov 28, 2010
Sobirari Muhomori
March 21, 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@digitalmars.com
        ReportedBy: jascha@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.


-- 

October 11, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=1077


Andrei Alexandrescu <andrei@metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |andrei@metalanguage.com
         AssignedTo|nobody@puremagic.com        |andrei@metalanguage.com


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 27, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=1077



--- Comment #1 from Andrei Alexandrescu <andrei@metalanguage.com> 2010-11-26 17:50:31 PST ---
I'd work on this but don't have a Windows machine. Could someone else take this bug over? Also, is it reproducible on D2? Thanks.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 28, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=1077



--- Comment #2 from Sobirari Muhomori <dfj1esp02@sneakemail.com> 2010-11-28 11:00:30 PST ---
In fact, I have a working plugin that retabifies source, passed to stdin, though, as I see it uses my io streams that I wrote in order to fix bug 2742 :)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 05, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=1077


Andrei Alexandrescu <andrei@metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|andrei@metalanguage.com     |nobody@puremagic.com


--- Comment #3 from Andrei Alexandrescu <andrei@metalanguage.com> 2011-06-05 08:08:20 PDT ---
I'm putting this up for grabs as I don't have a Windows system to test on.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------