#10907: GHC fails to read file with byte-order mark when LANG=C -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: Type: bug | Status: patch Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 (Parser) | Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 Type of failure: GHC doesn't work | (amd64) at all | Test Case: Blocked By: | Blocking: Related Tickets: #6016, #6037 | Differential Revisions: Phab:D1274 -------------------------------------+------------------------------------- Comment (by Joachim Breitner <mail@…>): In [changeset:"f7fd864ce6d41cf22d25f18a0cdc5e2e9db71304/ghc" f7fd864c/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="f7fd864ce6d41cf22d25f18a0cdc5e2e9db71304" Skip a possible BOM in utf8 encoding and not the system locale, which might be something else. This fixes bug #10907. A test is added, but less useful than it could be until task #10909 is done. Differential Revision: D1274 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10907#comment:10> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler