◐ Shell
clean mode source ↗

Message 283496 - Python tracker

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.