#10762: On Windows, out-of-codepage characters can cause GHC build to fail ---------------------------------+----------------------------------------- Reporter: snoyberg | Owner: snoyberg Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #6037 | Differential Revisions: ---------------------------------+----------------------------------------- Comment (by Ben Gamari <bgamari.foss@…>): In [changeset:"22aca5368864070bbed3b44dca3ce57e243bf415/ghc" 22aca536/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="22aca5368864070bbed3b44dca3ce57e243bf415" Transliterate unknown characters at output This avoids the compiler from crashing when, for example, a warning contains a non-Latin identifier and the LANG variable is set to C. Fixes #6037. Test Plan: Create a Haskell source file containing an identifier with non-Latin characters and no type signature. Compile with `LANG=C ghc -Wall foo.hs`, and it should fail. With this patch, it will succeed. Reviewers: austin, rwbarton, bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1153 GHC Trac Issues: #6037, #10762 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10762#comment:11> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler