#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 |
---------------------------+------------------------------------------------
Comment(by dsf):
Oh, I didn't realize that î was in latin1 (0xee.) Hmm, the error is
coming from hscolour, I'm concerned it might run into UTF-8 files it can't
handle if I change the locale to Latin-1. Maybe I'll change the file
encoding to UTF-8.
Should hscolour be able to handle files of either encoding? Should it be
using openBinaryFile?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3865#comment:2>
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