mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 17:59:27 +02:00
Added TranslatePlaceholderCP in fpc_Read_Text_AnsiStr procedure.
This is a small optimization.
This commit is contained in:
parent
a8b0e0ed65
commit
ee2d313aa0
@ -1819,6 +1819,7 @@ Begin
|
||||
SetLength(s,Slen);
|
||||
{$ifdef FPC_HAS_CPSTRING}
|
||||
SetCodePage(s,TextRec(f).CodePage,false);
|
||||
cp:=TranslatePlaceholderCP(cp);
|
||||
if cp<>TextRec(f).CodePage then
|
||||
s:=fpc_AnsiStr_To_AnsiStr(s,cp);
|
||||
{$endif FPC_HAS_CPSTRING}
|
||||
|
Loading…
Reference in New Issue
Block a user