toUpper Bug?

Steinitz, Dominic J Dominic.J.Steinitz@BritishAirways.com
28 Jul 2001 11:25:31 Z


Section 9 of the Library says that ``Function toUpper converts a letter to the corresponding upper-case letter, leaving any other character unchanged. Any Unicode letter which has an upper case equivalent is changed''

I would therefore expect map toUpper na\239fve to give NA\207VE (hopefully I've got the right values for the characters I intend). Hugs gives:

Prelude> toUpper (chr 239)
'\239'

So I guess it doesn't work in Hugs. But it does work in ghc:

Char> toUpper (chr 239)
'\207'
Char>                                                                          

Maybe if this one is going to be fixed, toUpper could be put in the correct library as well?

Dominic.

-------------------------------------------------------------------------------------------------
21st century air travel     http://www.britishairways.com