Correct checks for conversion success in wxUniChar.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 30 Sep 2009 00:15:11 +0000 (00:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 30 Sep 2009 00:15:11 +0000 (00:15 +0000)
commit7a8e90dd7a6bff0e88308ae3d7ad9a8d10f20a67
treeee7ab1ea169869c872c2e08af91a4b3ff575a962
parent023f27388f87672679e19a9fd6d1a53155b14b0d
Correct checks for conversion success in wxUniChar.

Correct the checks in wxUniChar::From/ToHi8bit() to check for conversion
success correctly as it always failed otherwise: wxMBConv::To/FromWChar()
conversion functions should return 2, not 1, when conversion of 2 characters
succeeded, even if one of them is a NUL.

Closes #11243.

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