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
This commit is contained in:
parent
0c09451870
commit
b26ed94e4f
@ -459,8 +459,11 @@ void StringTestCase::CaseChanges()
|
|||||||
if ( locRu.IsOk() )
|
if ( locRu.IsOk() )
|
||||||
{
|
{
|
||||||
// try upper casing 8bit strings
|
// try upper casing 8bit strings
|
||||||
wxString sUpper("\xdf"),
|
const wchar_t capital_ya[] = { 0x42f, 0 },
|
||||||
sLower("\xff");
|
small_ya[] = { 0x44f, 0 };
|
||||||
|
|
||||||
|
wxString sUpper(wxConvLibc.cWC2MB(capital_ya)),
|
||||||
|
sLower(wxConvLibc.cWC2MB(small_ya));
|
||||||
|
|
||||||
CPPUNIT_ASSERT( sUpper.Lower() == sLower );
|
CPPUNIT_ASSERT( sUpper.Lower() == sLower );
|
||||||
CPPUNIT_ASSERT( sLower.Upper() == sUpper );
|
CPPUNIT_ASSERT( sLower.Upper() == sUpper );
|
||||||
|
Loading…
Reference in New Issue
Block a user