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 ccomb, flox, vstinner
Date 2010-05-17.15:18:34
SpamBayes Score 1.640595e-05
Marked as misclassified No
Message-id <1274109515.81.0.718926063159.issue8740@psf.upfronthosting.co.za>
In-reply-to
Content
The file system encoding should not be modifiable. Call sys.setfilesystemencoding() breaks Python, eg. module filenames are not reencoded. See also #8611.

sys.setfilesystemencoding() is as danregeous as sys.setdefaultencoding() because it changes too much things in Python.

If you would like to decode a filename with an encoding different than sys.setfilesystemencoding(): use the bytes type. Eg. os.listdir(b'.') gives you bytes filenames.
History
Date User Action Args
2010-05-17 15:18:35vstinnersetrecipients: + vstinner, flox, ccomb
2010-05-17 15:18:35vstinnersetmessageid: <1274109515.81.0.718926063159.issue8740@psf.upfronthosting.co.za>
2010-05-17 15:18:34vstinnerlinkissue8740 messages
2010-05-17 15:18:34vstinnercreate