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 693125 - LyricsTabs error with non unicode chars
LyricsTabs error with non unicode chars
Status: RESOLVED OBSOLETE
Product: rhythmbox
Classification: Other
Component: Plugins (other)
unspecified
Other Linux
: Normal normal
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-02-04 08:29 UTC by Leo Iannacone
Modified: 2018-05-24 17:50 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Leo Iannacone 2013-02-04 08:29:43 UTC
It happens sometime that if you have some char (in my case àèéìèòù) in lyric file  LyricsTabs will not show your lyrics.

(09:18:06) [0x1b83b20] [LyricsView.lyrics_ready] /usr/lib/rhythmbox/plugins/context/LyricsTab.py:239: loading lyrics into webview
Traceback (most recent call last):
  • File "/usr/lib/rhythmbox/plugins/context/LyricsTab.py", line 133 in lyrics_ready
    stylesheet = self.styles)
  • File "/usr/lib/python2.7/dist-packages/mako/template.py", line 412 in render
    return runtime._render(self, self.callable_, args, data)
  • File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 766 in _render
    **_kwargs_for_callable(callable_, data))
  • File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 798 in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  • File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 824 in _exec_template
    callable_(context, *args, **kwargs)
  • File "/tmp/rb-contextFikt9R/usr/share/rhythmbox/plugins/context/tmpl/lyrics-tmpl.html.py", line 42 in render_body
    __M_writer(unicode(lyrics))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 277: ordinal not in range(128)


I fixed it with the following patch.

What do you think about it?

A similar problem exist also if 'special chars' are also in the song title/author...
Comment 1 GNOME Infrastructure Team 2018-05-24 17:50:17 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/rhythmbox/issues/1266.