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
iostream.cpp
stdstrings.cpp
strings.cpp Output the extracted number from wxString::ToXXX() even if it returns false. 2009-08-30 17:25:19 +00:00
tokenizer.cpp
unichar.cpp
unicode.cpp Fix another off-by-1 bug in wxMBConv::ToWChar(). 2009-09-26 13:31:27 +00:00
vararg.cpp
vsnprintf.cpp