浏览代码

rtl: set string codepage for all cases in fpc_AnsiStr_Concat

git-svn-id: trunk@19509 -
paul 13 年之前
父节点
当前提交
212b14a46b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rtl/inc/astrings.inc

+ 1 - 1
rtl/inc/astrings.inc

@@ -258,10 +258,10 @@ begin
     begin
       DestS:='';
       SetLength(DestS,Size+Location);
-      SetCodePage(DestS,DestCP,false);
       Move(Pointer(S1)^,Pointer(DestS)^,Location);
       Move(Pointer(S2)^,(Pointer(DestS)+Location)^,Size+1);
     end;
+  SetCodePage(DestS,DestCP,false);
 end;