summaryrefslogtreecommitdiffstats
path: root/intl/loadmsgcat.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2001-09-25 13:43:55 +0000
committerBruno Haible <bruno@clisp.org>2001-09-25 13:43:55 +0000
commit4c9db3a7afe77fbcd09257689905adb927e1f1f8 (patch)
treeb9b8f4a492d3b2195d5ec1ff2d26d11d9da47a3e /intl/loadmsgcat.c
parent62241c097c065cd7157c66c3158f62be7569bdc1 (diff)
downloadexternal_gettext-4c9db3a7afe77fbcd09257689905adb927e1f1f8.zip
external_gettext-4c9db3a7afe77fbcd09257689905adb927e1f1f8.tar.gz
external_gettext-4c9db3a7afe77fbcd09257689905adb927e1f1f8.tar.bz2
Make intl outside glibc behave the same as intl inside glibc.
Diffstat (limited to 'intl/loadmsgcat.c')
-rw-r--r--intl/loadmsgcat.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/intl/loadmsgcat.c b/intl/loadmsgcat.c
index 98f9f2b..dcf307c 100644
--- a/intl/loadmsgcat.c
+++ b/intl/loadmsgcat.c
@@ -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