#3341: encoding errors could be handled better
-------------------------------+--------------------------------------------
Reporter: judahj | Owner:
Type: bug | Status: new
Priority: high | Milestone: 6.12.1
Component: libraries/base | Version: 6.11
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Os: MacOS X
Architecture: x86 |
-------------------------------+--------------------------------------------
Comment (by simonmar):
An update: the built-in UTF-8 decoder has a bug, in that when the byte
0x80 is received it will wait for 3 more bytes before emitting an error
(the iconv UTF-8 decoder doesn't have this bug). I've fixed that.
I managed to crash xterm by pasting the bytes 0xE0 0x00 into it :-) And
it wasn't even in UTF-8 mode.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3341#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