From 67fbb4eef702d0185d94f76a26a302aa1947605c Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Mon, 11 Nov 2024 16:26:38 +0100 Subject: [PATCH] Attempt to fix Windows test --- src/test/shell/bazel/unicode_filenames_test.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/test/shell/bazel/unicode_filenames_test.sh b/src/test/shell/bazel/unicode_filenames_test.sh index 6c392e3e644ec7..99b616f8b08ff6 100755 --- a/src/test/shell/bazel/unicode_filenames_test.sh +++ b/src/test/shell/bazel/unicode_filenames_test.sh @@ -196,16 +196,12 @@ EOF } function test_cc_dependency_with_utf8_filename() { - if "$is_windows"; then - # äöüÄÖÜß in UTF-8 - local unicode=$(echo -e '\xC3\xA4\xC3\xB6\xC3\xBC\xC3\x84\xC3\x96\xC3\x9C\xC3\x9F') - else - # äöüÄÖÜß🌱 in UTF-8 - local unicode=$(echo -e '\xC3\xA4\xC3\xB6\xC3\xBC\xC3\x84\xC3\x96\xC3\x9C\xC3\x9F\xF0\x9F\x8C\xB1') - fi + local -r unicode='äöüÄÖÜß🌱' setup_module_dot_bazel + bazel info character-encoding + mkdir pkg cat >pkg/BUILD <"pkg/${unicode}.h" <pkg/bin.cc < pkg/bin.cc + cat >>pkg/bin.cc <