]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/test-lib.sh
i18n: do not poison translations unless GIT_GETTEXT_POISON envvar is set
[thirdparty/git.git] / t / test-lib.sh
index 0840e4a5c9151c3b3ead55be63e2e04bcbcb4a31..f4c1e04e4f26ca38b57fc6c47b05cf92111107b6 100644 (file)
@@ -1080,7 +1080,13 @@ test -z "$NO_PERL" && test_set_prereq PERL
 test -z "$NO_PYTHON" && test_set_prereq PYTHON
 
 # Can we rely on git's output in the C locale?
-test -z "$GETTEXT_POISON" && test_set_prereq C_LOCALE_OUTPUT
+if test -n "$GETTEXT_POISON"
+then
+       GIT_GETTEXT_POISON=YesPlease
+       export GIT_GETTEXT_POISON
+else
+       test_set_prereq C_LOCALE_OUTPUT
+fi
 
 # test whether the filesystem supports symbolic links
 ln -s x y 2>/dev/null && test -h y 2>/dev/null && test_set_prereq SYMLINKS