[issue28996] wcscoll is broken on Android and test_locale fails
Xavier de Gaye
report at bugs.python.org
Sat Dec 17 10:53:31 EST 2016
Xavier de Gaye added the comment:
Both strcoll() and strxfrm() are broken (character 'à' unicode code point is 'e0'):
>>> import locale
>>> locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
'C.UTF-8'
>>> locale.strcoll('\u00e0', 'b')
1
>>> locale.strxfrm('\u00e0') < locale.strxfrm('b')
False
The correct results are -1 and True.
----------
versions: +Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28996>
_______________________________________
More information about the Python-bugs-list
mailing list