Fix failure in check targets when there is no UTF-8 C locale.
This commit is contained in:
@@ -342,7 +342,7 @@ fuzz_sudo_conf_seed_corpus.zip:
|
||||
rm -rf $$tdir
|
||||
|
||||
run-fuzz_sudo_conf: fuzz_sudo_conf
|
||||
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=; \
|
||||
@@ -406,7 +406,7 @@ fuzz: run-fuzz_sudo_conf
|
||||
|
||||
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=; \
|
||||
@@ -420,7 +420,7 @@ check-fuzzer: $(FUZZ_PROGS)
|
||||
# Note: some regress checks are run from srcdir for consistent error messages
|
||||
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=; \
|
||||
|
Reference in New Issue
Block a user