System.IO.latin1 docs

Wolfgang Jeltsch g9ks157k at acme.softbase.org
Thu Dec 16 21:53:05 CET 2010


Hello,

on

<http://www.haskell.org/ghc/docs/6.12.2/html/libraries/base-4.2.0.1/System-IO.html#v%3Alatin1>

it says:

> An attempt to write a character greater than '\255' to a Handle using
> the latin1 encoding will result in an error.

However, according to my experience (with GHC 6.12.1 and base 4.2.0.0),
latin1 just outputs a character '\cccc' as cccc `mod` 256.

Should the docs be changed?

Best wishes,
Wolfgang




More information about the Libraries mailing list