tests: Explicitly unset LANGUAGE after setting LC_ALL
authorSimon McVittie <smcv@collabora.com>
Tue, 19 Sep 2017 13:41:18 +0000 (14:41 +0100)
committerSimon McVittie <smcv@debian.org>
Fri, 22 Sep 2017 14:48:24 +0000 (15:48 +0100)
commit00134510bdae100ae3c62777ccf610900bcbafa2
tree69210218f2b2e17fc1117dcf05bfc9eb1b88caad
parentc46ab60ffcca0d2002f5dd38cfe335269bdc8043
tests: Explicitly unset LANGUAGE after setting LC_ALL

As a GNU extension, LANGUAGE takes precedence over LC_ALL for
gettext(3) whenever the locale is not C, causing tests that grep for
specific English strings to fail when run in non-English locales.
The upstream glibc proposal for C.UTF-8 would give C.UTF-8 the same
special case as C here, but the implementation in Debian does not
currently have this, so we have to unset LANGUAGE too.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Forwarded: https://github.com/ostreedev/ostree/pull/1188
Applied-upstream: 2017.12, commit:223c940b46a4bb335665df7436566b73cdf0effd

Gbp-Pq: Topic 2017.12
Gbp-Pq: Name tests-Explicitly-unset-LANGUAGE-after-setting-LC_ALL.patch
tests/libtest-core.sh