locale on win2k, python 2.1.1
Martin von Loewis
loewis at informatik.hu-berlin.de
Wed Jan 16 03:28:07 EST 2002
Syver Enstad <syver-en+usenet at online.no> writes:
> The locale.setlocale used to accept parameters such as:
> locale.LC_ALL, 'no_NO'
> Now it complains:
> locale.Error: locale setting not supported
I think Windows uses different locale names. Could you please try
'norwegian_Norway' or some such instead? IOW, what does
import locale
print locale.setlocale(locale.LC_ALL,"")
print for you, if you have Norwegian settings?
Passing an empty string to setlocale is recommended, anyway, as it
copies the user's conventions - that way you avoid hard-coding
anything into your program.
Regards,
Martin
More information about the Python-list
mailing list