[issue6906] Tkinter sets an unicode environment variable on win32

Tim Hatch report at bugs.python.org
Wed Oct 28 23:33:59 CET 2009


Tim Hatch <tim at timhatch.com> added the comment:

I'm running the exact same version as Gabriel (on Windows 7, 32 bit)
from the python.org installer, and have the same behavior as Michał. 
Checking FixTk.py it appears that on Vista and above, it calls the Win32
API GetFinalPathNameByHandleW to expand symbolic links, but this is a -W
function, not a -A so it deals with unicode.

The blame shows this function was added in response to #3881

For my system, the paths are all lower ascii so changing the end of
convert_path to return str(s) works.  I don't know anything about
filesystem encodings on Windows to do a more correct conversion.

----------
nosy: +thatch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6906>
_______________________________________


More information about the Python-bugs-list mailing list