This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 vstinner
收信人 Guillaume Pasquet (Etenil), cstratak, lemburg, loewis, schwab, serhiy.storchaka, vstinner, xtreak
日期 2018-11-20.14:10:05
SpamBayes Score -1.0
Marked as misclassified
Message-id <1542723005.07.0.788709270274.issue28604@psf.upfronthosting.co.za>
In-reply-to
内容
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
历史
日期 用户 动作 参数
2018-11-20 14:10:05vstinner修改recipients: + vstinner, lemburg, loewis, serhiy.storchaka, schwab, cstratak, Guillaume Pasquet (Etenil), xtreak
2018-11-20 14:10:05vstinner修改messageid: <1542723005.07.0.788709270274.issue28604@psf.upfronthosting.co.za>
2018-11-20 14:10:05vstinner链接issue28604 messages
2018-11-20 14:10:05vstinner创建