Control: severity -1 important On 16.10.2016 00:34, Kalle Olavi Niemitalo wrote: > Robert Luberda <rob...@debian.org> writes: > >> According to GNU gettext documentation[1]: "The variable LANGUAGE is >> ignored if the locale is set to āCā." > > That exception was added on 2001-01-03, for glibc 2.2.1. > In glibc 2.2, LANGUAGE used to override LC_ALL=C. > > In Python 2.0 (released on 2000-10-16), 2.7, and 3.5.0, gettext.py > checks LANGUAGE first, like glibc 2.2. The loop that checks the > environment variables is exactly the same in these three versions. > > I searched for "gettext" at bugs.python.org but it didn't find a > bug report for the priority of LANGUAGE vs. LC_ALL=C in gettext. > http://bugs.python.org/issue1166948 says 'LANGUAGE is honoured > even if the default locale is "C"' but I think that refers to > locale.getdefaultencoding, not to gettext.
I looked at recent behavior changes for that in the updates after the 3.5.2 release, but couldn't find one. It would be good to have a self-contained example to show the exact issue.