From f9e7ddfb86e971b354fd3bd2d2b8d69a78b5b3ce Mon Sep 17 00:00:00 2001
From: Christian Muehlhaeuser <muesli@gmail.com>
Date: Thu, 31 May 2012 13:54:35 +0200
Subject: [PATCH] * Trying toLocal8Bit() for fixing Windows with non-latin
 usernames.

---
 src/libtomahawk/database/FuzzyIndex.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libtomahawk/database/FuzzyIndex.cpp b/src/libtomahawk/database/FuzzyIndex.cpp
index 47e3cdb7e..74b6aaa3d 100644
--- a/src/libtomahawk/database/FuzzyIndex.cpp
+++ b/src/libtomahawk/database/FuzzyIndex.cpp
@@ -44,7 +44,7 @@ FuzzyIndex::FuzzyIndex( bool wipeIndex )
     , m_luceneSearcher( 0 )
 {
     QString m_lucenePath = TomahawkUtils::appDataDir().absoluteFilePath( "tomahawk.lucene" );
-    m_luceneDir = FSDirectory::getDirectory( m_lucenePath.toUtf8() );
+    m_luceneDir = FSDirectory::getDirectory( m_lucenePath.toLocal8Bit() );
     m_analyzer = _CLNEW SimpleAnalyzer();
 
     if ( wipeIndex )