From: Bruno Haible Date: Tue, 25 Sep 2001 13:43:55 +0000 (+0000) Subject: Make intl outside glibc behave the same as intl inside glibc. X-Git-Tag: v0.11~471 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c9db3a7afe77fbcd09257689905adb927e1f1f8;p=thirdparty%2Fgettext.git Make intl outside glibc behave the same as intl inside glibc. --- diff --git a/intl/ChangeLog b/intl/ChangeLog index e4506b849..0c7c02dd4 100644 --- a/intl/ChangeLog +++ b/intl/ChangeLog @@ -1,3 +1,8 @@ +2001-09-24 Bruno Haible + + * loadmsgcat.c (_nl_init_domain_conv): Also enable transliteration + when building on a glibc system but outside glibc. + 2001-09-02 Bruno Haible * plural-exp.h: New file, extracted from gettextP.h. diff --git a/intl/loadmsgcat.c b/intl/loadmsgcat.c index 98f9f2b11..dcf307c48 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