From 3cd017a73f4741d436a2264d97c416d63e75d82c Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 14 Jun 2023 13:56:38 +0200 Subject: [PATCH] Fix another system-tests failure on musl libc. * gettext-tools/tests/intl-3: With gettext from musl libc, use a different expected output. --- gettext-tools/tests/intl-3 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gettext-tools/tests/intl-3 b/gettext-tools/tests/intl-3 index 8c12083ae..208898258 100755 --- a/gettext-tools/tests/intl-3 +++ b/gettext-tools/tests/intl-3 @@ -25,6 +25,18 @@ cat < in-3-2.ok Käse EOF +if test -n "$USE_SYSTEM_LIBINTL"; then + # In the system-tests/ dir: + case "$host_os" in + *-musl* | midipix*) + # On musl libc, bind_textdomain_codeset works only when the codeset + # argument is "UTF-8". In other words, on musl libc, the expected output + # is always in UTF-8. + cp in-3-2.ok in-3-1.ok + ;; + esac +fi + : ${LOCALE_FR=fr_FR} : ${LOCALE_FR_UTF8=fr_FR.UTF-8} if test $LOCALE_FR != none; then -- 2.47.2