[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [konversation] data/scripts: Explicitly decode into utf-8.
From:       Eike Hein <hein () kde ! org>
Date:       2011-12-01 0:44:56
Message-ID: 20111201004456.58E29A60A6 () git ! kde ! org
[Download RAW message or body]

Git commit cc1897c05e35f682d21534327abe8a1d704c11a3 by Eike Hein.
Committed on 01/12/2011 at 01:43.
Pushed by hein into branch 'master'.

Explicitly decode into utf-8.

M  +1    -1    data/scripts/media

http://commits.kde.org/konversation/cc1897c05e35f682d21534327abe8a1d704c11a3

diff --git a/data/scripts/media b/data/scripts/media
index 23b9b5d..2a5e581 100755
--- a/data/scripts/media
+++ b/data/scripts/media
@@ -131,7 +131,7 @@ def is_specific_player(kind):
 
 def fetch_property(busname, attribute):
     output = subprocess.check_output((dbus_command, busname, '/org/mpris/MediaPlayer2', attribute))
-    return output.decode(errors='replace').strip()
+    return output.decode(encoding='utf-8', errors='replace').strip()
 
 def list_players():
     running = PlayerList()
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic