Conduit does not work properly with UTF-8 locations for rhythmbox playlists
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
conduit (Ubuntu) |
Won't Fix
|
Undecided
|
Alexandre Rosenfeld |
Bug Description
Binary package hint: conduit
When I try syncronizing and Rhythmbox playlist with something (an iPod in my case), it fails saying that the file does not exists.
My ubuntu is configured to pt_BR, so, my Music folder is Músicas .
The rhythmbox module fails to properly encode/decode the UTF-8 character from the folder name, as it shows the path location with garbage instead of the ú character.
I checked the source code for RhythmboxModule and debugged the problem, and it seems that the url2pathname method does not work properly if you use and unicode string as parameter.
I could fix the problem using the encode method from the unicode string before invoking url2pathname. Everything seems to work up to know.
I attaching a patch with the change I made
I'm using Lucid Lynx 10.04 up-to-date (conduit 0.3.17)
tags: | added: patch |
An encode might work for your case, but it's not guaranteed to work. In fact, encoding 'Músicas' with encode() in my machine fails.
We might be able to work it out with encode('UTF-8'), as I don't think the url2pathname problem is with UTF-8 encoding, but with encodings other then UTF-8. Could you try with encode('UTF-8') and see if it works?