[Haskell-cafe] hClose: invalid argument (Invalid or incomplete multibyte or wide character)

Daniel Fischer daniel.is.fischer at web.de
Tue Oct 5 17:52:17 EDT 2010


On Tuesday 05 October 2010 23:34:56, Johannes Waldmann wrote:
> I have this program
>
> main =3D  writeFile "check.out" "=FC"
>
> that's u-umlaut, and the source file is utf-8-encoded
> and ghc-6.12.3 compiles it without problems but when running, I get
>
> hClose: invalid argument (Invalid or incomplete multibyte or wide
> character)
>
> (debian 5.0.6, kernel 2.6.18-6-686. I know that's somewhat dated.
> Would upgrading help?)
>
> Regards - J.W.

What does locale say your locale is?
If it's *.UTF-8, it should work, if not, that's a likely cause.



More information about the Haskell-Cafe mailing list