Explorar el Código

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

Sergey Larin hace 3 años
padre
commit
ee2d313aa0
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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}