Locale case change not working
Clodoaldo
clodoaldo.pinto at gmail.com
Thu May 24 05:17:01 EDT 2007
When using unicode the case change works:
>>> print u'É'.lower()
é
But when using the pt_BR.utf-8 locale it doesn't:
>>> locale.setlocale(locale.LC_ALL, 'pt_BR.utf-8')
'pt_BR.utf-8'
>>> locale.getlocale()
('pt_BR', 'utf')
>>> print 'É'.lower()
É
What am I missing? I'm in Fedora Core 5 and Python 2.4.3.
# cat /etc/sysconfig/i18n
LANG="en_US.UTF-8"
SYSFONT="latarcyrheb-sun16"
Regards, Clodoaldo Pinto Neto
More information about the Python-list
mailing list