Serhiy Storchaka added the comment: Indeed.
Here is a patch. It uses same algorithm to obtain encodable non-ASCII string as for FS_NONASCII, but with locale encoding. It also adds new tests and simplifies existing tests. ---------- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file31865/sys_test_ioencoding_locale.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19058> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com