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 pitrou
Recipients Sworddragon, larry, ncoghlan, pitrou, r.david.murray, terry.reedy, vstinner
Date 2013-12-07.17:17:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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
Date User Action Args
2013-12-07 17:17:20pitrousetrecipients: + pitrou, terry.reedy, ncoghlan, vstinner, larry, r.david.murray, Sworddragon
2013-12-07 17:17:20pitrousetmessageid: <>
2013-12-07 17:17:20pitroulinkissue19846 messages
2013-12-07 17:17:20pitroucreate