codetools: reading fpc settings: convert system encoding to UTF8

git-svn-id: trunk@45236 -
This commit is contained in:
mattias 2014-05-30 11:26:03 +00:00
parent 1978a47b0c
commit de9275761d

View File

@ -1490,6 +1490,7 @@ function ParseFPCVerbose(List: TStrings; const WorkDir: string; out
Filename: String;
begin
//DebugLn(['ProcessOutputLine ',Line]);
Line:=SysToUtf8(Line);
len := length(Line);
if len <= 6 then Exit; // shortest match
@ -1544,7 +1545,7 @@ function ParseFPCVerbose(List: TStrings; const WorkDir: string; out
Inc(CurPos, 17);
NewPath:=SetDirSeparators(copy(Line,CurPos,len));
if not FilenameIsAbsolute(NewPath) then
NewPath:=ExpandFileNameUTF8(AnsiToUtf8(NewPath));
NewPath:=ExpandFileNameUTF8(NewPath);
NewPath:=ChompPathDelim(TrimFilename(NewPath));
{$IFDEF VerboseFPCSrcScan}
DebugLn('Using unit path: "',NewPath,'"');