aboutsummaryrefslogtreecommitdiff
path: root/system/jq/run_tests_in_C_locale.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/jq/run_tests_in_C_locale.patch')
-rw-r--r--system/jq/run_tests_in_C_locale.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/system/jq/run_tests_in_C_locale.patch b/system/jq/run_tests_in_C_locale.patch
new file mode 100644
index 0000000000000..5d1d36b0b1fa2
--- /dev/null
+++ b/system/jq/run_tests_in_C_locale.patch
@@ -0,0 +1,15 @@
+The following patch is taken from this pull request:
+https://github.com/jqlang/jq/pull/3039
+--- a/tests/setup
++++ b/tests/setup
+@@ -12,6 +12,10 @@
+ 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 \