summaryrefslogtreecommitdiff
path: root/gettext.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-02-10 22:48:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-02-10 22:48:33 (GMT)
commit466f94ec45e6170730f9dfaf7185a26f2e9fa8bf (patch)
tree94c611b389a658d7581175b8ac4407e6f6ac79fb /gettext.c
parent59ace284f33fe9928fcdb04b02044c921fd6905e (diff)
parent73c01d25fe254208befe099a659916d2bff5bbb4 (diff)
downloadgit-466f94ec45e6170730f9dfaf7185a26f2e9fa8bf.zip
git-466f94ec45e6170730f9dfaf7185a26f2e9fa8bf.tar.gz
git-466f94ec45e6170730f9dfaf7185a26f2e9fa8bf.tar.bz2
Merge branch 'ab/detox-gettext-tests'
Get rid of "GETTEXT_POISON" support altogether, which may or may not be controversial. * ab/detox-gettext-tests: tests: remove uses of GIT_TEST_GETTEXT_POISON=false tests: remove support for GIT_TEST_GETTEXT_POISON ci: remove GETTEXT_POISON jobs
Diffstat (limited to 'gettext.c')
-rw-r--r--gettext.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/gettext.c b/gettext.c
index 1b56421..af2413b 100644
--- a/gettext.c
+++ b/gettext.c
@@ -65,14 +65,6 @@ const char *get_preferred_languages(void)
return NULL;
}
-int use_gettext_poison(void)
-{
- static int poison_requested = -1;
- if (poison_requested == -1)
- poison_requested = git_env_bool("GIT_TEST_GETTEXT_POISON", 0);
- return poison_requested;
-}
-
#ifndef NO_GETTEXT
static int test_vsnprintf(const char *fmt, ...)
{
@@ -117,8 +109,6 @@ void git_setup_gettext(void)
if (!podir)
podir = p = system_path(GIT_LOCALE_PATH);
- use_gettext_poison(); /* getenv() reentrancy paranoia */
-
if (!is_directory(podir)) {
free(p);
return;