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.

作者 cstratak
收信人 cstratak
日期 2017-10-30.13:41:05
SpamBayes Score -1.0
Marked as misclassified
Message-id <1509370865.74.0.213398074469.issue31900@psf.upfronthosting.co.za>
In-reply-to
内容
Original bug report: https://bugzilla.redhat.com/show_bug.cgi?id=1484497

It seems that on the development branch of Fedora, when we updated glibc from 2.26 to 2.26.90, test_float_with_comma started failing.

Details from the original bug report:

Under certain circumstances, when LC_NUMERIC is fr_FR.ISO8859-1 but LC_ALL is C.UTF-8, locale.localeconv() fails with
    UnicodeDecodeError: 'locale' codec can't decode byte 0xa0 in position 0: Invalid or incomplete multibyte or wide character

Apparently, the thousands separator (or something else) in the lconv is "\xa0" (unbreakable space in fr_FR.ISO8859-1), and it's being decoded with UTF-8.

This is tripped by Python's test suite, namely test_float.GeneralFloatCases.test_float_with_comma
历史
日期 用户 动作 参数
2017-10-30 13:41:05cstratak修改recipients: + cstratak
2017-10-30 13:41:05cstratak修改messageid: <1509370865.74.0.213398074469.issue31900@psf.upfronthosting.co.za>
2017-10-30 13:41:05cstratak链接issue31900 messages
2017-10-30 13:41:05cstratak创建