Browse Source

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

git-svn-id: trunk@22463 -

Jonas Maebe 13 years ago
parent
commit
91d92c4732
1 changed files with 1 additions and 0 deletions
  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
       end
     else
     else
       begin
       begin
+        UniqueString(s);
         AnsistringClass(S).fCodePage:=CodePage;
         AnsistringClass(S).fCodePage:=CodePage;
       end;
       end;
   end;
   end;