]> git.saurik.com Git - wxWidgets.git/commit - src/common/strconv.cpp
fixed another bug in strconv
authorVáclav Slavík <vslavik@fastmail.fm>
Tue, 12 Jun 2001 22:56:40 +0000 (22:56 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Tue, 12 Jun 2001 22:56:40 +0000 (22:56 +0000)
commit35d764b08c37a42299e79859d16351ffde43af73
treee2f1911de9fd0204f51c9bddf24fd805461ff5fb
parent93a20a27c30efef58d5859bebcad4f7e7da782c1
fixed another bug in strconv
(Off by one error that did not demonstrate itself in poEdit before because
windows native convertion wasn't used due to wxLocale returning cp12xx instead
of windows-12xx. MultiByteToWideChar and WideCharToMultiByte return size of
needed buffer, not number of output characters. Author of the code didn't know
this, hence off by one.)

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