Installing syb(-0.1.03) package in head version of Haskell
Christian Maeder
Christian.Maeder at dfki.de
Wed Feb 24 07:28:05 EST 2010
Simon Marlow schrieb:
> On 24/02/2010 11:35, Christian Maeder wrote:
>> Simon Marlow schrieb:
>>>>> 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
Right, this is a latin1 locale and the whole compiler was created with
this setting.
I think "ghc-pkg upate - ..." creates the latin1 file.
(I've some latin1 source files that need this setting.)
>>>> LANGUAGE=
>>>> LC_ALL=C
The LANGUAGE variable is properly a left-over typing error and not
relevant. And "LC_ALL" does not seem to take precedence over LANG on my
(SuSE) system.
>>> And you got that by just 'cabal install syb'? What version of
>>> cabal-install? (cabal --version)
>>
>> No, just by the Setup, configure, build, install procedure.
>>
>> "ghc-pkg describe syb" and "ghc-pkg dump" create UTF-8 output.
>
> Aha, I think I see where the bug is. Thanks folks, we'll have it fixed
> in 6.12.2. In the meantime you should use a UTF-8 locale, eg.
> LANG=en_US.utf8.
It is not sufficient for me to reinstall this package with this utf8
setting. (I think ghc-pkg needs to be fixed or maybe recompiled under utf8.)
Cheers Christian
More information about the Glasgow-haskell-users
mailing list