Message114211
sys.setfilesystemencoding() function is dangerous because it introduces a lot of inconsistencies: this function is unable to reencode all filenames in all objects (eg. Python is unable to find filenames in user objects or 3rd party libraries). Eg. if you change the filesystem from utf8 to ascii, it will not be possible to use existing non-ascii (unicode) filenames: they will raise UnicodeEncodeError.
As sys.setdefaultencoding() in Python2, I think that sys.setfilesystemencoding() is the root of evil :-) PYTHONFSENCODING (issue #8622) is the right solution to set the filesysteme encoding.
Attached patch removes sys.setfilesystemencoding(). |
|
Date |
User |
Action |
Args |
2010-08-18 11:56:04 | vstinner | set | recipients:
+ vstinner |
2010-08-18 11:56:04 | vstinner | set | messageid: <1282132564.59.0.094866961442.issue9632@psf.upfronthosting.co.za> |
2010-08-18 11:56:02 | vstinner | link | issue9632 messages |
2010-08-18 11:56:02 | vstinner | create | |
|