LazUtils: fix issue with implicit codepage conversion in ParamStrUtf8. Issue #0028815.

git-svn-id: trunk@50569 -
This commit is contained in:
bart 2015-12-02 13:33:56 +00:00
parent cc31a2d44d
commit 1f91afe602

View File

@ -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;