diff options
author | Emanuele Torre <torreemanuele6@gmail.com> | 2024-02-10 18:23:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-10 18:23:50 +0100 |
commit | fc9ecd71b34da9c59264d35ab88e0716019e68ac (patch) | |
tree | bff4b995cd4e817c31898a11330ee1fd00876d69 | |
parent | 623d7a8bd64253fe4be217b3c4a24bd51240b3a0 (diff) |
tests: run tests in C locale
Fixes #3038
-rwxr-xr-x | tests/setup | 4 |
1 files changed, 4 insertions, 0 deletions
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 \ |