From 5242e3bd7ecb96f87dabc5f28cf68fe158209ecd Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Fri, 16 Jun 2006 13:02:58 +0000 Subject: [PATCH] encode the file name correctly svn path=/trunk/playground/graphics/okular/; revision=552037 --- generators/djvu/kdjvu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/generators/djvu/kdjvu.cpp b/generators/djvu/kdjvu.cpp index a6a8fda7f..a8948ddd4 100644 --- a/generators/djvu/kdjvu.cpp +++ b/generators/djvu/kdjvu.cpp @@ -9,6 +9,7 @@ #include "kdjvu.h" +#include #include #include #include @@ -219,7 +220,7 @@ bool KDjVu::openFile( const QString & fileName ) closeFile(); // load the document... - d->m_djvu_document = ddjvu_document_create_by_filename( d->m_djvu_cxt, qPrintable( fileName ), true ); + d->m_djvu_document = ddjvu_document_create_by_filename( d->m_djvu_cxt, QFile::encodeName( fileName ), true ); if ( !d->m_djvu_document ) return false; // ...and wait for its loading wait_for_ddjvu_message( d->m_djvu_cxt, DDJVU_DOCINFO );