On Mon, May 16, 2011 at 9:22 AM, Max Bolingbroke <batterseapo...@hotmail.com
> wrote:

> This is a key point - I wonder whether you have in mind a particular
> bit of code using the "text" package that will fail if we use lone
> surrogates as escapes?
>

Any attempt to pack a String into a Text will replace UTF-16 surrogates with
U+FFFD:

https://github.com/bos/text/blob/master/Data/Text/Internal.hs#L87

https://github.com/bos/text/blob/master/Data/Text.hs#L363
_______________________________________________
Cvs-ghc mailing list
Cvs-ghc@haskell.org
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to