]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
lang-javascript: Avoid failure on macOS 13..15.
authorBruno Haible <bruno@clisp.org>
Sun, 14 Sep 2025 07:47:44 +0000 (09:47 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 14 Sep 2025 07:47:44 +0000 (09:47 +0200)
* gettext-tools/tests/lang-javascript: On macOS, test only in the UTF-8 locale.

gettext-tools/tests/lang-javascript

index 7063da651adc7063c0f61384c11737f9bc42d4d0..33f62058b723b0d6f9376b4661ceeb9b365c1a33 100755 (executable)
@@ -74,6 +74,10 @@ ${MSGFMT} -c -o fr/LC_MESSAGES/prog.mo fr.po
 # Test which of the fr_FR locales are installed.
 : ${LOCALE_FR=fr_FR}
 : ${LOCALE_FR_UTF8=fr_FR.UTF-8}
+# gjs on macOS supports only UTF-8 locales.
+case "$host_os" in
+  darwin*) LOCALE_FR=none ;;
+esac
 if test $LOCALE_FR != none; then
   LC_ALL=$LOCALE_FR ../testlocale
   case $? in