Eryk Sun added the comment:

> It might be worth testing a patch that changes expanduser to 
> decode the environment variables 

If expanduser() is passed a unicode path, it can use 
_winreg.ExpandEvironmentStrings(u'%USERPROFILE%') instead of decoding 
os.environ['USERPROFILE']. In 2.7, os.environ is a lossy ANSI encoding of the 
native Unicode environment block.

----------
nosy: +eryksun

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20140>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to