r13791 by pierre - Fixed - try a bit harder before we give up at getting an UTF-16 codec
scribus-commit
scribus-commit at lists.scribus.net
Thu Jul 23 01:05:15 CEST 2009
Revision: 13791
Author: pierre
Date: 2009-07-22T23:05:15.235812Z
Commit message: Fixed - try a bit harder before we give up at getting an UTF-16 codec
Changeset:
M /trunk/Scribus/scribus/pdflib_core.cpp
Diffs:
Index: scribus/pdflib_core.cpp
===================================================================
--- scribus/pdflib_core.cpp (revision 13790)
+++ scribus/pdflib_core.cpp (revision 13791)
@@ -168,9 +168,11 @@
usedFonts.clear();
doc.getUsedFonts(usedFonts);
ucs2Codec = QTextCodec::codecForName("ISO-10646-UCS-2");
+ if(!ucs2Codec)
+ ucs2Codec = QTextCodec::codecForName("UTF-16");
if (!ucs2Codec)
{
- PDF_Error( tr("Qt build miss ISO-10646-UCS-2 text codec, pdf export is not possible") );
+ PDF_Error( tr("Qt build miss both \"UTF-16\" and \"ISO-10646-UCS-2\" text codecs, 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