Author vstinner
Recipients Guillaume Pasquet (Etenil), cstratak, lemburg, loewis, schwab, serhiy.storchaka, vstinner, xtreak
Date 2018-11-20.14:10:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1542723005.07.0.788709270274.issue28604@psf.upfronthosting.co.za>
In-reply-to
Content
I tested manually PR 10606:

LC_ALL= LC_CTYPE=xxx LC_MONETARY=xxx ./python -c 'import locale; locale.setlocale(locale.LC_ALL, ""); print(ascii(locale.localeconv()["currency_symbol"]))'
'\xa3'

Result (bug = result/error without the fix):


* LC_CTYPE=en_GB, LC_MONETARY=ar_SA.UTF-8: currency_symbol='\u0631.\u0633' (bug: '\xd8\xb1.\xd8\xb3')
* LC_CTYPE=en_GB, LC_MONETARY=fr_FR.UTF-8: currency_symbol='\u20ac' (bug: '\xe2\x82\xac')
* LC_CTYPE=en_GB, LC_MONETARY=uk_UA.koi8u: currency_symbol='\u0433\u0440\u043d.' (bug: '\xc7\xd2\xce.')
* LC_CTYPE=fr_FR.UTF-8, LC_MONETARY=uk_UA.koi8u: currency_symbol='\u0433\u0440\u043d.' (bug: UnicodeDecodeError)

Locale encodings:

* en_GB: latin1
* ar_SA.UTF-8: utf8
* fr_FR.UTF-8: utf8
* uk_UA.koi8u: KOI8-U
History
Date User Action Args
2018-11-20 14:10:05vstinnersetrecipients: + vstinner, lemburg, loewis, serhiy.storchaka, schwab, cstratak, Guillaume Pasquet (Etenil), xtreak
2018-11-20 14:10:05vstinnersetmessageid: <1542723005.07.0.788709270274.issue28604@psf.upfronthosting.co.za>
2018-11-20 14:10:05vstinnerlinkissue28604 messages
2018-11-20 14:10:05vstinnercreate