[GHC] #12570: Different behaviour in Linux and Mac OS when using some locale environments
GHC
ghc-devs at haskell.org
Sun Sep 4 15:45:01 UTC 2016
#12570: Different behaviour in Linux and Mac OS when using some locale environments
-------------------------------------+-------------------------------------
Reporter: asr | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.1
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
While reporting [https://github.com/malcolmwallace/cpphs/issues/6 this]
cpphs issue, we found the following behaviour:
{{{
$ echo -e '\u2200' > test
$ LC_CTYPE=C ghc -e 'putStr =<< readFile "test"'
}}}
In Ubuntu, we get the error
{{{
<interactive>: test: hGetContents: invalid argument (invalid byte
sequence)
}}}
but in Mac OS the output is
{{{
∀
}}}
GHC version: 8.0.1
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12570>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list