mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
let the 'se utf8' command change the terminal codepage to 65001 on Windows
This commit is contained in:
@@ -160,6 +160,7 @@ loop opts gfenv0 = do
|
||||
'c':'p':c -> case reads c of
|
||||
[(cp,"")] -> setConsoleCP cp >> setConsoleOutputCP cp
|
||||
_ -> return ()
|
||||
"utf8" -> setConsoleCP 65001 >> setConsoleOutputCP 65001
|
||||
_ -> return ()
|
||||
#endif
|
||||
loopNewCPU $ gfenv {coding = cod}
|
||||
|
||||
Reference in New Issue
Block a user