mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 10:45:08 +02:00
* fixed off by one error in fpwidestring.Unicode2AnsiMove, which caused an
extra #0 character to the appended to the result, when converting to UTF-8 git-svn-id: trunk@36498 -
This commit is contained in:
parent
adfd578659
commit
ab0b07e7c6
@ -254,7 +254,7 @@ begin
|
||||
if (cp=CP_UTF8) then
|
||||
begin
|
||||
destLen:=UnicodeToUtf8(nil,High(SizeUInt),source,len);
|
||||
SetLength(dest,destLen);
|
||||
SetLength(dest,destLen-1);
|
||||
UnicodeToUtf8(@dest[1],destLen,source,len);
|
||||
SetCodePage(dest,cp,False);
|
||||
exit;
|
||||
|
Loading…
Reference in New Issue
Block a user