File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ fixCodePage = id
127127
128128-- | Commandline dispatcher.
129129main :: IO ()
130- main = withInterpreterArgs stackProgName $ \ args isInterpreter -> fixCodePage $ do
130+ main = withInterpreterArgs stackProgName $ \ args isInterpreter -> do
131131 -- Line buffer the output by default, particularly for non-terminal runs.
132132 -- See https://github.com/commercialhaskell/stack/pull/360
133133 hSetBuffering stdout LineBuffering
@@ -325,7 +325,7 @@ main = withInterpreterArgs stackProgName $ \args isInterpreter -> fixCodePage $
325325 throwIO exitCode
326326 Right (global,run) -> do
327327 when (globalLogLevel global == LevelDebug ) $ putStrLn versionString'
328- run global `catch` \ e -> do
328+ fixCodePage $ run global `catch` \ e -> do
329329 -- This special handler stops "stack: " from being printed before the
330330 -- exception
331331 case fromException e of
You can’t perform that action at this time.
0 commit comments