Skip to content

Commit

Permalink
Merge pull request #1414 from jchannon/fixetyfixface
Browse files Browse the repository at this point in the history
Moved process stdout encoding out of is silent check
  • Loading branch information
forki authored Nov 3, 2016
2 parents da711ab + 23e5b67 commit c31a9ae
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app/FakeLib/ProcessHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,13 @@ let ExecProcessWithLambdas configProcessStartInfoF (timeOut : TimeSpan) silent e
if Directory.Exists proc.StartInfo.WorkingDirectory |> not then
failwithf "Start of process %s failed. WorkingDir %s does not exist." proc.StartInfo.FileName
proc.StartInfo.WorkingDirectory
if isMono then
proc.StartInfo.StandardOutputEncoding <- Encoding.UTF8
proc.StartInfo.StandardErrorEncoding <- Encoding.UTF8
if silent then
proc.StartInfo.RedirectStandardOutput <- true
proc.StartInfo.RedirectStandardError <- true
if isMono then
proc.StartInfo.StandardOutputEncoding <- Encoding.UTF8
proc.StartInfo.StandardErrorEncoding <- Encoding.UTF8

proc.ErrorDataReceived.Add(fun d ->
if d.Data <> null then errorF d.Data)
proc.OutputDataReceived.Add(fun d ->
Expand Down

0 comments on commit c31a9ae

Please sign in to comment.