https://bugs.gpodder.org/show_bug.cgi?id=1277
Summary: Episode descriptions are truncated as utf-8 strings,
not unicode
Product: gPodder
Version: 2.12+ (Git "master" branch)
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: minor
Priority: low
Component: Application
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Created an attachment (id=608)
--> (https://bugs.gpodder.org/attachment.cgi?id=608)
fix episode description truncation
PodcastEpisode.one_line_description() truncates episode descriptions to 120
characters. If the point of truncation happens to be a UTF-8 sequence, the
operation results in an invalid string, GTK+ freaks out:
GtkWarning: Failed to set text from markup due to error parsing markup: Error
on line 2 char 132: Invalid UTF-8 encoded text in name - not valid 'Гости:
Леонид Млечин Ведущие: Татьяна Фельге�...'
This also results in visual defects, like contents of a row in the episode list
changes when you move the mouse pointer above it. To deal with this situation
the string needs to be decodec from UTF-8 before truncation. There are two
places where this can happen, I'm not sure which one is best. I'm attaching a
patch which does this in two places.
--
Configure bugmail: https://bugs.gpodder.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
_______________________________________________
gPodder-Bugs mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/gpodder-bugs