behaviour change in getDirectoryContents in GHC 7.2?
batterseapower at hotmail.com
Wed Nov 2 22:40:32 CET 2011
On 2 November 2011 20:16, Ian Lynagh <igloo at earth.li> wrote:
> Are you saying there's a bug that should be fixed?
You can choose between two options:
1. Failing to roundtrip some strings (in our case, those containing
the 0xEFNN byte sequences)
2. Having GHC's decoding functions return strings including
codepoints that should not be allowed (i.e. lone surrogates)
At the time I implemented this there was significant support for 2, so
that is what we have. At the time I was convinced that 2 was the right
thing to do, but now I'm more agnostic. But anyway the current
behaviour is not really a bug -- it is by design :-)
More information about the Glasgow-haskell-users