[Haskell-cafe] surrogate code points in a Char

Manlio Perillo manlio_perillo at libero.it
Wed Nov 18 10:28:53 EST 2009


The Unicode Standard (version 4.0, section 3.9, D31 - pag 76) says:

"""Because surrogate code points are not included in the set of Unicode
scalar values, UTF-32 code units in the range 0000D800 .. 0000DFFF are

However GHC does not reject this code units:

Prelude> print '\x0000D800'

Is this a correct behaviour?
Note that Python, too (2.5.4, UCS4 build, Linux Debian), accept these
code units.

Thanks  Manlio

More information about the Haskell-Cafe mailing list