summaryrefslogtreecommitdiffstats
path: root/intl
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
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')
-rw-r--r--intl/ChangeLog5
-rw-r--r--intl/loadmsgcat.c7
2 files changed, 9 insertions, 3 deletions
diff --git a/intl/ChangeLog b/intl/ChangeLog
index e4506b8..0c7c02d 100644
--- a/intl/ChangeLog
+++ b/intl/ChangeLog
@@ -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.
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