Shows "Not Playing" when title from MPD has non-ASCII characters

Bug #596514 reported by Paul Kuliniewicz
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Panflute
Fix Released
Medium
Paul Kuliniewicz

Bug Description

Whenever the song playing has accents, or non-ascii characters in the metadata, panflute says the title of the song is "Not Playing". I'm using mpd as my player. Running mpc gives the informations just fine in a terminal. Music Applet had no problem giving out the same information, and did not complain even with chinese/japanese characters in the title. Other than that, thank you for the awesome program.

Thank you.

Tags: daemon mpd

Related branches

tags: added: mpd
Revision history for this message
Paul Kuliniewicz (kuliniew) wrote :

It looks like the MPD client library is returning UTF-8 encoded strings, but the Panflute daemon's string sanitizer is expecting non-Unicode strings to be ASCII. Decoding fails, so the string gets dropped, and the lack of a title causes the applet to show "Not playing". The solution will be to explicitly UTF-8 decode the strings before putting them in the metadata object.

Changed in panflute:
status: New → Confirmed
status: Confirmed → In Progress
importance: Undecided → Medium
assignee: nobody → Paul Kuliniewicz (kuliniew)
milestone: none → 0.7.0
tags: added: daemon
Changed in panflute:
status: In Progress → Fix Committed
Changed in panflute:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.