mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
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:
@ -1299,7 +1299,7 @@ end;
|
|||||||
|
|
||||||
function ReadTextfileChunk(Stream: TFileStream; Encoding: TEncoding; ChunkSize: Int64 = 0): String;
|
function ReadTextfileChunk(Stream: TFileStream; Encoding: TEncoding; ChunkSize: Int64 = 0): String;
|
||||||
const
|
const
|
||||||
BufferPadding = SIZE_MB;
|
BufferPadding = 1;
|
||||||
var
|
var
|
||||||
DataLeft, StartPosition: Int64;
|
DataLeft, StartPosition: Int64;
|
||||||
LBuffer: TBytes;
|
LBuffer: TBytes;
|
||||||
|
Reference in New Issue
Block a user