Feature Requests item #1687175, was opened at 2007-03-23 22:20
Message generated for change (Comment added) made by tmick
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551957&aid=1687175&group_id=78018
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: win32
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Dwig (dwig)
Assigned to: Nobody/Anonymous (nobody)
Summary: CreateProcess doesn't sort environment block
Initial Comment:
Win32 CreateProcess requires that the environment block be sorted alphabetically, case-insensitive. This isn't currently done by win32process, so subprocesses won't see all the environment vars in the dictionary. See the thread around http://mail.python.org/pipermail/python-dev/2004-October/049656.html
for a discussion of this, and how to solve it.
(This also affects the Popen class in the subprocess module, which takes an env argument and calls CreateProcess.)
----------------------------------------------------------------------
Comment By: Trent Mick (tmick)
Date: 2007-03-26 21:27
Message:
Logged In: YES
user_id=34892
Originator: NO
I'll attach the patch that I am using for this in ActivePython builds. It
doesn't do the absolutely correct thing as per the python-dev discussion
you linked to. It is, instead, a "good enough for me so far" solution --
where "me" is usage in Komodo, where we hit the bug initially.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551957&aid=1687175&group_id=78018
|