Undeterministic strxfrm?

Peter Otten __peter__ at web.de
Tue Sep 4 17:06:51 EDT 2007


Am Tue, 04 Sep 2007 19:54:57 +0000 schrieb Tuomas:

> I get the same unstability with my locale 'fi_FI.utf8' too, so I am 
> wondering if the source of the problem is the clib or the Python wrapper 
> around it. Differences in strxfrm results for identical source are 
> allways in the few latest bytes of the results.

Python seems to be the culprit as there is a relatively recent
strxfrm-related bugfix, see

http://svn.python.org/view/python/trunk/Modules/_localemodule.c?rev=54669

If I understand it correctly the error makes it likely that the resulting
string has trailing garbage characters.

Peter



More information about the Python-list mailing list