Message309986
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' |
|
Date |
User |
Action |
Args |
2018-01-15 14:44:00 | vstinner | set | recipients:
+ vstinner, lemburg, skrah, serhiy.storchaka, cstratak |
2018-01-15 14:44:00 | vstinner | set | messageid: <1516027440.51.0.467229070634.issue31900@psf.upfronthosting.co.za> |
2018-01-15 14:44:00 | vstinner | link | issue31900 messages |
2018-01-15 14:44:00 | vstinner | create | |
|