mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-03 21:58:36 +02:00
rtl: initialize CodePage field of ReadStr/WriteStr Text variables
git-svn-id: trunk@19567 -
This commit is contained in:
parent
435b72bcb1
commit
60de075ebe
@ -1768,6 +1768,9 @@ begin
|
|||||||
t.mode:=fmOutput;
|
t.mode:=fmOutput;
|
||||||
t.OpenFunc:=nil;
|
t.OpenFunc:=nil;
|
||||||
t.CloseFunc:=nil;
|
t.CloseFunc:=nil;
|
||||||
|
{$ifdef FPC_HAS_CPSTRING}
|
||||||
|
t.CodePage:=DefaultSystemCodePage;
|
||||||
|
{$endif}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
@ -1865,6 +1868,9 @@ begin
|
|||||||
t.mode:=fmInput;
|
t.mode:=fmInput;
|
||||||
t.OpenFunc:=nil;
|
t.OpenFunc:=nil;
|
||||||
t.CloseFunc:=nil;
|
t.CloseFunc:=nil;
|
||||||
|
{$ifdef FPC_HAS_CPSTRING}
|
||||||
|
t.CodePage:=DefaultSystemCodePage;
|
||||||
|
{$endif}
|
||||||
PSizeInt(@t.userdata[BytesReadIndex])^:=0;
|
PSizeInt(@t.userdata[BytesReadIndex])^:=0;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user