]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Tweak for older libiconv versions.
authorBruno Haible <bruno@clisp.org>
Thu, 19 Apr 2001 12:35:19 +0000 (12:35 +0000)
committerBruno Haible <bruno@clisp.org>
Thu, 19 Apr 2001 12:35:19 +0000 (12:35 +0000)
intl/ChangeLog
intl/loadmsgcat.c

index 8d435b9e65543cd56c092aa0cb9af68496708ae9..55d691df9569beeca6f099b315f3ad999aa77b00 100644 (file)
@@ -1,3 +1,8 @@
+2001-04-19  Bruno Haible <haible@clisp.cons.org>
+
+       * loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT when
+       the libiconv version is smaller than 1.5.
+
 2001-04-09  Bruno Haible <haible@clisp.cons.org>
 
        * loadmsgcat.c: Don't use GNU C extensions if __APPLE_CC__ is defined.
index d3529802520a62710c2c08e1e24cc1c04e5516bc..d589243b20ecd34da8fab8edbb5c4504ab65b1ae 100644 (file)
@@ -288,7 +288,7 @@ _nl_init_domain_conv (domain_file, domain, domainbinding)
 # else
 #  if HAVE_ICONV
          /* When using GNU libiconv, we want to use transliteration.  */
-#   if _LIBICONV_VERSION
+#   if _LIBICONV_VERSION >= 0x0105
          len = strlen (outcharset);
          {
            char *tmp = (char *) alloca (len + 10 + 1);
@@ -298,7 +298,7 @@ _nl_init_domain_conv (domain_file, domain, domainbinding)
          }
 #   endif
          domain->conv = iconv_open (outcharset, charset);
-#   if _LIBICONV_VERSION
+#   if _LIBICONV_VERSION >= 0x0105
          freea (outcharset);
 #   endif
 #  endif