1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-16 02:54:33 +02:00

Revert "Fix problems with reading files because of filename charsets."

This reverts commit f386de0f0d.
This commit is contained in:
Leo Franchi
2011-01-16 12:54:41 -05:00
parent f386de0f0d
commit 893a200b8e
3 changed files with 1 additions and 27 deletions

View File

@@ -160,14 +160,7 @@ MusicScanner::readFile( const QFileInfo& fi )
if( m_scanned % 100 == 0 )
qDebug() << "SCAN" << m_scanned << fi.absoluteFilePath();
#ifdef COMPLEX_TAGLIB_FILENAME
const wchar_t *encodedName = reinterpret_cast< const wchar_t *>(fi.absoluteFilePath().utf16());
#else
QByteArray fileName = QFile::encodeName( fi.absoluteFilePath() );
const char *encodedName = fileName.constData();
#endif
TagLib::FileRef f( encodedName );
TagLib::FileRef f( fi.absoluteFilePath().toUtf8().constData() );
if ( f.isNull() || !f.tag() )
{
// qDebug() << "Doesn't seem to be a valid audiofile:" << fi.absoluteFilePath();