diff options
| author | Inari Listenmaa <inari.listenmaa@gmail.com> | 2022-05-18 09:46:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-18 09:46:03 +0200 |
| commit | fc5b3e9037cddb0d12f6600e49a279cf3f93f390 (patch) | |
| tree | 0b53f8bd5ccef1cdf2722c55cd7a3342cd6d2bbb /src/compiler/GF | |
| parent | ec70e4a83e75691264a6f227819a90e123905a68 (diff) | |
| parent | 9b9905c0b27c59c1dd49cdfdfb6b14dddc8f77d0 (diff) | |
Merge pull request #141 from anka-213/hardcode-utf8
Always use UTF8 encoding in the gf executable
Diffstat (limited to 'src/compiler/GF')
| -rw-r--r-- | src/compiler/GF/Main.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/GF/Main.hs b/src/compiler/GF/Main.hs index 7d4500c7b..1b90430d6 100644 --- a/src/compiler/GF/Main.hs +++ b/src/compiler/GF/Main.hs @@ -16,6 +16,7 @@ import Data.Version import System.Directory import System.Environment (getArgs) import System.Exit +import GHC.IO.Encoding -- import GF.System.Console (setConsoleEncoding) -- | Run the GF main program, taking arguments from the command line. @@ -23,6 +24,7 @@ import System.Exit -- Run @gf --help@ for usage info. main :: IO () main = do + setLocaleEncoding utf8 -- setConsoleEncoding uncurry mainOpts =<< getOptions |
