[New-bugs-announce] [issue31900] UnicodeDecodeError in localeconv() makes test_float fail with glibc 2.26.90
Charalampos Stratakis
report at bugs.python.org
Mon Oct 30 09:41:05 EDT 2017
New submission from Charalampos Stratakis <cstratak at redhat.com>:
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 <report at bugs.python.org>
<https://bugs.python.org/issue31900>
_______________________________________
More information about the New-bugs-announce
mailing list