
#8118: <stdout>: commitAndReleaseBuffer: invalid argument (invalid character) -------------------------------------+------------------------------------- Reporter: guest | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Compiler | Version: 7.8.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: #5666 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by RyanGlScott): If it's `cmd.exe`, then I think `setLocaleEncoding utf8` isn't quite enough to both (1) make the error go away, and (2) actually render all Unicode characters correctly. (It might fix (1), but (2) is another question.) For example, what is the output of: {{{#!hs main = do setLocaleEncoding utf8 putStrLn "→" }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8118#comment:14 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler