[Ml-yokadi] p_edit bug

Sébastien Renard Sebastien.Renard
Dim 5 Avr 12:53:29 CEST 2009


Le mercredi 01 avril 2009 21:36:07, Heinz Wiesinger a écrit :
> and I've found another one, though minor and clearly an input error from my
> side:
>
> yokadi> t_edit ¹

Oh, I got this one (but still can't reproduce the other one).
It seams to be only reproductible in UTF-8 environnement (I am still using 
iso8859 as default on my system).

Python is tricky : the string method "isdigit" return true for that character 
but the int() cast failed miserabely.

It could be considered as a bug, but Python devs don't agree : 
http://mail.python.org/pipermail/python-bugs-list/2006-March/032398.html

I've just commit a patch to fix that - we don't trust anymore the isdigit() 
method: 
http://github.com/agateau/yokadi/commit/cdf93604ef4ef7bb7d5522ff2962cda8d2949fa0

Thanks for reporting.
-- 
Sébastien


Plus d'informations sur la liste de diffusion Ml-yokadi