]> git.saurik.com Git - wxWidgets.git/commitdiff
added test UTF-16 string with embedded NUL NUL not terminating the string
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 Apr 2006 13:45:58 +0000 (13:45 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 Apr 2006 13:45:58 +0000 (13:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38519 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/strings/unicode.cpp

index f7ea978f4ead730b2581986dc6c8841d57e370fb..064ae7568628af697bd25c30afb010fec96dcef2 100644 (file)
@@ -255,6 +255,7 @@ void UnicodeTestCase::ConversionUTF16()
 #ifdef wxHAVE_U_ESCAPE
         { "\x04\x1f\x04\x40\x04\x38\x04\x32\x04\x35\x04\x42\0\0",
           L"\u041f\u0440\u0438\u0432\u0435\u0442" },
+        { "\x01\0\0b\x01\0\0a\x01\0\0r\0\0", L"\u0100b\u0100a\u0100r" },
 #endif
         { "\0f\0o\0o\0\0", L"foo" },
     };