Issue #515: give ReadTextfileChunk a BufferPadding of 1 instead of 10M. With 10 attempts, we get a maximum of 10 Bytes which is more than enough to get a complete character in any multibyte encoding. See https://github.com/HeidiSQL/HeidiSQL/issues/515#issuecomment-527858110

This commit is contained in:
Ansgar Becker
2019-09-17 19:59:46 +02:00
parent d114ef1adc
commit 0da8cb79f8

View File

@ -1299,7 +1299,7 @@ end;
function ReadTextfileChunk(Stream: TFileStream; Encoding: TEncoding; ChunkSize: Int64 = 0): String;
const
BufferPadding = SIZE_MB;
BufferPadding = 1;
var
DataLeft, StartPosition: Int64;
LBuffer: TBytes;