mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 19:42:50 -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
|
'c':'p':c -> case reads c of
|
||||||
[(cp,"")] -> setConsoleCP cp >> setConsoleOutputCP cp
|
[(cp,"")] -> setConsoleCP cp >> setConsoleOutputCP cp
|
||||||
_ -> return ()
|
_ -> return ()
|
||||||
|
"utf8" -> setConsoleCP 65001 >> setConsoleOutputCP 65001
|
||||||
_ -> return ()
|
_ -> return ()
|
||||||
#endif
|
#endif
|
||||||
loopNewCPU $ gfenv {coding = cod}
|
loopNewCPU $ gfenv {coding = cod}
|
||||||
|
|||||||
Reference in New Issue
Block a user