
23 Aug
2010
23 Aug
'10
4:26 a.m.
I all. I'm reading a txt file using the code inh <- openFile "myfile.txt" ReadMode contents <- hGetContents inh On Windows all works fine. I'm able to read the file without any problems. On Mac OS X (10.6.4), with the same txt file and the same code above, I get the exception: hGetContents: invalid argument (Illegal byte sequence). In both the systems (Mac and Windows) I've installed the same Haskell platform 2010.2.0.0 (GHC 6.12.3). Any idea why I've this behaviour on Mac system? Thanks in advance for any answer. Luca.