[Chandler-dev] float('1.0') failing occasionally in French locale

Jeffrey Harris jeffrey at osafoundation.org
Wed Sep 13 07:55:56 PDT 2006


Hi Folks,

Bug 6688, "calendar threw an exception at least once when in the French
locale", is assigned to me.  I'm curious if anyone on the list has seen
this behavior before.

In the French locale, ',' should be used as a decimal point instead of
'.'.  But I've been operating under the (perhaps mistaken) impression
that at least in Python 2.4, float() should be locale agnostic, and only
locale.atof() should have trouble with '.' as a decimal point.

So has Philippe found a bug in Python, or is there something else going
on here?

https://bugzilla.osafoundation.org/show_bug.cgi?id=6688

Sincerely,
Jeffrey


More information about the chandler-dev mailing list