diff --git a/tests/strings/unicode.cpp b/tests/strings/unicode.cpp index d6e28164d7..1fb8b358bc 100644 --- a/tests/strings/unicode.cpp +++ b/tests/strings/unicode.cpp @@ -387,12 +387,12 @@ void UnicodeTestCase::ConversionUTF16() // terminate the string, this exposed a bug in our conversion code which // got confused in this case size_t len; - conv.cMB2WC("\x01\0\0B\0C" /* A macron BC */, 6, &len); + conv.cMB2WC("\x01\0\0B\0C\0" /* A macron BC */, 6, &len); CPPUNIT_ASSERT_EQUAL( 3, len ); // Another one: verify that the length of the resulting string is computed // correctly when there is a surrogate in the input. - wxMBConvUTF16BE().cMB2WC("\xd8\x03\xdc\x01" /* OLD TURKIC LETTER YENISEI A */, wxNO_LEN, &len); + wxMBConvUTF16BE().cMB2WC("\xd8\x03\xdc\x01\0" /* OLD TURKIC LETTER YENISEI A */, wxNO_LEN, &len); CPPUNIT_ASSERT_EQUAL( 1, len ); } @@ -416,7 +416,7 @@ void UnicodeTestCase::ConversionUTF32() } size_t len; - conv.cMB2WC("\0\0\x01\0\0\0\0B\0\0\0C" /* A macron BC */, 12, &len); + conv.cMB2WC("\0\0\x01\0\0\0\0B\0\0\0C\0" /* A macron BC */, 12, &len); CPPUNIT_ASSERT_EQUAL( 3, len ); }