]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix another system-tests failure on musl libc.
authorBruno Haible <bruno@clisp.org>
Wed, 14 Jun 2023 11:56:38 +0000 (13:56 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 15 Jun 2023 09:26:58 +0000 (11:26 +0200)
* gettext-tools/tests/intl-3: With gettext from musl libc, use a different
expected output.

gettext-tools/tests/intl-3

index 8c12083aea4f7eb0be43897b8413ad959ad57745..20889825832907f8587a605cf43c04ee4e8dae6d 100755 (executable)
@@ -25,6 +25,18 @@ cat <<EOF > 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