www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1077] New: writef and friends won't read/write from/to redirected std handles

reply d-bugmail puremagic.com writes:
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.


-- 
Mar 21 2007
next sibling parent d-bugmail puremagic.com writes:
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: -------
Oct 11 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1077




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: -------
Nov 26 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1077




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: -------
Nov 28 2010
prev sibling parent d-bugmail puremagic.com writes:
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



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: -------
Jun 05 2011