Skip to content

Commit 538ed68

Browse files
committed
Set locale encoding to utf8 in defaultMain
1 parent 2a1cefa commit 538ed68

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: ghcide/src/Development/IDE/Main.hs

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ import Development.IDE.Types.Options (IdeGhcSession,
5353
defaultIdeOptions)
5454
import Development.IDE.Types.Shake (Key (Key))
5555
import Development.Shake (action)
56+
import GHC.IO.Encoding (setLocaleEncoding)
5657
import HIE.Bios.Cradle (findCradle)
5758
import Ide.Plugin.Config (CheckParents (NeverCheck),
5859
Config,
@@ -116,6 +117,7 @@ stderrLogger = do
116117

117118
defaultMain :: Arguments -> IO ()
118119
defaultMain Arguments{..} = do
120+
setLocaleEncoding utf8
119121
pid <- T.pack . show <$> getProcessID
120122
logger <- argsLogger
121123
hSetBuffering stderr LineBuffering

0 commit comments

Comments
 (0)