summaryrefslogtreecommitdiff
path: root/src/compiler/GF.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/GF.hs')
-rw-r--r--src/compiler/GF.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/GF.hs b/src/compiler/GF.hs
index 32a95ca1f..503253589 100644
--- a/src/compiler/GF.hs
+++ b/src/compiler/GF.hs
@@ -24,6 +24,10 @@ main = do
codepage <- getACP
setConsoleCP codepage
setConsoleOutputCP codepage
+ enc <- mkTextEncoding ("CP"++show codepage)
+ hSetEncoding stdin enc
+ hSetEncoding stdout enc
+ hSetEncoding stderr enc
#endif
args <- getArgs
case parseOptions args of