]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
lang-librep: Avoid FAIL on FreeBSD, NetBSD.
authorBruno Haible <bruno@clisp.org>
Fri, 19 Jul 2024 02:08:16 +0000 (04:08 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 19 Jul 2024 03:34:59 +0000 (05:34 +0200)
* gettext-tools/tests/lang-librep: On FreeBSD and NetBSD, don't test the
ISO-8859-1 locale.

gettext-tools/tests/lang-librep

index db314a9084fb2502eedad1904755637d514db996..31bf926fbc893387d34f6bcf32703100ce42d3f8 100755 (executable)
@@ -72,6 +72,11 @@ esac
 # Test which of the fr_FR locales are installed.
 : ${LOCALE_FR=fr_FR}
 : ${LOCALE_FR_UTF8=fr_FR.UTF-8}
+# librep on FreeBSD, NetBSD supports only UTF-8 locales.
+# (Maybe because librep bundles the intl/ subpackage from gettext-0.10.35.)
+case "$host_os" in
+  freebsd* | netbsd*) LOCALE_FR=none ;;
+esac
 if test $LOCALE_FR != none; then
   LC_ALL=$LOCALE_FR ../testlocale
   case $? in