[issue1158490] locale fails if LANGUAGE has multiple locales
report at bugs.python.org
Thu Jan 6 17:24:25 CET 2011
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
The initial problem (":" in the LANGUAGE variable) was fixed in an independent (?) issue (#1166938) by r39572.
If I understood correctly, locale.getdefaultlocale() is supposed to give the locale settings that we will be active after the first call to locale.setlocale(locale.LC_ALL, ''). In this case, LANGUAGE should be ignored because it has no effect on the active locale. The variable is specific to the gettext library, it is not used by the locale machinery.
About remove-support-for-LANGUAGE--in-locale.patch: you should also update the documentation.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list