[GHC] #6037: Compile-time crash with sources with non-representable unicode characters
GHC
ghc-devs at haskell.org
Tue Aug 18 16:33:06 UTC 2015
#6037: Compile-time crash with sources with non-representable unicode characters
-------------------------------------+-------------------------------------
Reporter: akio | Owner: snoyberg
Type: bug | Status: new
Priority: normal | Milestone: 7.12.1
Component: Compiler | Version: 7.4.1
Resolution: | Keywords:
Operating System: Linux | Architecture:
Type of failure: Compile-time | Unknown/Multiple
crash | Test Case: T6037
Blocked By: | Blocking:
Related Tickets: | 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/6037#comment:12>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list