#pragma hdrstop
#endif
-#if wxUSE_WCHAR_T
-
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif //WX_PRECOMP
if ( src[0] == '\x00' && src[1] == '\x00' )
{
- // this could only be UTF-32BE
- if ( srcLen == 3 && src[2] == '\xFE' )
- return BOM_Unknown;
- }
+ // this could only be UTF-32BE, check that the data we have so
+ // far allows for it
+ if ( srcLen == 3 && src[2] != '\xFE' )
+ return BOM_None;
+ return BOM_Unknown;
+ }
break;
default:
return m_conv->FromWChar(dst, dstLen, src, srcLen);
}
-
-#endif // wxUSE_WCHAR_T