From b306cfba262ba036ed04be721dc6f9d859659fa8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 1 Sep 2021 01:24:33 +0200 Subject: [PATCH] Disable non-trivial CompareStrings() tests in ANSI build UTF-8 strings can't be used in this case and we don't care enough about this deprecated build to bother with using Latin-1 just for it. --- tests/intl/intltest.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/intl/intltest.cpp b/tests/intl/intltest.cpp index a81f6e5232..bf6730881c 100644 --- a/tests/intl/intltest.cpp +++ b/tests/intl/intltest.cpp @@ -315,6 +315,8 @@ TEST_CASE("wxUILocale::CompareStrings", "[uilocale]") #endif } + // UTF-8 strings are not supported in ASCII build. +#if wxUSE_UNICODE SECTION("German") { const wxUILocale l(wxLocaleIdent("de").Region("DE")); @@ -351,6 +353,7 @@ TEST_CASE("wxUILocale::CompareStrings", "[uilocale]") CHECK( l.CompareStrings(u8("ä"), "ae") == 1 ); CHECK( l.CompareStrings(u8("ö"), "z" ) == 1 ); } +#endif // wxUSE_UNICODE } #endif // wxUSE_INTL