mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 10:59:29 +02:00
LCL: lconvencoding: fixed UCS-2LE
git-svn-id: trunk@19963 -
This commit is contained in:
parent
e4f8b7fa20
commit
c286608aa2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user