A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-July/005798.html below:

[Python-Dev] Fix to allow os.popen to work from pythonw.exe

[Python-Dev] Fix to allow os.popen to work from pythonw.exe [Python-Dev] Fix to allow os.popen to work from pythonw.exeFredrik Lundh Fredrik Lundh" <effbot@telia.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.
>=20
> 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 =
descriptor
> for stdin or stdout.
>=20
> The following replacement for WinMain.c works around the problem.
> I also ensure a valid descriptor for stderr for completeness.
>=20
> 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.

cheers /F

PS. I've uploaded it to the SF patch manager:
http://sourceforge.net/patch/index.php?patch_id=3D100764&group_id=3D5470




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4