#pragma hdrstop
#endif
-#if wxUSE_WCHAR_T
-
-#ifndef WX_PRECOMP
- #include "wx/wx.h"
-#endif //WX_PRECOMP
-
#include "wx/convauto.h"
// we use latin1 by default as it seems the least bad choice: the files we need
bool wxConvAuto::InitFromInput(const char *src, size_t len)
{
- m_bomType = DetectBOM(src, len);
+ m_bomType = DetectBOM(src, len == wxNO_LEN ? strlen(src) : len);
if ( m_bomType == BOM_Unknown )
return false;
return m_conv->FromWChar(dst, dstLen, src, srcLen);
}
-
-#endif // wxUSE_WCHAR_T