Different behaviour in Linux and Mac OS when using some locale environments
While reporting this cpphs issue, we found the following behaviour:
$ echo -e '\u2200' > test
$ LC_ALL=C ghc -e 'putStr =<< readFile "test"'
In Ubuntu, we got the error
<interactive>: test: hGetContents: invalid argument (invalid byte sequence)
but in Mac OS the output was
∀
GHC version: 8.0.1