瀏覽代碼

* make ansistring unique when changing the code page without conversion
(like on other platforms)

git-svn-id: trunk@22463 -

Jonas Maebe 13 年之前
父節點
當前提交
91d92c4732
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      rtl/java/jastrings.inc

+ 1 - 0
rtl/java/jastrings.inc

@@ -840,6 +840,7 @@ procedure SetCodePage(var s : RawByteString; CodePage : TSystemCodePage; Convert
       end
     else
       begin
+        UniqueString(s);
         AnsistringClass(S).fCodePage:=CodePage;
       end;
   end;