[docs] [issue20140] UnicodeDecodeError in ntpath.py when home dir contains non-ascii signs
Eryk Sun
report at bugs.python.org
Mon Sep 12 22:02:25 EDT 2016
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 <report at bugs.python.org>
<http://bugs.python.org/issue20140>
_______________________________________
More information about the docs
mailing list