[GHC] #1506: Case-insensitive char/string comparison

GHC trac at galois.com
Fri Jul 6 18:23:14 EDT 2007


#1506: Case-insensitive char/string comparison
--------------------------------+-------------------------------------------
    Reporter:  Eelis            |        Owner:         
        Type:  feature request  |       Status:  new    
    Priority:  normal           |    Milestone:         
   Component:  Compiler         |      Version:  6.6.1  
    Severity:  normal           |   Resolution:         
    Keywords:                   |   Difficulty:  Unknown
          Os:  Unknown          |     Testcase:         
Architecture:  Unknown          |  
--------------------------------+-------------------------------------------
Comment (by Isaac Dupree):

 Would/should a "case-insensitive compare" distinguish σ and ς?  I think
 we need a standard Unicode-recommendation reference in order to determine
 what should be implemented.
 <http://www.unicode.org/unicode/reports/tr21/> might be a good starting-
 point; the recommendation seems to be "normalize it (in a more
 sophisticated way than just toUpper or toLower), then compare".  If not
 done that way, c.i. equality is non-transitive! ("σ" /= "ς", "σ" ==
 "Σ", "σ" == "ς")

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1506>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
-------------- next part --------------
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs at haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


More information about the Glasgow-haskell-bugs mailing list