Commit 3a15da02 authored by Albert Astals Cid's avatar Albert Astals Cid

poppler clearly states in its doc since 36 minutes ago that passwords have to be latin1 encoded

svn path=/trunk/KDE/kdegraphics/okular/; revision=731537
parent ec72d7e6
......@@ -411,7 +411,7 @@ bool PDFGenerator::init(QVector<Okular::Page*> & pagesVector, const QString &wal
}
// 2. reopen the document using the password
pdfdoc->unlock( password.toLocal8Bit(), password.toLocal8Bit() );
pdfdoc->unlock( password.toLatin1(), password.toLatin1() );
// 3. if the password is correct and the user chose to remember it, store it to the wallet
if ( !pdfdoc->isLocked() && wallet && /*safety check*/ wallet->isOpen() && keep )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment