Antoine Pitrou added the comment: Here is a patch.
$ LANG=C ./python -c "import os, sys, locale; print(sys.getfilesystemencoding(), sys.stdin.encoding, os.device_encoding(0), locale.getpreferredencoding())" -> Without the patch: ascii ANSI_X3.4-1968 ANSI_X3.4-1968 ANSI_X3.4-1968 -> With the patch: utf-8 utf-8 utf-8 ANSI_X3.4-1968 ---------- keywords: +patch nosy: +larry stage: -> patch review versions: +Python 3.4 -Python 3.3 Added file: http://bugs.python.org/file33026/asciilocale.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19846> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com