[GHC] #10542: Incorrect Unicode input on Windows Console

#10542: Incorrect Unicode input on Windows Console -------------------------------------+------------------------------------- Reporter: ptroev | Owner: Type: bug | Status: new Priority: high | Milestone: Component: Compiler | Version: 7.8.3 Keywords: windows | Operating System: Windows stdin utf-8 cmd chcp 65001 | Type of failure: Incorrect result getLine | at runtime Architecture: | Blocked By: Unknown/Multiple | Related Tickets: 4471 Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- To reproduce: - start a windows console - change the console's font to a ttf unicode font, like "Lucida Console". - type "chcp 65001" to set it to the UTF-8 code page. - start ghci (same error appears when running compiled executable) - > import System.IO (or GHC.IO.Handle) - > enc <- mkTextEncoding "UTF8" - > hSetEncoding stdin enc - > getLine - > Фывфыв (or any international unicode sequence) *** Exception: <stdin>: hGetLine: end of file -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10542 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10542: Incorrect Unicode input on Windows Console -------------------------------------+------------------------------------- Reporter: ptroev | Owner: Type: bug | Status: new Priority: high | Milestone: Component: Compiler | Version: 7.8.3 Resolution: | Keywords: windows stdin | utf-8 cmd chcp 65001 getLine Operating System: Windows | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: Blocked By: | Blocking: Related Tickets: #11394, #4471 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * related: 4471 => #11394, #4471 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10542#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10542: Incorrect Unicode input on Windows Console -------------------------------------+------------------------------------- Reporter: ptroev | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.4.1 Component: Compiler | Version: 7.8.3 Resolution: | Keywords: windows stdin | utf-8 cmd chcp 65001 getLine Operating System: Windows | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: Blocked By: | Blocking: Related Tickets: #11394, #4471 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * priority: high => normal * milestone: => 8.4.1 Comment: I don't think anything is going to happen here until the new I/O manager is ready. So demoting priority. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10542#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10542: Incorrect Unicode input on Windows Console -------------------------------------+------------------------------------- Reporter: ptroev | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 7.8.3 Resolution: | Keywords: windows stdin | utf-8 cmd chcp 65001 getLine Operating System: Windows | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: Blocked By: | Blocking: Related Tickets: #11394, #4471 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): Phyx says the new I/O manager may well be ready for 8.6. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10542#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10542: Incorrect Unicode input on Windows Console -------------------------------------+------------------------------------- Reporter: ptroev | Owner: Phyx- Type: bug | Status: new Priority: normal | Milestone: 8.8.1 Component: Compiler | Version: 7.8.3 Resolution: | Keywords: windows stdin | utf-8 cmd chcp 65001 getLine Operating System: Windows | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: Blocked By: 11394 | Blocking: Related Tickets: #11394, #4471 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * owner: (none) => Phyx- * blockedby: => 11394 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10542#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC