[Haskell-cafe] latin file encoding

Henning Thielemann lemming at henning-thielemann.de
Fri Nov 17 10:04:47 UTC 2017


On Fri, 17 Nov 2017, Henning Thielemann wrote:

> That's unexpected. Is this the reason:
>
> $ LANG=de_DE ghc-8.2.2 -e 'print System.IO.localeEncoding'
> ASCII
>
> ? Btw. what would be the Locale name for Latin-1 encoding?

I see, the de_DE locale was missing on my system.

I did:

$ sudo locale-gen de_DE
Generating locales (this might take a while)...
   de_DE.ISO-8859-1... done
Generation complete.


Now I get:

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

and everything works perfectly.


More information about the Haskell-Cafe mailing list