patch applied (cabal): First pass at parsing .cabal files as UTF8

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Tue Feb 26 04:14:09 EST 2008


On Mon, 2008-02-25 at 13:26 -0800, Don Stewart wrote:
> duncan.coutts:

> Why don't we use the existing, portable UTF8 IO package?
> 
>     http://hackage.haskell.org/packages/archive/utf8-string/0.2/doc/html/System-IO-UTF8.html

But it's not. It does exactly the non-portable things that Ross was just
complaining about.

Also it interprets 4 and 5 byte UTF-8 forms and just uses replacement
chars without any option for strict conversions.

Also, the conversion code is slow. It does more list operations than are
necessary and more safe checked chr operations.

Duncan



More information about the cabal-devel mailing list