[GHC] #2304: unicode digits misparsed in escape sequences

GHC trac at galois.com
Fri Jun 13 18:20:29 EDT 2008


#2304: unicode digits misparsed in escape sequences
-------------------------------+--------------------------------------------
 Reporter:  guest              |          Owner:         
     Type:  bug                |         Status:  closed 
 Priority:  normal             |      Milestone:  6.10.1 
Component:  Compiler (Parser)  |        Version:  6.8.2  
 Severity:  normal             |     Resolution:  fixed  
 Keywords:                     |     Difficulty:  Unknown
 Testcase:                     |   Architecture:  Unknown
       Os:  Linux              |  
-------------------------------+--------------------------------------------
Changes (by igloo):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 I've more or less fixed this. According to the report we're meant to
 accept any decimal digits rather than just the ASCII ones, but there's
 already a comment eleswhere:
 {{{
 $decdigit  = $ascdigit -- for now, should really be $digit (ToDo)
 }}}
 so I'm not going to worry about that for now. It's also a bit odd that for
 hexadecimal numbers we accept any decimal digits, but only the ASCII
 `A-Fa-f`.

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


More information about the Glasgow-haskell-bugs mailing list