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



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
.



Relevant Pages

  • LANG, locale, unicode, setup.py and Debian packaging
    ... On start I call locale.setlocale, the getlocale. ... The app assumes unicode objects internally. ... My setup.py also tests locale (because it then loads gettext ... happens if LANG is set to "C", ...
    (comp.lang.python)
  • Re: vb6 question
    ... runtime behavior to make it insensitive to system locale. ... will still interpret it on the basis of the global locale setting. ... What Rick wants/needs is a way to control that behavior for a single app ...
    (microsoft.public.vb.general.discussion)
  • Re: test if a string is a valid number?
    ... VB is internationalized => soubroutine must take locale into the account. ... Won't require any effort on your part except adding CLR support to your ... not you also want to support postfix sign (which is one of the locale ... 32-bit app on the ...
    (microsoft.public.vc.mfc)
  • Re: Strange behaviour of Str$
    ... Most people would say they are "not locale aware". ... > decimal separator, while the app was running. ...
    (microsoft.public.vb.general.discussion)
  • Re: Problem with locale
    ... If you use your app in Germany, you should have German locale and CDbl ...
    (microsoft.public.vb.syntax)