Fix failure in check targets when there is no UTF-8 C locale.

This commit is contained in:
Todd C. Miller
2022-12-06 16:26:34 -07:00
parent 3d2082cdf3
commit 3df7b64d80
7 changed files with 19 additions and 19 deletions

View File

@@ -228,7 +228,7 @@ check-fuzzer:
check: $(TEST_PROGS) check-fuzzer
@if test X"$(cross_compiling)" != X"yes"; then \
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'`; \
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'` || true; \
test -n "$$l" || l="C"; \
LC_ALL="$$l"; export LC_ALL; \
unset LANG || LANG=; \

View File

@@ -431,7 +431,7 @@ fuzz_policy_seed_corpus.zip:
rm -rf $$tdir
run-fuzz_policy: fuzz_policy
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'`; \
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'` || true; \
test -n "$$l" || l="C"; \
LC_ALL="$$l"; export LC_ALL; \
unset LANG || LANG=; \
@@ -456,7 +456,7 @@ fuzz_sudoers_seed_corpus.zip:
rm -rf $$tdir
run-fuzz_sudoers: fuzz_sudoers
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'`; \
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'` || true; \
test -n "$$l" || l="C"; \
LC_ALL="$$l"; export LC_ALL; \
unset LANG || LANG=; \
@@ -481,7 +481,7 @@ fuzz_sudoers_ldif_seed_corpus.zip:
rm -rf $$tdir
run-fuzz_sudoers_ldif: fuzz_sudoers_ldif
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'`; \
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'` || true; \
test -n "$$l" || l="C"; \
LC_ALL="$$l"; export LC_ALL; \
unset LANG || LANG=; \
@@ -629,7 +629,7 @@ fuzz: run-fuzz_policy run-fuzz_sudoers run-fuzz_sudoers_ldif
check-fuzzer: $(FUZZ_PROGS)
@if test X"$(cross_compiling)" != X"yes"; then \
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'`; \
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'` || true; \
test -n "$$l" || l="C"; \
LC_ALL="$$l"; export LC_ALL; \
unset LANG || LANG=; \
@@ -646,7 +646,7 @@ check-fuzzer: $(FUZZ_PROGS)
check: $(TEST_PROGS) visudo testsudoers cvtsudoers check-fuzzer
@if test X"$(cross_compiling)" != X"yes"; then \
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'`; \
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'` || true; \
test -n "$$l" || l="C"; \
LC_ALL="$$l"; export LC_ALL; \
unset LANG || LANG=; \