[GHC] #11632: Data.Char repeated readLitChar barfs on output from show "ó1"

GHC ghc-devs at haskell.org
Tue Feb 23 21:28:06 UTC 2016


#11632: Data.Char repeated readLitChar barfs on output from show "ó1"
-------------------------------------+-------------------------------------
           Reporter:  inversemot     |             Owner:
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:                 |           Version:  7.10.3
  libraries/base                     |
           Keywords:                 |  Operating System:  Linux
       Architecture:                 |   Type of failure:  Incorrect result
  Unknown/Multiple                   |  at runtime
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 "ó1" is "\243\&1" and when shown that's "\"\\243\\&1\""

 {{{#!hs
 readLitChar "\"\\243\\&1\"" = [("\"", "\243\\&1")]
 readLitChar "\243\\&1" = [("\243", "\\&1")] --should have consumed "\\&"
 readLitChar "\\&1" = []
 }}}

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


More information about the ghc-tickets mailing list