LANG, locale, unicode, setup.py and Debian packaging

Donn donn.ingle at gmail.com
Mon Jan 14 11:02:56 EST 2008


Given that getlocale() is not to be used, what's the best way to get the 
locale later in the app? I need that two-letter code that's hidden in a 
typical locale like en_ZA.utf8 -- I want that 'en' part.

BTW - things are hanging-together much better now, thanks to your info. I have 
it running in locale 'C' as well as my other test locales. What a relief!

\d



More information about the Python-list mailing list