Installing syb(-0.1.03) package in head version of Haskell

Christian Maeder Christian.Maeder at dfki.de
Wed Feb 24 05:07:26 EST 2010


Simon Marlow schrieb:
> On 23/02/10 18:46, Christian Maeder wrote:
>> Ross Paterson schrieb:
>>> On Tue, Feb 23, 2010 at 03:05:56PM -0000, Bayley, Alistair wrote:
>>>> Just a wild guess, but the package description has this non-ascii text:
>>>>
>>>> author:                 Ralf Lämmel, Simon Peyton Jones
>>>>
>>>> It could well be Latin-1 encoded, rather than UTF8.
>>>
>>> No, syb-0.1.0.3/syb.cabal is UTF-8-encoded (conforming to the Cabal
>>> docs).
>>
>> My guess would be that the "locale" is not properly set. The environment
>> variable LANG should be set to something shown by "locale -a" (i.e
>> en_GB). Other LC_* variables should not be set.
>> The variables should not be "C" or "POSIX".
>>
>> (I was able to install syb-0.1.0.3 without a problem)
> 
> Both Cabal and ghc-pkg explicitly use UTF-8 for handling .cabal and
> package configuration files, so if you end up with a Latin-1 file in
> your package database then something has gone wrong.  If anyone can
> reproduce this problem then please submit a ticket.

Indeed, I have a latin-1 file

/local/maeder/lib/ghc-6.13.20100211/package.conf.d/syb-0.1.0.3-2d8f18fd3343792a85816b191d973cea.conf:
ISO-8859 English text

and my (accidental) setting is:

LANG=de_DE at euro
LANGUAGE=
LC_ALL=C

Cheers Christian

My ghc-6.12.1 uses syb-0.1.0.2 (which is ASCII)



More information about the Glasgow-haskell-users mailing list