]> git.saurik.com Git - wxWidgets.git/commit
Correct UTF-32BE BOM detection in wxConvAuto.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Jan 2010 10:13:45 +0000 (10:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Jan 2010 10:13:45 +0000 (10:13 +0000)
commit823e82e260a80c0e7e15636e1f8da1f9da08c654
tree0beedd40f7d329ea54acb2fe17e22f3985388946
parent4ca973967a5199ef46f425b8bc552fb19d433aba
Correct UTF-32BE BOM detection in wxConvAuto.

On the fly detection of the BOM was wrongly implemented for UTF-32BE in
r63064 and returned BOM_None for it if we tried to read exactly 2 bytes.

Fix this by returning BOM_Unknown if the first 2 bytes are NUL.

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