mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-25 23:51:09 +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);
|
SetLength(s,Slen);
|
||||||
{$ifdef FPC_HAS_CPSTRING}
|
{$ifdef FPC_HAS_CPSTRING}
|
||||||
SetCodePage(s,TextRec(f).CodePage,false);
|
SetCodePage(s,TextRec(f).CodePage,false);
|
||||||
|
cp:=TranslatePlaceholderCP(cp);
|
||||||
if cp<>TextRec(f).CodePage then
|
if cp<>TextRec(f).CodePage then
|
||||||
s:=fpc_AnsiStr_To_AnsiStr(s,cp);
|
s:=fpc_AnsiStr_To_AnsiStr(s,cp);
|
||||||
{$endif FPC_HAS_CPSTRING}
|
{$endif FPC_HAS_CPSTRING}
|
||||||
|
Loading…
Reference in New Issue
Block a user