
5 Oct
2010
5 Oct
'10
5:52 p.m.
On Tuesday 05 October 2010 23:34:56, Johannes Waldmann wrote:
I have this program
main = writeFile "check.out" "�"
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.