+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.
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);
}
# 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