STINNER Victor <victor.stin...@gmail.com> added the comment: I tested localeconv() with PR 4174 on FreeBSD: -- locale.setlocale(locale.LC_ALL, "C") locale.setlocale(locale.LC_NUMERIC, "ar_SA.UTF-8") --
It works as expected, result: -- decimal_point: '\u066b' thousands_sep: '\u066c' -- Compare it to Python 3.6 which returns mojibake, it seems like bytes are decoded from Latin1: -- decimal_point: '\xd9\xab' thousands_sep: '\xd9\xac' -- Raw byte strings, Python 2.7: * decimal_point: b'\xd9\xab' * thousands_sep: b'\xd9\xac' ---------- _______________________________________ 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