Python and i18n

João Alfredo jagbdotx at yahoo.com.br
Sat Oct 18 12:49:59 EDT 2003


Hi people.

My LANG environment variable is set to pt_BR.UTF-8 and when I run a 
date command:

$ date
Sáb Out 18 11:19:42 BRT 2003
I get the current date in the appropriate locale.

Now when i run the following command in the python interpreter:

$ python
Python 2.2.2 (#1, Feb 24 2003, 19:13:11)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> time.asctime()
'Sat Oct 18 11:25:19 2003'
>>>
i get the date in US locale format.

Does python support the pt_BR locale?? Am I doing something wrong??

Thanks in advance!

-- 
João Alfredo <jagbdotx at yahoo.com.br>
dotX






More information about the Python-list mailing list