]> git.ipfire.org Git - thirdparty/git.git/blobdiff - config.c
tests: make GIT_TEST_GETTEXT_POISON a boolean
[thirdparty/git.git] / config.c
index 374cb33005007fb2d9f4d15ea21dbd39e4219e4e..b985d60fa4f89506f29d4dfd29f0b8b956588058 100644 (file)
--- a/config.c
+++ b/config.c
@@ -956,6 +956,15 @@ static void die_bad_number(const char *name, const char *value)
        if (!value)
                value = "";
 
+       if (!strcmp(name, "GIT_TEST_GETTEXT_POISON"))
+               /*
+                * We explicitly *don't* use _() here since it would
+                * cause an infinite loop with _() needing to call
+                * use_gettext_poison(). This is why marked up
+                * translations with N_() above.
+                */
+               die(bad_numeric, value, name, error_type);
+
        if (!(cf && cf->name))
                die(_(bad_numeric), value, name, _(error_type));