[issue6093] Ambiguous locale.strxfrm

Tuomas Vesterinen report at bugs.python.org
Sat May 23 10:48:45 CEST 2009


New submission from Tuomas Vesterinen <tuomas.vesterinen at iki.fi>:

This was fixed once in Python 2.5, but in Python 3.0 the bug celebrates
its comeback. The tail of the strxfrm result is ambiguous.

Python 3.0.1 (r301:69556, Apr 14 2009, 14:30:31)
[GCC 4.1.2 20070925 (Red Hat 4.1.2-27)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.setlocale(locale.LC_COLLATE, 'en_US.utf8')
'en_US.utf8'
>>> key1=locale.strxfrm('maupassant guy')
>>>> for i in range(10):
...     print(locale.strxfrm('maupassant guy')==key1)
...
False
True
False
False
False
False
False
False
False
False

----------
components: Library (Lib)
messages: 88226
nosy: tuves
severity: normal
status: open
title: Ambiguous locale.strxfrm
type: behavior
versions: Python 3.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6093>
_______________________________________


More information about the Python-bugs-list mailing list