Comment 5 for bug 452790

Revision history for this message
Konrad Klimaszewski (graag) wrote : Re: [Bug 452790] Re: jamu.py crashed in Program._init_() from MythTV.py

Here goes python output:

>>> import locale
>>> locale.getdefaultlocale()
('pl_PL', 'UTF8')
>>> locale.localeconv()['decimal_point']
'.'
>>> locale.atof("100,1")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/locale.py", line 292, in atof
    return func(string)
ValueError: invalid literal for float(): 100,1

Seems it does not work. The decimal point used in Poland is ','.

Yet /usr/share/i18n/locales/pl_PL seems to be set correctly ...