TStrings.SaveToStream(TStream): use FEncoding as the default for IgnoreEncoding=False so that loaded files are correctly resaved

git-svn-id: trunk@43948 -
This commit is contained in:
ondrej 2020-01-14 15:33:53 +00:00
parent 461a648f67
commit 77fecff30e

View File

@ -1547,7 +1547,7 @@ Var
begin
if not IgnoreEncoding then
begin
SaveToStream(Stream,Nil);
SaveToStream(Stream,FEncoding);
Exit;
end;
NL:=GetLineBreakCharLBS;