[Haskell-cafe] setting ISO-8859-1 encoding on Raspbian for GHC

Henning Thielemann lemming at henning-thielemann.de
Wed Jul 15 15:56:32 UTC 2020


On Wed, 15 Jul 2020, Viktor Dukhovni wrote:

> On Wed, Jul 15, 2020 at 05:12:42PM +0200, Henning Thielemann wrote:
>
>> On Raspbian Buster I get:
>> 
>> pi at raspberrypi:~ $ LANG=de_DE ghc -e 'print System.IO.localeEncoding'
>> UTF-8
>> pi at raspberrypi:~ $ LANG=de_DE.iso88591 ghc -e 'print System.IO.localeEncoding'
>> UTF-8
>> pi at raspberrypi:~ $ LANG=de_DE at euro ghc -e 'print System.IO.localeEncoding'
>> UTF-8
>
> Do you have any other pertinent environment variables set?  In
> particular, either LC_ALL or LC_CTYPE?

Aha:

pi at raspberrypi:~ $ echo $LC_ALL
de_DE.UTF-8
debian-buster$ echo $LC_ALL



Actually, setting LC_ALL to the empty string solves the problem!


More information about the Haskell-Cafe mailing list