mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-04 18:00:24 +02:00
codetools: reading fpc settings: convert system encoding to UTF8
git-svn-id: trunk@45236 -
This commit is contained in:
parent
1978a47b0c
commit
de9275761d
@ -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,'"');
|
||||
|
Loading…
Reference in New Issue
Block a user