New submission from Charalampos Stratakis <[email protected]>:
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
----------
components: Tests
messages: 305227
nosy: cstratak
priority: normal
severity: normal
status: open
title: UnicodeDecodeError in localeconv() makes test_float fail with glibc
2.26.90
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue31900>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com