IDE: fpc msg parser: fixed converting 2.6.4 encoding to UTF-8

git-svn-id: trunk@50629 -
This commit is contained in:
mattias 2015-12-05 00:16:23 +00:00
parent 55619096fd
commit 0db26fe87a

View File

@ -2837,8 +2837,13 @@ begin
if Line='' then exit;
if FPC_FullVersion>=20701 then
Line:=LazUTF8.ConsoleToUTF8(Line)
else
else begin
{$IFDEF MSWINDOWS}
Line:=LazUTF8.WinCPToUTF8(Line);
{$ELSE}
Line:=LazUTF8.SysToUTF8(Line);
{$ENDIF}
end;
p:=PChar(Line);
fOutputIndex:=OutputIndex;
fMsgID:=0;