[issue9632] Remove sys.setfilesystemencoding()

STINNER Victor report at bugs.python.org
Wed Sep 8 01:30:41 CEST 2010


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

"keep the C function"

Hum, currently, Python3 only has a *private* function called _Py_SetFileSystemEncoding() which can only be called after _Py_InitializeEx() (because it relies on the codecs API). If you consider that there is a real use case, we should create a function to set the filesystem encoding, function that should (have to?) be called before Py_InitializeEx().

I still think that Python knows better than the application how to set the encoding (when, how to choose it, etc.).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9632>
_______________________________________


More information about the Python-bugs-list mailing list