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

Henning Thielemann lemming at henning-thielemann.de
Wed Jul 15 15:12:42 UTC 2020


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

Which is not, what I want.

On Debian Buster it is correct:

$ LANG=de_DE ghc -e 'print System.IO.localeEncoding'
ISO-8859-1


How can I check whether this is a GHC problem and has anyone an idea how 
to fix it?


More information about the Haskell-Cafe mailing list