[GHC] #4471: Incorrect Unicode output on Windows Console
GHC
cvs-ghc at haskell.org
Wed Nov 10 06:11:28 EST 2010
#4471: Incorrect Unicode output on Windows Console
-------------------------+--------------------------------------------------
Reporter: sankeld | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.12.3
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Windows | Blocking:
Architecture: x86 | Failure: Incorrect result at runtime
-------------------------+--------------------------------------------------
Comment(by simonmar):
Replying to [comment:5 sankeld]:
> `_setmode` then is a solution only when the console is set to the
Unicode code page. This seems like an adequate solution for now, no?
>
> Here is the link for the _setmode documentation:
>
> http://msdn.microsoft.com/en-us/library/tw4k6df8.aspx
I don't like to apply a fix without fully understanding what the problem
is and why the fix works, and this is all very mysterious to me right now.
Why doesn't it work to send UTF-8 to stdout if the current code page is
set to UTF-8?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4471#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list