瀏覽代碼

fpc: don't treat codepage as different if one element of array has CP_ACP codepage in fpc_AnsiStr_Concat_multi

git-svn-id: trunk@20381 -
paul 13 年之前
父節點
當前提交
950ef49b5c
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      rtl/inc/astrings.inc

+ 4 - 1
rtl/inc/astrings.inc

@@ -250,7 +250,10 @@ begin
   lowstart:=low(sarr);
   for i:=lowstart to high(sarr) do
     begin
-      if (DestCP<>StringCodePage(sarr[i])) then
+      tmpCP:=StringCodePage(sarr[i]);
+      if tmpCP=CP_ACP then
+        tmpCP:=DefaultSystemCodePage;
+      if (DestCP<>tmpCp) then
         begin
           sameCP:=false;
           break;