| Summary: | mtp file transfert function does not handle file encoding correctly (mtpmediadevice.cpp) | ||
|---|---|---|---|
| Product: | [Applications] amarok | Reporter: | Eric Grenier <pennac> |
| Component: | Collections/MTP player | Assignee: | Amarok Bugs <amarok-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | aikawarazuni |
| Priority: | NOR | ||
| Version First Reported In: | 1.4.7 | ||
| Target Milestone: | --- | ||
| Platform: | Gentoo Packages | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | patch to pinpoint the problem. Make use of utf8() instead of latin1(). | ||
|
Description
Eric Grenier
2007-06-29 04:54:13 UTC
Created attachment 20989 [details]
patch to pinpoint the problem. Make use of utf8() instead of latin1().
Comment on attachment 20989 [details] patch to pinpoint the problem. Make use of utf8() instead of latin1(). >Index: amarok/src/mediadevice/mtp/mtpmediadevice.cpp >=================================================================== >--- amarok/src/mediadevice/mtp/mtpmediadevice.cpp (revision 681166) >+++ amarok/src/mediadevice/mtp/mtpmediadevice.cpp (working copy) >@@ -295,9 +295,9 @@ > debug() << "Parent id : " << parent_id << endl; > > m_critical_mutex.lock(); >- debug() << "Sending track... " << bundle.url().path().latin1() << endl; >+ debug() << "Sending track... " << bundle.url().path().utf8().data() << endl; > int ret = LIBMTP_Send_Track_From_File( >- m_device, bundle.url().path().latin1(), trackmeta, >+ m_device, bundle.url().path().utf8().data(), trackmeta, > progressCallback, this, parent_id > ); > m_critical_mutex.unlock(); I can confirm this issue with Suse 10.2 and Amarok 1.4.7 I can confirm this bug on debian sid and Amarok 1.4.8. LANG=fr_FR@euro LC_CTYPE="fr_FR@euro" LC_NUMERIC="fr_FR@euro" LC_TIME="fr_FR@euro" LC_COLLATE="fr_FR@euro" LC_MONETARY="fr_FR@euro" LC_MESSAGES="fr_FR@euro" LC_PAPER="fr_FR@euro" LC_NAME="fr_FR@euro" LC_ADDRESS="fr_FR@euro" LC_TELEPHONE="fr_FR@euro" LC_MEASUREMENT="fr_FR@euro" LC_IDENTIFICATION="fr_FR@euro" LC_ALL= All files with french specific character not supported in latin1 in song title are not transferred. Alejandro can you please comment on this? Copying UTF8 files works perfectly in 2.0, but will not fix retroactively, sorry. Thanks Alejandro. Amarok 2 was all I wanted to know :) |