#1649: running GHCi screws up console display by changing code page
----------------------+-----------------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 6.6.1
Severity: normal | Keywords: codepage code page
Difficulty: Unknown | Os: Windows
Testcase: | Architecture: x86
----------------------+-----------------------------------------------------
[Note: tested on two computers, both running the US English version of
Windows XP Professional.]
Running GHCi screws up the display of non-ASCII characters like the line-
drawing characters used in most interactive text-mode programs.
Apparently, GHCi changes the code page of the console session to 28591 for
some reason and then fails to change it back when it exits.
To reproduce:
1) Open up a new Command Prompt window.
2) Run the CHCP command to see what the current code page is set to
(probably 437) and run a text mode program such as EDIT that makes use of
non-ASCII characters to confirm that it displays correctly.
3) Navigate to the GHC bin directory, run ghci.exe, then immediately exit
via :q .
4) Run CHCP again to confirm that the code page has changed. Likewise,
run EDIT (or whatever) again to confirm that it no longer displays
correctly.
Workaround: issuing a "CHCP 437" command after running GHCi fixes the
problem.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1649>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs