[GHC] #8118: <stdout>: commitAndReleaseBuffer: invalid argument (invalid character)

GHC ghc-devs at haskell.org
Mon Jan 25 17:08:48 UTC 2016


#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 HairyDude):

 Adding the following seems to fix the error:

 {{{#!hs
 import GHC.IO.Encoding

 main = do
     ...
     setLocaleEncoding utf8
     ....
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8118#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list