wxWidgets/tests/strings
Vadim Zeitlin bbb0ff36db Fix another off-by-1 bug in wxMBConv::ToWChar().
When converting a fixed number of characters we need to take any NULs inside
the buffer being converted into account for our return value -- but this
wasn't done and converting 2 characters 'x' and '\0' returned only 1, even if
the length 2 was explicitly specified.

Fix this bug and add a unit test checking for it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62141 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 13:31:27 +00:00
..
crt.cpp Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
iostream.cpp don't compile the test in the build configurations where it's not supported (trying to fix buildbot OS X build) 2008-05-30 21:59:24 +00:00
stdstrings.cpp Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
strings.cpp Output the extracted number from wxString::ToXXX() even if it returns false. 2009-08-30 17:25:19 +00:00
tokenizer.cpp Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
unichar.cpp Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
unicode.cpp Fix another off-by-1 bug in wxMBConv::ToWChar(). 2009-09-26 13:31:27 +00:00
vararg.cpp Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
vsnprintf.cpp Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00