1. 15 Aug, 2015 1 commit
  2. 21 Jul, 2015 1 commit
    • rwbarton's avatar
      When iconv is unavailable, use an ASCII encoding to encode ASCII · dbe6dac9
      rwbarton authored
      D898 and D1059 implemented a fallback behavior to handle the case
      that the end user's iconv installation is broken (typically due to
      running inside a chroot in which the necessary locale files and/or
      gconv modules have not been installed). In this case, if the
      program requests an ASCII locale, GHC's char8 encoding is used
      rather than the program failing.
      
      However, silently mangling data like char8 does when the programmer
      did not ask for it is poor behavior, for reasons described in D1059.
      
      This commit implements an ASCII encoding and uses it in the fallback
      case when iconv is unavailable and the user has requested ASCII.
      
      Test Plan:
      Added tests for the encodings defined in Latin1.
      Also, manually ran a statically-linked executable of that test
      in a chroot and the tests passed (up to the ones that call
      mkTextEncoding "LATIN1", since there is no fallback from iconv
      for that case yet).
      
      Reviewers: austin, hvr, hsyl20, bgamari
      
      Reviewed By: hsyl20, bgamari
      
      Subscribers: thomie
      
      Differential Revision: https://phabricator.haskell.org/D1085
      
      GHC Trac Issues: #7695, #10623
      dbe6dac9
  3. 13 Jul, 2015 1 commit
  4. 09 Jun, 2015 1 commit
  5. 28 May, 2014 1 commit
  6. 08 May, 2013 1 commit
  7. 23 Apr, 2013 1 commit
  8. 10 Apr, 2013 1 commit
  9. 14 Feb, 2013 1 commit
  10. 11 Feb, 2013 3 commits
  11. 08 Feb, 2013 1 commit
  12. 26 Jan, 2013 1 commit
  13. 25 Jan, 2013 1 commit
  14. 26 May, 2012 1 commit
  15. 09 Mar, 2012 1 commit