Message105911
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. |
|
Date |
User |
Action |
Args |
2010-05-17 15:18:35 | vstinner | set | recipients:
+ vstinner, flox, ccomb |
2010-05-17 15:18:35 | vstinner | set | messageid: <1274109515.81.0.718926063159.issue8740@psf.upfronthosting.co.za> |
2010-05-17 15:18:34 | vstinner | link | issue8740 messages |
2010-05-17 15:18:34 | vstinner | create | |
|