]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
intl: Improve support of Citrus/FreeBSD iconv.
authorBruno Haible <bruno@clisp.org>
Wed, 14 Feb 2024 22:51:28 +0000 (23:51 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 14 Feb 2024 22:51:28 +0000 (23:51 +0100)
* gettext-runtime/intl/dcigettext.c (_nl_find_msg): Use //TRANSLIT with all
iconv implementations that support it.

gettext-runtime/intl/dcigettext.c

index 56bcea2fc9988ff2565ee16c1cd99ce78fce3f20..4337f3af79c25f1e17086dedd120271d6a25763b 100644 (file)
@@ -1,5 +1,5 @@
 /* Implementation of the internal dcigettext function.
-   Copyright (C) 1995-2023 Free Software Foundation, Inc.
+   Copyright (C) 1995-2024 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published by
@@ -1207,7 +1207,8 @@ _nl_find_msg (struct loaded_l10nfile *domain_file,
                         we want to use transliteration.  */
 #   if (((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2) \
        && !defined __UCLIBC__) \
-       || _LIBICONV_VERSION >= 0x0105
+       || _LIBICONV_VERSION >= 0x0105 \
+       || defined ICONV_SET_TRANSLITERATE
                      if (strchr (outcharset, '/') == NULL)
                        {
                          char *tmp;