Shows "Not Playing" when title from MPD has non-ASCII characters
Bug #596514 reported by
Paul Kuliniewicz
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.
Related branches
tags: | added: mpd |
Changed in panflute: | |
status: | In Progress → Fix Committed |
Changed in panflute: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
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.