]> git.saurik.com Git - wxWidgets.git/commit
Correct bug with returning 0 for non-empty input from wxConvAuto::ToWChar().
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Jan 2010 10:13:40 +0000 (10:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Jan 2010 10:13:40 +0000 (10:13 +0000)
commit4ca973967a5199ef46f425b8bc552fb19d433aba
treeede073e652803347d9fe9618674c844927f3c760
parent32dd8aa22bf9a26dc3f985e8ddd148e87fd06d9d
Correct bug with returning 0 for non-empty input from wxConvAuto::ToWChar().

Since the changes of r63064 we could return 0 when asked to convert a
non-empty buffer containing only a BOM. This confused the logic in
wxTextInputStream::NextChar() and was generally unexpected so now return
wxCONV_FAILED in this case.

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