patch applied (packages/base): On Windows, use the console code page for text file encoding/decoding.

Simon Marlow marlowsd at gmail.com
Mon Sep 14 11:05:19 EDT 2009


Sat Sep 12 19:21:26 PDT 2009  Judah Jacobson <judah.jacobson at gmail.com>
  * On Windows, use the console code page for text file encoding/decoding.
  Ignore-this: 86c2f2db8ef92b751599795d3195187b
  
  We keep all of the code page tables in the module
  GHC.IO.Encoding.CodePage.Table.  That file was generated automatically
  by running codepages/MakeTable.hs; more details are in the comments at the
  start of that script.
  
  Storing the lookup tables adds about 40KB to each statically linked executable;
  this only increases the size of a "hello world" program by about 7%.
  
  Currently we do not support double-byte encodings (Chinese/Japanese/Korean), since
  including those codepages would increase the table size to 400KB.  It will be
  straightforward to implement them once the work on library DLLs is finished.

    M ./GHC/IO/Encoding.hs -1 +9
    A ./GHC/IO/Encoding/CodePage/
    A ./GHC/IO/Encoding/CodePage.hs
    A ./GHC/IO/Encoding/CodePage/Table.hs
    M ./System/IO.hs -3 +3
    M ./base.cabal +3
    A ./codepages/
    A ./codepages/MakeTable.hs

View patch online:
http://darcs.haskell.org/packages/base/_darcs/patches/20090913022126-9f663-2bb505cf915b18313bf41a25853d9d13d7444feb.gz


More information about the Cvs-libraries mailing list