diff options
| author | Austin Seipp <austin@well-typed.com> | 2015-05-19 04:56:40 -0500 |
|---|---|---|
| committer | Austin Seipp <austin@well-typed.com> | 2015-05-28 16:19:35 -0500 |
| commit | e28462de700240288519a016d0fe44d4360d9ffd (patch) | |
| tree | c947a4b0ac30e9b16767dad1bb9f14f1effd439e /compiler/nativeGen/SPARC/CodeGen.hs | |
| parent | 640fe14255706ab9c6a1fa101d9b05dfabdc6556 (diff) | |
| download | haskell-e28462de700240288519a016d0fe44d4360d9ffd.tar.gz | |
base: fix #10298 & #7695
Summary:
This applies a patch from Reid Barton and Sylvain Henry, which fix a
disasterous infinite loop when iconv fails to load locale files, as
specified in #10298.
The fix is a bit of a hack but should be fine - for the actual reasoning
behind it, see `Note [Disaster and iconv]` for more info.
In addition to this fix, we also patch up the IO Encoding utilities to
recognize several variations of the 'ASCII' encoding (including its
aliases) directly so that GHC can do conversions without iconv. This
allows a static binary to sit in an initramfs.
Authored-by: Reid Barton <rwbarton@gmail.com>
Authored-by: Sylvain Henry <hsyl20@gmail.com>
Signed-off-by: Austin Seipp <austin@well-typed.com>
Test Plan: Eyeballed it.
Reviewers: rwbarton, hvr
Subscribers: bgamari, thomie
Differential Revision: https://phabricator.haskell.org/D898
GHC Trac Issues: #10298, #7695
Diffstat (limited to 'compiler/nativeGen/SPARC/CodeGen.hs')
0 files changed, 0 insertions, 0 deletions
