1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-09 15:47:38 +02:00

* Try utf16 conversion.

This commit is contained in:
Christian Muehlhaeuser
2014-09-18 05:42:07 +02:00
parent 0bfee1eeca
commit 24ce7e823e

View File

@@ -44,7 +44,7 @@ FuzzyIndex::FuzzyIndex( QObject* parent, const QString& filename, bool wipe )
try try
{ {
m_analyzer = newLucene<SimpleAnalyzer>(); m_analyzer = newLucene<SimpleAnalyzer>();
m_luceneDir = FSDirectory::open( StringUtils::toString( m_lucenePath.toUtf8().constData() ) ); m_luceneDir = FSDirectory::open( StringUtils::toString( m_lucenePath.utf16() ) );
// m_luceneDir = FSDirectory::open( m_lucenePath.toStdWString() ); // m_luceneDir = FSDirectory::open( m_lucenePath.toStdWString() );
} }
catch ( LuceneException& error ) catch ( LuceneException& error )