wxWidgets/tests/mbconv
Vadim Zeitlin 2730723380 Correct two bugs in wxMBConv::FromWChar() with non NUL-terminated strings.
The variable "lenChunk" was incorrectly used as the length of the wide string
chunk which could result in wrong output.

Worse, the output buffer could be overflown for the final chunk because it
didn't have to have enough space for the trailing NUL(s) in it.

Fix both bugs and added unit tests for them.

Based on patch by Kuang-che Wu.

Closes #11486.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-06 02:30:05 +00:00
..
convautotest.cpp Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
mbconvtest.cpp Correct two bugs in wxMBConv::FromWChar() with non NUL-terminated strings. 2009-12-06 02:30:05 +00:00