LCL: lconvencoding: fixed UCS-2LE

git-svn-id: trunk@19963 -
This commit is contained in:
mattias 2009-05-14 11:35:00 +00:00
parent e4f8b7fa20
commit c286608aa2

View File

@ -3650,8 +3650,8 @@ begin
Result:=s;
exit;
end;
len:=length(s);
SetLength(Result,len*2);// UTF-8 is at most twice the size
len:=length(s) div 2;
SetLength(Result,len*3);// UTF-8 is at most three times the size
Src:=PWord(Pointer(s));
Dest:=PChar(Result);
for i:=1 to len do begin