#3865: On amd64, reading attached file gives "hGetContents: invalid argument
(Invalid or incomplete multibyte or wide character)"
---------------------------+------------------------------------------------
Reporter: dsf | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 6.13
Resolution: invalid | Keywords:
Difficulty: | Os: Linux
Testcase: | Architecture: x86_64 (amd64)
Failure: None/Unknown |
---------------------------+------------------------------------------------
Changes (by simonmar):
* status: new => closed
* resolution: => invalid
Comment:
The file is encoded in ISO8859-1 (aka Latin-1), so in order to read it you
either need to use a Latin-1 locale, or explicitly set the encoding using
`hSetEncoding h latin1`. Presumably on your x86-64 system the locale is
set to UTF-8, but on your i386 system it is set to Latin-1.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3865#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs