STINNER Victor <victor.stin...@gmail.com> added the comment: Test on Linux (Fedora 27, glibc 2.26):
locale.setlocale(locale.LC_ALL, "fr_FR") locale.setlocale(locale.LC_NUMERIC, "es_MX.utf8") It works as expected, result: decimal_point: '.' thousands_sep: '\u2009' Python 3.6 returns mojibake: decimal_point: '.' thousands_sep: '\xe2\x80\x89' Python 2.7 raw strings, thousands_sep = b'\xE2\x80\x89'. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31900> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com