This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author naktinis
Recipients fwiemann, georg.brandl, naktinis
Date 2009-12-08.00:26:22
SpamBayes Score 3.0469586e-08
Marked as misclassified No
Message-id <1260231983.26.0.869443971414.issue1495089@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2009-12-08 00:26:23naktinissetrecipients: + naktinis, georg.brandl, fwiemann
2009-12-08 00:26:23naktinissetmessageid: <1260231983.26.0.869443971414.issue1495089@psf.upfronthosting.co.za>
2009-12-08 00:26:22naktinislinkissue1495089 messages
2009-12-08 00:26:22naktiniscreate