STINNER Victor <victor.stin...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue8610>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to