Switch to fallback earlier if the input is not valid UTF-8 prefix

This commit is contained in:
Pavel Tyunin
2020-09-29 15:35:53 +03:00
parent bc838b4773
commit b3eff48e28
4 changed files with 25 additions and 4 deletions

View File

@@ -387,6 +387,8 @@ private:
int m_options;
};
bool wxIsUTF8Prefix(const char *src, size_t len);
// ----------------------------------------------------------------------------
// wxMBConvUTF16Base: for both LE and BE variants
// ----------------------------------------------------------------------------