[issue8610] Python3/POSIX: errors if file system encoding is None

STINNER Victor report at bugs.python.org
Wed May 5 01:34:27 CEST 2010


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

Here is a patch for the first solution: display a fatal error if we are unable to get the locale encoding. It does always exit with a fatal error if nl_langinfo(CODESET) is not available (and Py_FileSystemDefaultEncoding is not set).

I don't think it's a good idea to display an fatal error at runtime. If nl_langinfo(CODESET) is not available, configure should fail or we should fallback to an hardcoded encoding (ok but which one?).

Extract of the nl_langinfo() manual page (on Linux):

CONFORMING TO
       SUSv2, POSIX.1-2001.

----------
keywords: +patch
Added file: http://bugs.python.org/file17213/no_fsencoding_error.patch

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


More information about the Python-bugs-list mailing list