From 12b29979d3ba9a5a08b2b3e44ad775ebe3ea18af Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 30 Mar 2025 20:57:40 +0200 Subject: [PATCH] Avoid setting locale to UTF-8 in the tests under Windows Maybe this is somehow responsible for the mysterious crashes in this test in the CI jobs. See #25056. --- tests/strings/strings.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/strings/strings.cpp b/tests/strings/strings.cpp index 034531ade7..6d6c7f46de 100644 --- a/tests/strings/strings.cpp +++ b/tests/strings/strings.cpp @@ -96,9 +96,11 @@ TEST_CASE("StringFormat", "[wxString]") TEST_CASE("StringFormatUnicode", "[wxString]") { +#ifndef __WINDOWS__ // At least under FreeBSD vsnprintf(), used by wxString::Format(), doesn't // work with Unicode strings unless a UTF-8 locale is used, so set it. wxLocaleSetter loc("C.UTF-8"); +#endif // !__WINDOWS__ const char *UNICODE_STR = "Iestat\xC4\xAB %i%i"; //const char *UNICODE_STR = "Iestat\xCC\x84 %i%i";