mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-16 03:20:33 +01:00
LazUtils: fix issue with implicit codepage conversion in ParamStrUtf8. Issue #0028815.
git-svn-id: trunk@50569 -
This commit is contained in:
parent
cc31a2d44d
commit
1f91afe602
@ -208,7 +208,11 @@ begin
|
||||
else
|
||||
begin
|
||||
if (Param <= ArgsWCount) then
|
||||
{$IFDEF ACP_RTL}
|
||||
Result := String(UnicodeString(ArgsW[Param]))
|
||||
{$ELSE}
|
||||
Result := Utf8Encode(ArgsW[Param])
|
||||
{$ENDIF ACP_RTL}
|
||||
else
|
||||
Result := '';
|
||||
end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user