Author vstinner
Recipients cstratak, lemburg, serhiy.storchaka, skrah, vstinner
Date 2018-01-15.14:44:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1516027440.51.0.467229070634.issue31900@psf.upfronthosting.co.za>
In-reply-to
Content
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'
History
Date User Action Args
2018-01-15 14:44:00vstinnersetrecipients: + vstinner, lemburg, skrah, serhiy.storchaka, cstratak
2018-01-15 14:44:00vstinnersetmessageid: <1516027440.51.0.467229070634.issue31900@psf.upfronthosting.co.za>
2018-01-15 14:44:00vstinnerlinkissue31900 messages
2018-01-15 14:44:00vstinnercreate