mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 20:59:42 +02:00
* fix UnicodeToUtf8 if Dest is nil, patch by Sergei Gorelkin
git-svn-id: trunk@8078 -
This commit is contained in:
parent
b3ac071c8c
commit
fdecceebd0
@ -1537,6 +1537,7 @@ function UnicodeToUtf8(Dest: PChar; MaxDestBytes: SizeUInt; Source: PWideChar; S
|
||||
else
|
||||
inc(j,3);
|
||||
end;
|
||||
inc(i);
|
||||
end;
|
||||
end;
|
||||
result:=j+1;
|
||||
|
Loading…
Reference in New Issue
Block a user