1
0
forked from GitHub/gf-core

the -dump-X options should convert to UTF8

This commit is contained in:
krasimir
2009-08-27 17:27:20 +00:00
parent db59a4ac72
commit c93d0a3a26

View File

@@ -101,7 +101,7 @@ compileSourceGrammar opts gr@(MGrammar ms) = do
-- to output an intermediate stage
intermOut :: Options -> Dump -> Doc -> IOE ()
intermOut opts d doc
| dump opts d = ioeIO (hPutStrLn stderr (render (text "\n\n--#" <+> text (show d) $$ doc)))
| dump opts d = ioeIO (hPutStrLn stderr (encodeUTF8 (render (text "\n\n--#" <+> text (show d) $$ doc))))
| otherwise = return ()
-- | the environment