瀏覽代碼

rtl: fix fpc_AnsiStr_To_AnsiStr source codepage check (less conversions should be done now from AnsiString type to the same codepage strings)

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

+ 2 - 0
rtl/inc/astrings.inc

@@ -411,6 +411,8 @@ begin
       if (cp=CP_ACP) then
         cp:=DefaultSystemCodePage;
       orgcp:=StringCodePage(S);
+      if (orgcp=CP_ACP) then
+        orgcp:=DefaultSystemCodePage;
       if (orgcp=cp) or (orgcp=CP_NONE) then
         begin
           SetLength(result,Size);