[issue6906] Tkinter sets an unicode environment variable on win32
Jon Foster
report at bugs.python.org
Mon Feb 1 16:46:21 CET 2010
Jon Foster <jon.foster at cabot.co.uk> added the comment:
This bug also breaks code that uses the subprocess module, e.g.:
env = os.environ.copy()
env['MY_VARIABLE'] = 'MY_VAL'
subprocess.Popen(... , env=env)
Fails on Windows 7 with an error that the environment can only contain strings. The offending variables are TK_LIBRARY and TCL_LIBRARY, which have Unicode strings as their values. I'm using Python 2.6.2.
(The subprocess module should probably be fixed to use CreateProcessW and handle Unicode, but that's a separate issue).
----------
nosy: +JonFoster
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6906>
_______________________________________
More information about the Python-bugs-list
mailing list