mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-20 02:48:12 +08:00
fix bug #36905
This commit is contained in:
@ -338,10 +338,16 @@ namespace CSVReader
|
||||
|
||||
size_t nSize = sFileDataW.length();
|
||||
|
||||
//if (nSize < 1 && nInputBufferSize > 0)
|
||||
//{
|
||||
// return AVS_FILEUTILS_ERROR_CONVERT_ICU;
|
||||
//}
|
||||
if (nSize < 1 && nInputBufferSize > 0)
|
||||
{//для синхронности вывода превью и нормального результата
|
||||
const NSUnicodeConverter::EncodindId& oEncodindId = NSUnicodeConverter::Encodings[nCodePage];
|
||||
|
||||
NSUnicodeConverter::CUnicodeConverter oUnicodeConverter;
|
||||
sFileDataW = oUnicodeConverter.toUnicode((const char*)pInputBuffer, nInputBufferSize, oEncodindId.Name);
|
||||
|
||||
nSize = sFileDataW.length();
|
||||
//return AVS_FILEUTILS_ERROR_CONVERT_ICU;
|
||||
}
|
||||
const WCHAR *pTemp = sFileDataW.c_str();
|
||||
|
||||
WCHAR wcDelimiterLeading = L'\0';
|
||||
|
||||
Reference in New Issue
Block a user