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 vstinner
Recipients brian.curtin, ezio.melotti, loewis, python-dev, serhiy.storchaka, shura_zam, vstinner
Date 2014-02-13.11:05:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1392289504.04.0.488377311674.issue6815@psf.upfronthosting.co.za>
In-reply-to
Content
The changes on ntpath.py are a little bit weird: it uses os.environb, whereas Windows is the only OS where os.environb does not exist. It looks like ntpath is available and tested on UNIX so the change looks to be valid, even you are not supposed to have Windows variables in your UNIX environment :-)

As bytes filenames, we should maybe deprecated bytes environment variables on Windows in Python 3.5. On Windows, the environment is Unicode. The bytes API is just provided for backward compatibility, but it should not be used.

By the way, the initial bug report was on Python 2.

Using os.fsencode/fsdecode instead of the ASCII encoding looks correct.
History
Date User Action Args
2014-02-13 11:05:04vstinnersetrecipients: + vstinner, loewis, shura_zam, ezio.melotti, brian.curtin, python-dev, serhiy.storchaka
2014-02-13 11:05:04vstinnersetmessageid: <1392289504.04.0.488377311674.issue6815@psf.upfronthosting.co.za>
2014-02-13 11:05:04vstinnerlinkissue6815 messages
2014-02-13 11:05:03vstinnercreate