[IronPython] Import decimal failure with Turkish Locale (IP 1.1)

Curt Hagenlocher curt at hagenlocher.org
Wed Oct 31 19:15:28 CET 2007


On 10/31/07, Michael Foord <michael.foord at resolversystems.com> wrote:
>
>
> The issue is because one of the method names is '_round_ceiling'. In the
> Turkish locale, the uppercase version of this is "ROUND_CEİLİNG" (in
> Turkish uppercase of "i" is "I" with a dot on top of it). Obviously the
> lookup of the corresponding global fails.
>
> In CPython the name is a byte-string, and so '.upper' just uses the
> ascii uppercase rather than the locale sensitive version - so we see
> failing to import 'decimal.py' as an IronPython bug. As this badly
> impacts Resolver we would *love* to see this fixed soon...


Why not change decimal.py to use ToUpperInvariant()?  Are you sharing the
file with CPython?

--
Curt Hagenlocher
curt at hagenlocher.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20071031/0c257edf/attachment.html>


More information about the Ironpython-users mailing list