[issue28604] Exception raised by python3.5 when using en_GB locale

Andreas Schwab report at bugs.python.org
Sat Sep 30 15:24:02 EDT 2017


Andreas Schwab <schwab at linux-m68k.org> added the comment:

This causes test_float.py to fail with glibc > 2.26.

ERROR: test_float_with_comma (__main__.GeneralFloatCases)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/abuild/rpmbuild/BUILD/Python-3.6.2/Lib/test/support/__init__.py", line 1590, in inner
    return func(*args, **kwds)
  File "Lib/test/test_float.py", line 150, in test_float_with_comma
    if not locale.localeconv()['decimal_point'] == ',':
  File "/home/abuild/rpmbuild/BUILD/Python-3.6.2/Lib/locale.py", line 110, in localeconv
    d = _localeconv()
UnicodeDecodeError: 'locale' codec can't decode byte 0xa0 in position 0: Invalid or incomplete multibyte or wide character

----------------------------------------------------------------------

----------
nosy: +schwab

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue28604>
_______________________________________


More information about the Python-bugs-list mailing list