]> git.ipfire.org Git - thirdparty/git.git/blobdiff - gettext.h
tests: remove support for GIT_TEST_GETTEXT_POISON
[thirdparty/git.git] / gettext.h
index bee52eb11347da9336e9f1906f7973aa0e224d3b..c8b34fd61229e39fc99fd29a2135de86c2b6dac3 100644 (file)
--- a/gettext.h
+++ b/gettext.h
 
 #define FORMAT_PRESERVING(n) __attribute__((format_arg(n)))
 
-int use_gettext_poison(void);
-
 #ifndef NO_GETTEXT
 void git_setup_gettext(void);
 int gettext_width(const char *s);
 #else
 static inline void git_setup_gettext(void)
 {
-       use_gettext_poison(); /* getenv() reentrancy paranoia */
 }
 static inline int gettext_width(const char *s)
 {
@@ -48,14 +45,12 @@ static inline FORMAT_PRESERVING(1) const char *_(const char *msgid)
 {
        if (!*msgid)
                return "";
-       return use_gettext_poison() ? "# GETTEXT POISON #" : gettext(msgid);
+       return gettext(msgid);
 }
 
 static inline FORMAT_PRESERVING(1) FORMAT_PRESERVING(2)
 const char *Q_(const char *msgid, const char *plu, unsigned long n)
 {
-       if (use_gettext_poison())
-               return "# GETTEXT POISON #";
        return ngettext(msgid, plu, n);
 }