codetools: runtool: utf8tosys

git-svn-id: trunk@26908 -
This commit is contained in:
mattias 2010-07-29 22:17:42 +00:00
parent 6bcec286b1
commit 08521ea248

View File

@ -1183,7 +1183,7 @@ begin
if Params<>'' then
CmdLine:=CmdLine+' '+Params;
//DebugLn(['RunTool ',Params]);
TheProcess.CommandLine := CmdLine;
TheProcess.CommandLine := UTF8ToSys(CmdLine);
TheProcess.Options:= [poUsePipes, poStdErrToOutPut];
TheProcess.ShowWindow := swoHide;
TheProcess.CurrentDirectory:=WorkingDirectory;
@ -1467,7 +1467,7 @@ begin
// create empty file
try
fs:=TFileStream.Create(TestFilename,fmCreate);
fs:=TFileStream.Create(UTF8ToSys(TestFilename),fmCreate);
fs.Free;
except
debugln(['RunFPCVerbose unable to create test file '+TestFilename]);