
28 Nov
2010
28 Nov
'10
1:26 a.m.
Hi all, I've got a trivial test program: main :: IO () main = do text <- readFile "unicode.txt" putStr text which I compile with ghc-6.12.1 (from Debian) and when it runs I get: hGetContents: invalid argument (Invalid or incomplete multibyte or wide character) I've done some googling which seems to suggest that I need to set the LANG environment variable, but I already have that set to en_AU.UTF-8. Clues? Cheers, Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/