[commit: base] encoding: Implement surrogate-byte error handling mode for TextEncoding (e60a79b)
Repository : ssh://darcs.haskell.org//srv/darcs/packages/base On branch : encoding http://hackage.haskell.org/trac/ghc/changeset/e60a79b8e093c4b5748642867eaa24...
---------------------------------------------------------------
commit e60a79b8e093c4b5748642867eaa24fbd7781639 Author: Max Bolingbroke <batterseapower@hotmail.com> Date: Mon Apr 4 11:29:21 2011 +0100 Implement surrogate-byte error handling mode for TextEncoding This implements PEP383-like behaviour so that we are able to roundtrip byte strings through Strings without loss of information. GHC/IO/Encoding.hs | 1 + GHC/IO/Encoding/CodePage.hs | 20 +++++--- GHC/IO/Encoding/Failure.hs | 66 ++++++++++++++++++++++++ GHC/IO/Encoding/Iconv.hs | 52 ++++++++++++++---- GHC/IO/Encoding/Latin1.hs | 14 +++-- GHC/IO/Encoding/Types.hs | 29 +---------- GHC/IO/Encoding/UTF16.hs | 107 ++++++++++++++++++++++++++------------- GHC/IO/Encoding/UTF32.hs | 119 ++++++++++++++++++++++++++++--------------- GHC/IO/Encoding/UTF8.hs | 66 ++++++++++++++---------- base.cabal | 1 + 10 files changed, 320 insertions(+), 155 deletions(-) Diff suppressed because of size. To see it, use: git show e60a79b8e093c4b5748642867eaa24fbd7781639
participants (1)
-
Max Bolingbroke