Bug 146445

Summary: Transfer of files with Unicode encoding fails with MTP devices.
Product: [Applications] amarok Reporter: Gian Paolo Mureddu <gmureddu>
Component: generalAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version First Reported In: 1.4.5   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Gian Paolo Mureddu 2007-06-06 09:08:14 UTC
Version:           1.4.5 (using KDE KDE 3.5.6)
Installed from:    Fedora RPMs
Compiler:          gcc-4.1.1 
OS:                Linux

Transferring files which have UTF-8 encoded filenames, using a UTF-8 locale fails using MTP devices when there are "special" characters in the filename, like accentuated characters (á, é, í, ó, ú, à, è, ì, ò, ù, ä, ë, ï, ö, ü, etc) or other characters (ñ, €, ø, ß, etc). The error message is pretty generic and somewhat in the lines of "Error transfering file $FILE". No other explanation.

I have to resort to transfer the files manually with the mtp commands from the CLI, which is possible, but skips two important things: The database, and the file's metadata. This is especially critical with files which are not supported by many devices such as .ogg

I have drawn the conclusion that this has something to do with the UTF-8 encoding of filenames, as if the files don't contain any of the "strange" characters, they're synchronized just fine. There is no problem when viewing these files from within Amarok, nor playing those files, the only problem is when trying to synchronize them or transfer them to a portable device using MTP (I have no iPod, nor other "generic" mp3 players, so I can't say anything about those.

Just for completeness sake, my locale is UTF-8 capable, and even though I'm primarily a non-KDE user, even from within a KDE session this happens, again, with a UTF-8 locale.

This always happens and basically all there is to recreating this is to configure an MTP device, attach it and connect it, then try to transfer some files with some international characters and it will fail.

Software:

Amarok 1.4.5
libmtp 0.1.5

Hardware:

iriver Clix (1st gen)
Comment 1 Kevin Funk 2007-06-06 16:00:12 UTC
Same topic/issue discussed over there.

*** This bug has been marked as a duplicate of 139722 ***