From b26ed94e4fd3fc3f6cac6c2fa7e3ed6d4b56706f Mon Sep 17 00:00:00 2001 From: Michael Wetherell Date: Wed, 15 Feb 2006 21:16:45 +0000 Subject: [PATCH] The cyrillic characters used in the CaseChanges() test have different values on different platforms depending on the cyrillic character set used. So try generating these from the Unicode instead of using fixed values. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/strings/strings.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/strings/strings.cpp b/tests/strings/strings.cpp index ea4e04fc58..3e25c70f48 100644 --- a/tests/strings/strings.cpp +++ b/tests/strings/strings.cpp @@ -459,8 +459,11 @@ void StringTestCase::CaseChanges() if ( locRu.IsOk() ) { // try upper casing 8bit strings - wxString sUpper("\xdf"), - sLower("\xff"); + const wchar_t capital_ya[] = { 0x42f, 0 }, + small_ya[] = { 0x44f, 0 }; + + wxString sUpper(wxConvLibc.cWC2MB(capital_ya)), + sLower(wxConvLibc.cWC2MB(small_ya)); CPPUNIT_ASSERT( sUpper.Lower() == sLower ); CPPUNIT_ASSERT( sLower.Upper() == sUpper ); -- 2.45.2