From: Bruno Haible Date: Wed, 14 Jun 2023 11:56:38 +0000 (+0200) Subject: Fix another system-tests failure on musl libc. X-Git-Tag: v0.22~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cd017a73f4741d436a2264d97c416d63e75d82c;p=thirdparty%2Fgettext.git Fix another system-tests failure on musl libc. * gettext-tools/tests/intl-3: With gettext from musl libc, use a different expected output. --- 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