Invalid byte 2 of 2-byte UTF-8 sequence

Bug #305574 reported by Andy Balaam
2
Affects Status Importance Assigned to Milestone
FreeGuide-TV
Fix Released
High
Andy Balaam

Bug Description

FreeGuide chokes on invalid UTF-8 data in the incoming XMLTV stream. It should handle the error more gracefully, and continue reading the rest of the data.

Revision history for this message
Andy Balaam (mail-artificialworlds) wrote :

There is an FAQ entry on how to work around this bug here: http://www.artificialworlds.net/freeguide/FAQ/InvalidUTF8

Changed in freeguide-tv:
importance: Undecided → High
milestone: none → 0.10.10
status: New → In Progress
assignee: nobody → mail-artificialworlds
Revision history for this message
Andy Balaam (mail-artificialworlds) wrote :

I have committed what I think is a fix for this problem to SVN. Please could someone test it out?

Instructions for building the SVN version are here:

http://www.artificialworlds.net/freeguide/Developers/BuildFromSVN

Let me know if they don't work.

Please choose UTF-8 as your encoding and see whether the listings download ok.

The fix is not yet finished because it filters out invalid UTF-8 characters even if you're not using UTF-8, but it should work if you are using UTF-8 I think.

Let me know!

Revision history for this message
Andy Balaam (mail-artificialworlds) wrote :

I have now implemented only filtering when the encoding is utf-8.

Revision history for this message
Andy Balaam (mail-artificialworlds) wrote :

I have submitted the final touches to the fix for this bug.

Changed in freeguide-tv:
status: In Progress → Fix Committed
Revision history for this message
Andy Balaam (mail-artificialworlds) wrote :

Fixed in 0.10.10.

Changed in freeguide-tv:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.