mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 01:20: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;
|
Result:=s;
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
len:=length(s);
|
len:=length(s) div 2;
|
||||||
SetLength(Result,len*2);// UTF-8 is at most twice the size
|
SetLength(Result,len*3);// UTF-8 is at most three times the size
|
||||||
Src:=PWord(Pointer(s));
|
Src:=PWord(Pointer(s));
|
||||||
Dest:=PChar(Result);
|
Dest:=PChar(Result);
|
||||||
for i:=1 to len do begin
|
for i:=1 to len do begin
|
||||||
|
Loading…
Reference in New Issue
Block a user