Bug 114509 - Collection scan fails because of wrong encoding
Summary: Collection scan fails because of wrong encoding
Status: RESOLVED DUPLICATE of bug 114195
Alias: None
Product: amarok
Classification: Applications
Component: general (show other bugs)
Version: 1.3.3
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-16 16:16 UTC by Alex Chmyr
Modified: 2006-06-11 12:32 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Chmyr 2005-10-16 16:16:04 UTC
Version:           1.3.3 (using KDE KDE 3.4.0)
Installed from:    Fedora RPMs
OS:                Linux

I have some music files which have name with Cyrrilic symbols under my UTF8 locale.
When Im start scanning, output gets taglib error, something like 
`TagLib: Could not open file /home/data/mp3/ÐлиÑа/1996 - Jazz/ТеаÑÑ.MP3'. And of course file skips from collection.

I find out problem.I have never programming on QT, but I've fixed this.

The problem is in `amarok/collectionreader.cpp' function 
`void CollectionReader::readTags'

I'll give you my fix, and you can change it anyhow for normal sourceview:
----
	QCString ent1 = it.current();
        const QString path = QString::fromLocal8Bit(ent1);
----
instead of 
----
        const QString path = it.current();
----
there wasn't locale conversion.

Thanks.
Comment 1 Alex Chmyr 2005-10-16 16:18:13 UTC
Sorry. Ive puted wrong Platform. The platfrom is FC but I've used src tarball.
Comment 2 Alexandre Oliveira 2005-10-16 16:22:45 UTC
Already fixed.

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