codetools: fixed UTF8 for RunTool

git-svn-id: trunk@26909 -
This commit is contained in:
mattias 2010-07-30 05:26:14 +00:00
parent 08521ea248
commit 4075c56ad3

View File

@ -1177,7 +1177,7 @@ begin
debugln(['RunTool ',Filename,' ',Params]);
TheProcess := TProcess.Create(nil);
try
CmdLine:=UTF8ToSys(Filename);
CmdLine:=Filename;
if (System.Pos(' ',CmdLine)>0) and (CmdLine[1]<>'"') then
CmdLine:='"'+CmdLine+'"';
if Params<>'' then