summaryrefslogtreecommitdiff
path: root/tests/libtest-core.sh
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2017-09-19 14:41:18 +0100
committerAtomic Bot <atomic-devel@projectatomic.io>2017-09-19 15:16:09 +0000
commit223c940b46a4bb335665df7436566b73cdf0effd (patch)
tree48d5b11b06ca55fddd928f7856b772290fb7bca1 /tests/libtest-core.sh
parent13c3898cc2ecc4d89b5756a2db78d709dd9e9f45 (diff)
downloadostree-223c940b46a4bb335665df7436566b73cdf0effd.tar.gz
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> Closes: #1188 Approved by: jlebon
Diffstat (limited to 'tests/libtest-core.sh')
-rw-r--r--tests/libtest-core.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/libtest-core.sh b/tests/libtest-core.sh
index d0b7d372..ce0e4bb1 100644
--- a/tests/libtest-core.sh
+++ b/tests/libtest-core.sh
@@ -40,6 +40,8 @@ if locale -a | grep C.UTF-8 >/dev/null; then
else
export LC_ALL=C
fi
+# A GNU extension, used whenever LC_ALL is not C
+unset LANGUAGE
# This should really be the default IMO
export G_DEBUG=fatal-warnings