Bug 114509

Summary: Collection scan fails because of wrong encoding
Product: [Applications] amarok Reporter: Alex Chmyr <achmyr>
Component: generalAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: 1.3.3   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

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 ***