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

GHC ghc-devs at haskell.org
Tue Feb 23 21:29:02 UTC 2016


#11632: Data.Char repeated readLitChar barfs on output from show "ó1"
-------------------------------------+-------------------------------------
        Reporter:  inversemot        |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  libraries/base    |              Version:  7.10.3
      Resolution:                    |             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:                    |
-------------------------------------+-------------------------------------
Description changed by inversemot:

@@ -1,1 +1,1 @@
- "ó1" is "\243\&1" and when shown that's "\"\\243\\&1\""
+ "ó1" is "\243\&1" and when shown that's `"\"\\243\\&1\""`

New description:

 "ó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#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list