From 2b6a70592e6f31b4f4c4f1738761074bd1b3f8c7 Mon Sep 17 00:00:00 2001 From: Ronnie Dutta <61982285+MetRonnie@users.noreply.github.com> Date: Thu, 27 Jun 2024 17:43:51 +0100 Subject: [PATCH] Tests: fix `contains_ok` UTF-8 issue See https://stackoverflow.com/q/78678882/3217306 --- tests/functional/lib/bash/test_header | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functional/lib/bash/test_header b/tests/functional/lib/bash/test_header index 915821c0889..cc0f6e0af43 100644 --- a/tests/functional/lib/bash/test_header +++ b/tests/functional/lib/bash/test_header @@ -386,7 +386,7 @@ contains_ok() { local FILE_CONTROL="${2:--}" local TEST_NAME TEST_NAME="$(basename "${FILE_TEST}")-contains-ok" - comm -13 <(sort "${FILE_TEST}") <(sort "${FILE_CONTROL}") \ + LANG=C comm -13 <(sort "${FILE_TEST}") <(sort "${FILE_CONTROL}") \ 1>"${TEST_NAME}.stdout" 2>"${TEST_NAME}.stderr" if [[ -s "${TEST_NAME}.stdout" ]]; then mkdir -p "${TEST_LOG_DIR}"