locale module broken?

Oleg Broytmann phd at phd.pp.ru
Fri Mar 15 19:47:54 EST 2002


On Sat, Mar 16, 2002 at 01:09:58AM +0100, Martin v. Loewis wrote:
> Carsten Gaebler <clpy at snakefarm.org> writes:
> 
> > while playing around with Greg Lindstrom's "Pretty integers" (see his
> > posting), my Python 2.2 got stuck here:
> > 
> > >>> import locale
> > >>> locale.setlocale(locale.LC_ALL, "fr_FR")
> > 'fr_FR'
> > >>> locale.format("%.1f", 12345.5, 1)
> > 
> > It runs forever. This is on RedHat 6.2 and Debian Potato. Any hints?
> 
> I can't reproduce this, with Python 2.3a0 on a SuSE 7.2 system: it
> prints '12345,5'. If you care somewhat about this problem, submit a
> bug report to SF. If you care a lot, please investigate.

   I reproduced this behviour on Debian 2.2 with all version of Python -
2.0, 2.1 amd 2.2... but only with FR locale. With ru_RU locale it works
perfectly. It seems glibc has got broken FR locale.

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.




More information about the Python-list mailing list