tests: fix subst-mb-incomplete test on NetBSD

* testsuite/subst-mb-incomplete.sh:
Use en_US.UTF-8, not en_US.utf8, as the latter does not work
in NetBSD and require_en_utf8_locale_ tests for the former.
* cfg.mk (sc_THANKS_in_sorted): Do so here, too, for completeness.
This commit is contained in:
Paul Eggert committed 2026-09-13 23:57:27 -07:00
1 parent 1457250706
commit 7d45214948
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -142,10 +142,10 @@ sc_THANKS_in_duplicates:
1>&2; exit 1; } || :
# Ensure the contributor list stays sorted. However, if the system's
# en_US.utf8 locale data is erroneous, give a diagnostic and skip
# en_US.UTF-8 locale data is erroneous, give a diagnostic and skip
# this test. This affects Ubuntu up to at least 22.04.
sc_THANKS_in_sorted:
@printf '%s\n' J.T. Jakub | LC_ALL=en_US.utf8 sort -fc 2>/dev/null \
@printf '%s\n' J.T. Jakub | LC_ALL=en_US.UTF-8 sort -fc 2>/dev/null \
&& { \
sed '/^$$/,/^$$/!d;/^$$/d' $(srcdir)/THANKS.in > $@.1 && \
LC_ALL=en_US.UTF-8 sort -f -k1,1 $@.1 > $@.2 && \
+1 -1
View File
@@ -25,7 +25,7 @@ require_en_utf8_locale_
echo > in || framework_failure_
printf '\233\375\200\n' > exp-out || framework_failure_
LC_ALL=en_US.utf8 sed $(printf 's/^/\\L\233\375\\\200/') in > out 2> err
LC_ALL=en_US.UTF-8 sed $(printf 's/^/\\L\233\375\\\200/') in > out 2> err
compare exp-out out || fail=1
compare /dev/null err || fail=1