[Python-Dev] Fix to allow os.popen to work from pythonw.exe
Fredrik Lundh" <email@example.com
Sat, 8 Jul 2000 15:01:21 +0200
barry scott wrote:
> os.popen fails to work if pythonw.exe is used to start python. This is
> true for 1.5.2 and 1.6a2.
> The root cause of the problem is in the Microsoft C RTL implementation
> of _popen(). _popen() will fail if there is not a valid file =
> for stdin or stdout.
> The following replacement for WinMain.c works around the problem.
> I also ensure a valid descriptor for stderr for completeness.
> This was compiled and test under VC++ 6.0 SP3 on Windows 2000.
+1 from me.
unless mark|bill|trent|.+ objects, I'll check it in later.
PS. I've uploaded it to the SF patch manager: