1
0
mirror of https://github.com/ONLYOFFICE/core.git synced 2025-04-18 14:04:06 +03:00
This commit is contained in:
Elena Subbotina 2024-06-26 08:59:12 +03:00
parent cd7b39acf2
commit ebadb754c5

View File

@ -86,6 +86,8 @@ const std::vector<std::string> TxtFile::readAnsiOrCodePage() // == readUtf8witho
const std::vector<std::wstring> TxtFile::readUnicodeFromBytes(char *file_data, long file_size)
{
std::vector<std::wstring> result;
if (file_size < 3) return result;
long start_pos = 2; // skip Header
for (long end_pos = start_pos; end_pos + 1 < file_size; end_pos += 2)