LCL: Fix clipboard encoding when fpc is >= 3.1.1 (currently trunk), see notes on issue

git-svn-id: trunk@59842 -
This commit is contained in:
jesus 2018-12-17 23:36:00 +00:00
parent 07ff5d447e
commit 07d328aeaa

View File

@ -879,7 +879,11 @@ begin
exit;
{$IFDEF WINDOWS}
{$IF FPC_FULLVERSION >= 30101}
Stream := TStringStream.Create(InsertClipHeader(Html), DefaultSystemCodePage);
{$ELSE}
Stream := TStringStream.Create(InsertClipHeader(Html));
{$ENDIF}
{$ELSE}
Stream := TStringStream.Create(Html);
{$ENDIF}