High-bit in string encoding 00 is not handled properly

Bug #1041717 reported by Bart Massey on 2012-08-26
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bart Massey

Bug Description

idiii fails its own test of whether it can handle tags with ISO-8859-1 high-range characters.

$ ghc --make CharacterEncodingTests
[1 of 2] Compiling TestHelp ( TestHelp.hs, TestHelp.o )
[2 of 2] Compiling Main ( CharacterEncodingTests.hs, CharacterEncodingTests.o )
Linking CharacterEncodingTests ...
$ ./CharacterEncodingTests .
### Error in: 0:test reading a tag that has a frame with text encoded as ISO-8859-1, with at least a portion of the characters in the non-ASCII range
Cannot decode byte '\xff': Data.Text.Encoding.Fusion.streamUtf8: Invalid UTF-8 stream
Cases: 5 Tried: 5 Errors: 1 Failures: 0

Patch attached.

Bart Massey (bart-massey) wrote :

My branch of idiii pushed here contains my patch above.

Changed in idiii:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Bart Massey (bart-massey)
Changed in idiii:
status: In Progress → Fix Committed
Changed in idiii:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers