This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients Jarek.Śmiejczak, Lin.Wei, docs@python, eryksun, jhonglei, ncoghlan, rbcollins, serhiy.storchaka, steve.dower, vinay.sajip, vstinner
Date 2016-09-13.02:02:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473732145.35.0.988304518507.issue20140@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2016-09-13 02:02:25eryksunsetrecipients: + eryksun, vinay.sajip, ncoghlan, vstinner, rbcollins, docs@python, serhiy.storchaka, steve.dower, Jarek.Śmiejczak, jhonglei, Lin.Wei
2016-09-13 02:02:25eryksunsetmessageid: <1473732145.35.0.988304518507.issue20140@psf.upfronthosting.co.za>
2016-09-13 02:02:25eryksunlinkissue20140 messages
2016-09-13 02:02:24eryksuncreate