Re: [PythonCE] Python 2.4.3 for Windows CE / ARM

2006-04-08 Thread Giovanni Petrucciani
Luke Dunstan wrote: > Looking at the source code for float() in floatobject.c, it calls > PyOS_ascii_strtod() in pystrtod.c. This function then calls localeconv() to > find the decimal point character for the current locale and if it is not '.' > then the function translates any '.' in the input

Re: [PythonCE] Python 2.4.3 for Windows CE / ARM

2006-04-08 Thread Luke Dunstan
- Original Message - From: "Giovanni Petrucciani" <[EMAIL PROTECTED]> To: "Jan Ischebeck" <[EMAIL PROTECTED]> Cc: Sent: Saturday, April 08, 2006 9:32 PM Subject: Re: [PythonCE] Python 2.4.3 for Windows CE / ARM > Jan Ischebeck wrote: >> Dear Luke, >> >> both float("2,2") and float("2.2

Re: [PythonCE] Python 2.4.3 for Windows CE / ARM

2006-04-08 Thread Giovanni Petrucciani
Jan Ischebeck wrote: > Dear Luke, > > both float("2,2") and float("2.2") don't work. They raise an > "ValueError: invalid literal for float(): 2.2". > Current locale is "Deutsch" (german word for "german"). After setting > the locale to LC_ALL it is still > "Deutsch". > > According to localeconv|

Re: [PythonCE] Python 2.4.3 for Windows CE / ARM

2006-04-08 Thread Jan Ischebeck
Dear Luke, both float("2,2") and float("2.2") don't work. They raise an "ValueError: invalid literal for float(): 2.2". Current locale is "Deutsch" (german word for "german"). After setting the locale to LC_ALL it is still "Deutsch". According to localeconv| 'decimal_point' is "," but this shou