Skip to content

Commit

Permalink
Merge pull request #1587 from inosik/restore-encoding-on-desktop-clr
Browse files Browse the repository at this point in the history
Restore console encoding on .NET Framework
  • Loading branch information
matthid authored Jun 16, 2017
2 parents 574f625 + 53ce291 commit 323ed36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/FAKE/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ let paramIsHelp param = containsParam param ["help"; "?"; "/?"; "-h"; "--help";

let buildScripts = !! "*.fsx" |> Seq.toList

let encodingToRestore = Console.OutputEncoding
try
let encoding = Console.OutputEncoding
try
AutoCloseXmlWriter <- true

Expand Down Expand Up @@ -167,6 +167,6 @@ try

finally
traceEndBuild()
Console.OutputEncoding <- encoding
Console.OutputEncoding <- encodingToRestore
if !TargetHelper.ExitCode.exitCode <> 0 then exit !TargetHelper.ExitCode.exitCode
if Environment.ExitCode <> 0 then exit Environment.ExitCode

0 comments on commit 323ed36

Please sign in to comment.