Selaa lähdekoodia

Added TranslatePlaceholderCP in fpc_Read_Text_AnsiStr procedure.
This is a small optimization.

Sergey Larin 3 vuotta sitten
vanhempi
commit
ee2d313aa0
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      rtl/inc/text.inc

+ 1 - 0
rtl/inc/text.inc

@@ -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}