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
This commit is contained in:
Albert Astals Cid 2007-10-31 23:24:52 +00:00
parent ec72d7e654
commit 3a15da028d

View file

@ -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 )