M
Moof
Hi there,
I'm trying to use some country-specific services provided by python
under Windows, and I'm coming up with a couple of problems, specifically
that floats are not being printed correctly when converted to strings
(they print out as 1,024.36 instead of 1.024,36), and also the contents
of \w inside a regexp, which I believe is equivalent to string.letters.
Under linux, I can get around this by setting the locale correctly.
Under windows, I'm buggered if I can work out how:
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
File "C:\Python23\lib\locale.py", line 381, in setlocale
return _setlocale(category, locale)
Error: locale setting not supported
That's the clincher: I can't seem to set locales. Why is this? IS there
a way to get around this?
I'm using python 2.3 under Windows XP and 2K.
Moof
I'm trying to use some country-specific services provided by python
under Windows, and I'm coming up with a couple of problems, specifically
that floats are not being printed correctly when converted to strings
(they print out as 1,024.36 instead of 1.024,36), and also the contents
of \w inside a regexp, which I believe is equivalent to string.letters.
Under linux, I can get around this by setting the locale correctly.
Under windows, I'm buggered if I can work out how:
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
File "C:\Python23\lib\locale.py", line 381, in setlocale
return _setlocale(category, locale)
Error: locale setting not supported
That's the clincher: I can't seem to set locales. Why is this? IS there
a way to get around this?
I'm using python 2.3 under Windows XP and 2K.
Moof