From kde-commits Wed Oct 31 23:18:03 2007 From: Albert Astals Cid Date: Wed, 31 Oct 2007 23:18:03 +0000 To: kde-commits Subject: branches/KDE/3.5/kdegraphics/kpdf/core/generator_pdf Message-Id: <1193872683.236489.14342.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=119387269026758 SVN commit 731536 by aacid: PDF passwords are latin1, so encode them correctly BUG: 138997 M +1 -1 generator_pdf.cpp --- branches/KDE/3.5/kdegraphics/kpdf/core/generator_pdf/generator_pdf.cpp #731535:731536 @@ -152,7 +152,7 @@ } // 2. reopen the document using the password - GString * pwd2 = new GString( password.data() ); + GString * pwd2 = new GString( QString::fromLocal8Bit(password.data()).latin1() ); delete pdfdoc; pdfdoc = new PDFDoc( new GString( QFile::encodeName( filePath ) ), pwd2, pwd2 ); delete pwd2;