From fc9ecd71b34da9c59264d35ab88e0716019e68ac Mon Sep 17 00:00:00 2001 From: Emanuele Torre Date: Sat, 10 Feb 2024 18:23:50 +0100 Subject: tests: run tests in C locale Fixes #3038 --- tests/setup | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/setup b/tests/setup index c05f4ec7..935ab038 100755 --- a/tests/setup +++ b/tests/setup @@ -12,6 +12,10 @@ JQTESTDIR=$(cd "$(dirname "$0")" && pwd) JQBASEDIR=$JQTESTDIR/.. JQ=${JQ:-$JQBASEDIR/jq} +# Some tests have locale-dependent output; use C locale. Fixes #3038 +LC_ALL=C +export LC_ALL + if [ -z "${NO_VALGRIND-}" ] && which valgrind > /dev/null; then VALGRIND="valgrind --error-exitcode=1 --leak-check=full \ --suppressions=$JQTESTDIR/onig.supp \ -- cgit v1.2.3