After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 686515 - dbusservice plugin has UnicodeDecodeErrror per song
dbusservice plugin has UnicodeDecodeErrror per song
Status: RESOLVED FIXED
Product: totem
Classification: Core
Component: Plugins
3.4.x
Other Linux
: Normal normal
: ---
Assigned To: General Totem maintainer(s)
General Totem maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2012-10-20 09:46 UTC by Matěj Cepl
Modified: 2012-10-21 14:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matěj Cepl 2012-10-20 09:46:53 UTC
Traceback (most recent call last):
  • File "/usr/lib64/totem/plugins/dbus/dbusservice.py", line 132 in __do_update_metadata
    { 'Metadata': self.__calculate_metadata () }, [])
  • File "/usr/lib64/totem/plugins/dbus/dbusservice.py", line 111 in __calculate_metadata
    self.current_metadata['album'], variant_level = 1)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 0: ordinal not in range(128)


totem-3.6.0-3.el7.x86_64
Comment 1 Philip Withnall 2012-10-21 14:19:51 UTC
Fixed on master:

commit 1dd2b0e4c216b88b86f38759d370004f9dcd3cf6
Author: Philip Withnall <philip@tecnocode.co.uk>
Date:   Sun Oct 21 15:17:31 2012 +0100

    Bug 686515 — dbusservice plugin has UnicodeDecodeErrror per song
    
    Fix dbusservice plugin to correctly use Python Unicode objects to represent
    song metadata, rather than UTF-8 encoded strings which it would then treat
    as ASCII.
    
    Closes: https://bugzilla.gnome.org/show_bug.cgi?id=686515

 src/plugins/dbusservice/dbusservice.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)


and on gnome-3-6:

commit 3d899641c8ca1185554a884c99899ac19700f4b8
Author: Philip Withnall <philip@tecnocode.co.uk>
Date:   Sun Oct 21 15:17:31 2012 +0100

    Bug 686515 — dbusservice plugin has UnicodeDecodeErrror per song
    
    Fix dbusservice plugin to correctly use Python Unicode objects to represent
    song metadata, rather than UTF-8 encoded strings which it would then treat
    as ASCII.
    
    Closes: https://bugzilla.gnome.org/show_bug.cgi?id=686515

 src/plugins/dbusservice/dbusservice.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)