Skip to content

Commit

Permalink
Set locale encoding to utf8 in defaultMain
Browse files Browse the repository at this point in the history
  • Loading branch information
berberman committed Mar 23, 2021
1 parent 2a1cefa commit 538ed68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ghcide/src/Development/IDE/Main.hs
Expand Up @@ -53,6 +53,7 @@ import Development.IDE.Types.Options (IdeGhcSession,
defaultIdeOptions)
import Development.IDE.Types.Shake (Key (Key))
import Development.Shake (action)
import GHC.IO.Encoding (setLocaleEncoding)
import HIE.Bios.Cradle (findCradle)
import Ide.Plugin.Config (CheckParents (NeverCheck),
Config,
Expand Down Expand Up @@ -116,6 +117,7 @@ stderrLogger = do

defaultMain :: Arguments -> IO ()
defaultMain Arguments{..} = do
setLocaleEncoding utf8
pid <- T.pack . show <$> getProcessID
logger <- argsLogger
hSetBuffering stderr LineBuffering
Expand Down

0 comments on commit 538ed68

Please sign in to comment.