Set locale for all "make check" targets.

This commit is contained in:
Todd C. Miller
2021-03-08 12:51:48 -07:00
parent 7bce330ffa
commit 0cf7c3a951
3 changed files with 18 additions and 0 deletions

View File

@@ -224,6 +224,12 @@ fuzz:
check: $(TEST_PROGS)
@if test X"$(cross_compiling)" != X"yes"; then \
if locale -a 2>&1 | grep '^C.UTF-8$$' >/dev/null 2>&1; then \
LC_ALL=C.UTF-8; export LC_ALL; \
else \
LC_ALL=C; export LC_ALL; \
fi; \
unset LANG || LANG=; \
MALLOC_OPTIONS=S; export MALLOC_OPTIONS; \
MALLOC_CONF="abort:true,junk:true"; export MALLOC_CONF; \
./check_python_examples ".libs/python_plugin.so"; \