r13792 by pierre - Fixed - ask UTF-16 codec by its documented name rather than an alias

scribus-commit scribus-commit at lists.scribus.net
Thu Jul 23 01:10:15 CEST 2009


Revision: 13792
Author: pierre
Date: 2009-07-22T23:08:27.975096Z
Commit message: Fixed - ask UTF-16 codec by its documented name rather than an alias

Changeset: 
M  /branches/Version135/Scribus/scribus/pdflib_core.cpp

Diffs:
Index: scribus/pdflib_core.cpp
===================================================================
--- scribus/pdflib_core.cpp	(revision 13791)
+++ scribus/pdflib_core.cpp	(revision 13792)
@@ -167,11 +167,11 @@
 	QMap<QString, QMap<uint, FPointArray> > usedFonts;
 	usedFonts.clear();
 	doc.getUsedFonts(usedFonts);
-	ucs2Codec = QTextCodec::codecForName("ISO-10646-UCS-2");
+	ucs2Codec = QTextCodec::codecForName("UTF-16");
 	if (!ucs2Codec)
 	{
 		// FIXME : Replace by PDF_Error() after 1.3.5 release
-		qDebug() << "Qt build miss ISO-10646-UCS-2 text codec, pdf export is not possible";
+		qDebug() << "Qt build miss UTF-16 text codec, pdf export is not possible";
 		return false;
 	}
 	if (PDF_Begin_Doc(fn, PrefsManager::instance()->appPrefs.AvailFonts, usedFonts, doc.scMW()->bookmarkPalette->BView))




More information about the scribus-commit mailing list