소스 검색

* fixed r22247 so it does in fact set the destination code page properly
(and use the generic helper so no pointer errors can happen)

git-svn-id: branches/cpstrrtl@25141 -

Jonas Maebe 12 년 전
부모
커밋
d1c36c464a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      rtl/inc/ustrings.inc

+ 1 - 1
rtl/inc/ustrings.inc

@@ -70,7 +70,7 @@ begin
   setlength(dest,len);
   if not assigned(pointer(dest)) then
     exit;
-  PAnsiRec(dest)^.CodePage:=cp;
+  SetCodePage(dest,cp,false);
   p:=pointer(dest);         {SetLength guarantees that dest is unique}
   for i:=1 to len do
     begin