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

Johan Tibell johan.tibell at gmail.com
Tue Feb 26 03:21:00 EST 2008


On Tue, Feb 26, 2008 at 12:09 AM, Don Stewart <dons at galois.com> wrote:
> igloo:
>
> > On Mon, Feb 25, 2008 at 01:26:52PM -0800, Donald Bruce Stewart wrote:
>  > > duncan.coutts:
>  > > >
>  > > > It's no use pretending that readFile returns Unicode, it just doesn't
>  > > > (except on Hugs which does it properly). GHC is not going to catch up on
>  > > > this any time soon.
>  > >
>  > > Why don't we use the existing, portable UTF8 IO package?
>  >
>  > I'd much rather we fix the IO library that's already in the corelibs
>  > than add a second one to work around it.
>  >
>  > I wonder if that's suitable for a SoC project?
>
>  Add System.IO.UTF8.{readFile,writeFile} to the base library?

I'd rather see that we add a more general solution for reading and
writing Unicode than add two functions specialized for UTF-8 that we
can't remove later when we do have a less ad-hoc solution.

-- Johan



More information about the cabal-devel mailing list