Browse Source

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 years ago
parent
commit
ef0c4a1e5c
1 changed files with 2 additions and 0 deletions
  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);