diff --git a/tests/strings/strings.cpp b/tests/strings/strings.cpp index fa633e6861..d8dc4fa3c2 100644 --- a/tests/strings/strings.cpp +++ b/tests/strings/strings.cpp @@ -323,4 +323,17 @@ void StringTestCase::CaseChanges() CPPUNIT_ASSERT( s1l == _T("hello!") ); CPPUNIT_ASSERT( s2u == wxEmptyString ); CPPUNIT_ASSERT( s2l == wxEmptyString ); + +#if !wxUSE_UNICODE + wxLocale locRu(wxLANGUAGE_RUSSIAN, 0 /* flags */); + if ( locRu.IsOk() ) + { + // try upper casing 8bit strings + wxString sUpper("\xdf"), + sLower("\xff"); + + CPPUNIT_ASSERT( sUpper.Lower() == sLower ); + CPPUNIT_ASSERT( sLower.Upper() == sUpper ); + } +#endif // !wxUSE_UNICODE }