Set locale for all "make check" targets.
This commit is contained in:
@@ -362,6 +362,12 @@ fuzz: $(FUZZ_PROGS)
|
|||||||
# Note: some regress checks are run from srcdir for consistent error messages
|
# Note: some regress checks are run from srcdir for consistent error messages
|
||||||
check: $(TEST_PROGS) fuzz
|
check: $(TEST_PROGS) fuzz
|
||||||
@if test X"$(cross_compiling)" != X"yes"; then \
|
@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_OPTIONS=S; export MALLOC_OPTIONS; \
|
||||||
MALLOC_CONF="abort:true,junk:true"; export MALLOC_CONF; \
|
MALLOC_CONF="abort:true,junk:true"; export MALLOC_CONF; \
|
||||||
rval=0; \
|
rval=0; \
|
||||||
|
@@ -224,6 +224,12 @@ fuzz:
|
|||||||
|
|
||||||
check: $(TEST_PROGS)
|
check: $(TEST_PROGS)
|
||||||
@if test X"$(cross_compiling)" != X"yes"; then \
|
@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_OPTIONS=S; export MALLOC_OPTIONS; \
|
||||||
MALLOC_CONF="abort:true,junk:true"; export MALLOC_CONF; \
|
MALLOC_CONF="abort:true,junk:true"; export MALLOC_CONF; \
|
||||||
./check_python_examples ".libs/python_plugin.so"; \
|
./check_python_examples ".libs/python_plugin.so"; \
|
||||||
|
@@ -269,6 +269,12 @@ fuzz:
|
|||||||
|
|
||||||
check: $(TEST_PROGS)
|
check: $(TEST_PROGS)
|
||||||
@if test X"$(cross_compiling)" != X"yes"; then \
|
@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_OPTIONS=S; export MALLOC_OPTIONS; \
|
||||||
MALLOC_CONF="abort:true,junk:true"; export MALLOC_CONF; \
|
MALLOC_CONF="abort:true,junk:true"; export MALLOC_CONF; \
|
||||||
./check_ttyname; \
|
./check_ttyname; \
|
||||||
|
Reference in New Issue
Block a user