]> git.saurik.com Git - wxWidgets.git/commit
fix the output length returned from cWC2MB/MB2WC() to be consistent with From/ToWChar...
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 15 Jul 2008 23:57:25 +0000 (23:57 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 15 Jul 2008 23:57:25 +0000 (23:57 +0000)
commitf6a02087565a52d5c2a2ef7652d56a6a06bfa304
tree292caaac016196172ee41526be2cb63c67c2f948
parent9ca15f291cf821dc18de39e5f7057a2b221c6548
fix the output length returned from cWC2MB/MB2WC() to be consistent with From/ToWChar(); fix off by NUL-length bug in wxMBConv implementation of From/ToWChar() in terms of legacy WC2MB/MB2WC() (which are still used in wxMBConv_wxwin) that this uncovered; added a simple test for the bugs the old code resulted in which could be easily seen with wxConvISO8859_1 (see #9739)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/strconv.h
interface/wx/strconv.h
src/common/strconv.cpp