M
Manlio Perillo
Regards.
I have a few questions about locale handling on Windows.
The first: why getlocale() returns (None, None) when the locale is 'C'?
The second is: why this code fails?:
Traceback (most recent call last):
File "<pyshell#15>", line 1, in -toplevel-
locale.setlocale(locale.LC_ALL, (loc, enc))
File "C:\Python2.4\lib\locale.py", line 381, in setlocale
return _setlocale(category, locale)
Error: unsupported locale setting
Fortunately'Italian_Italy.1252'
and
locale.setlocale(locale.LC_ALL)
'C'
works...
Thanks Manlio Perillo
I have a few questions about locale handling on Windows.
The first: why getlocale() returns (None, None) when the locale is 'C'?
The second is: why this code fails?:
Traceback (most recent call last):
File "<pyshell#15>", line 1, in -toplevel-
locale.setlocale(locale.LC_ALL, (loc, enc))
File "C:\Python2.4\lib\locale.py", line 381, in setlocale
return _setlocale(category, locale)
Error: unsupported locale setting
Fortunately'Italian_Italy.1252'
and
locale.setlocale(locale.LC_ALL)
'C'
works...
Thanks Manlio Perillo