add zero termination for utf16
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76849 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -393,7 +393,7 @@ void UnicodeTestCase::ConversionUTF16()
|
|||||||
|
|
||||||
// Another one: verify that the length of the resulting string is computed
|
// Another one: verify that the length of the resulting string is computed
|
||||||
// correctly when there is a surrogate in the input.
|
// 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 );
|
CPPUNIT_ASSERT_EQUAL( 1, len );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user