]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Make intl outside glibc behave the same as intl inside glibc.
authorBruno Haible <bruno@clisp.org>
Tue, 25 Sep 2001 13:43:55 +0000 (13:43 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 25 Sep 2001 13:43:55 +0000 (13:43 +0000)
intl/ChangeLog
intl/loadmsgcat.c

index e4506b849fc067006061041f880f323b799a5841..0c7c02dd4501839985f0267b9152e03dc3e976c1 100644 (file)
@@ -1,3 +1,8 @@
+2001-09-24  Bruno Haible  <haible@clisp.cons.org>
+
+       * loadmsgcat.c (_nl_init_domain_conv): Also enable transliteration
+       when building on a glibc system but outside glibc.
+
 2001-09-02  Bruno Haible  <haible@clisp.cons.org>
 
        * plural-exp.h: New file, extracted from gettextP.h.
index 98f9f2b11b83b6f9cdbf2582998d76f835b1d8d1..dcf307c48e36fa1465869777c7be429a1ee7b80c 100644 (file)
@@ -212,8 +212,9 @@ _nl_init_domain_conv (domain_file, domain, domainbinding)
            domain->conv = (__gconv_t) -1;
 # else
 #  if HAVE_ICONV
-         /* When using GNU libiconv, we want to use transliteration.  */
-#   if _LIBICONV_VERSION >= 0x0105
+         /* When using GNU libc >= 2.2 or GNU libiconv >= 1.5,
+            we want to use transliteration.  */
+#   if (defined (__GNU_LIBRARY__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2))) || (_LIBICONV_VERSION >= 0x0105)
          len = strlen (outcharset);
          {
            char *tmp = (char *) alloca (len + 10 + 1);
@@ -223,7 +224,7 @@ _nl_init_domain_conv (domain_file, domain, domainbinding)
          }
 #   endif
          domain->conv = iconv_open (outcharset, charset);
-#   if _LIBICONV_VERSION >= 0x0105
+#   if (defined (__GNU_LIBRARY__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2))) || (_LIBICONV_VERSION >= 0x0105)
          freea (outcharset);
 #   endif
 #  endif