[totem] UTF-8 encode strings in the iPlayer plugin
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] UTF-8 encode strings in the iPlayer plugin
- Date: Sat, 23 Oct 2010 16:39:15 +0000 (UTC)
commit 03351c51014ce6cd00000beaf2aab632806ba23f
Author: Philip Withnall <philip tecnocode co uk>
Date: Sat Oct 23 17:37:09 2010 +0100
UTF-8 encode strings in the iPlayer plugin
Due to bgo#60579, PyGObject will no longer accept Python Unicode objects as
strings, so we need to UTF-8 encode them explicitly. Helps: bgo#626399
src/plugins/iplayer/iplayer.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/iplayer/iplayer.py b/src/plugins/iplayer/iplayer.py
index c8af05a..18720c3 100644
--- a/src/plugins/iplayer/iplayer.py
+++ b/src/plugins/iplayer/iplayer.py
@@ -223,7 +223,8 @@ class PopulateProgrammesThread (threading.Thread):
continue
gobject.idle_add (self.plugin._populate_programme_list_cb, self.tree_model, self.category_path,
- [programme.get_title (), programme.get_summary (), media.url], remove_placeholder)
+ [programme.get_title ().encode ('utf-8'), programme.get_summary ().encode ('utf-8'), media.url],
+ remove_placeholder)
remove_placeholder = False
self.plugin.programme_download_lock.release ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]