[GHC] #8167: build fails in non-unicode locale [happy: compiler/stage1/build/Parser.y: hGetContents: invalid argument (invalid byte sequence)]
GHC
ghc-devs at haskell.org
Sat Aug 24 01:46:07 UTC 2013
#8167: build fails in non-unicode locale [happy: compiler/stage1/build/Parser.y:
hGetContents: invalid argument (invalid byte sequence)]
----------------------------------+----------------------------------------
Reporter: rwbarton | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.7
(Parser) | Operating System: Unknown/Multiple
Keywords: | Type of failure: Building GHC failed
Architecture: | Test Case:
Unknown/Multiple | Blocking:
Difficulty: Unknown |
Blocked By: |
Related Tickets: |
----------------------------------+----------------------------------------
To reproduce, check out a fresh copy of GHC and `export LC_ALL=C` before
going through the steps to build it.
Commit 96adf0e99 introduced non-ASCII (UTF-8) text into
`compiler/parser/Parser.y.pp` in a string literal. `happy` tries to read
this file in the encoding corresponding to the system locale. Probably
`happy` ought to declare that all its input files are UTF-8, like GHC
does, but it currently doesn't, so it seems best to just ensure that
`Parser.y.pp` is pure ASCII.
Patch attached.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8167>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list