[rhythmbox] [im-status] Do not assume 'ascii', or unicode() will fail



commit f2a08e99b8c0a75d092b5720e66288063820cbb9
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Wed Jun 22 22:37:06 2011 +0300

    [im-status] Do not assume 'ascii', or unicode() will fail
    
    https://bugzilla.gnome.org/show_bug.cgi?id=653187

 plugins/im-status/im-status.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/im-status/im-status.py b/plugins/im-status/im-status.py
index b38e751..8483edd 100644
--- a/plugins/im-status/im-status.py
+++ b/plugins/im-status/im-status.py
@@ -156,9 +156,9 @@ class IMStatusPlugin (GObject.Object, Peas.Activatable):
 
   def set_status (self):
     subs = {
-        'artist': self.current_artist,
-        'album': self.current_album,
-        'title': self.current_title
+        'artist': unicode (self.current_artist, encoding='utf-8'),
+        'album': unicode (self.current_album, encoding='utf-8'),
+        'title': unicode (self.current_title, encoding='utf-8')
     }
     if self.current_artist:
       if self.current_title:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]