From 25d3db36b074340ace218f659fb2af5c64ca547f Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sun, 6 Jul 2014 07:00:09 +0000 Subject: [PATCH] add zero termination for utf16 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76849 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/strings/unicode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/strings/unicode.cpp b/tests/strings/unicode.cpp index 5722529e35..5f2e9dec65 100644 --- a/tests/strings/unicode.cpp +++ b/tests/strings/unicode.cpp @@ -393,7 +393,7 @@ void UnicodeTestCase::ConversionUTF16() // 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 ); }