Comment 2 for bug 822623

Revision history for this message
Jonathan Thomas (echidnaman) wrote : [libqapt] src: Fix a bug that didn't allow files in paths with non-ascii characters to be loaded.

Git commit dbab3c83a54aa627f66983312eac594da586c17e by Jonathan Thomas.
Committed on 08/08/2011 at 23:40.
Pushed by jmthomas into branch 'master'.

Fix a bug that didn't allow files in paths with non-ascii characters to be loaded.

CCMAIL: <email address hidden>

M +1 -1 src/debfile.cpp

http://commits.kde.org/libqapt/dbab3c83a54aa627f66983312eac594da586c17e

diff --git a/src/debfile.cpp b/src/debfile.cpp
index b892630..c315f53 100644
--- a/src/debfile.cpp
+++ b/src/debfile.cpp
@@ -59,7 +59,7 @@ class DebFilePrivate

 void DebFilePrivate::init()
 {
- FileFd in(filePath.toStdString(), FileFd::ReadOnly);
+ FileFd in(filePath.toUtf8().data(), FileFd::ReadOnly);
     debDebFile deb(in);

     // Extract control data