[issue1495089] sys.getfilesystemencoding

naktinis report at bugs.python.org
Tue Dec 8 01:26:23 CET 2009


naktinis <naktinis at gmail.com> added the comment:

I guess this is still not answered.
Documentation (http://docs.python.org/library/sys.html) clearly states:
"On Unix, the encoding is the user’s preference according to the result
of nl_langinfo(CODESET), or None if the nl_langinfo(CODESET) failed."

So in case setlocale is not yet called the actual output should look
like this (according to documentation):
>>> import sys
>>> print sys.getfilesystemencoding()
None

According to the documentation if nl_langinfo(CODESET) returns
something, then sys.getfilesystemencoding() should return the very same
thing. Apparently this is not the case in the provided code. I also get
different output on my machine.

Or am I missing something?

----------
nosy: +naktinis

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


More information about the Python-bugs-list mailing list