25 lines
749 B
Diff
25 lines
749 B
Diff
Index: pdf2djvu-0.7.15/pdf-backend.cc
|
|
===================================================================
|
|
--- pdf2djvu-0.7.15.orig/pdf-backend.cc
|
|
+++ pdf2djvu-0.7.15/pdf-backend.cc
|
|
@@ -28,7 +28,7 @@
|
|
#if POPPLER_VERSION < 2100
|
|
#include <UTF8.h>
|
|
#else
|
|
-#include <UTF.h>
|
|
+#include <UnicodeMap.h>
|
|
#endif
|
|
#include <UnicodeTypeTable.h>
|
|
|
|
@@ -575,7 +575,9 @@ pdf::Object *pdf::dict_lookup(pdf::Dict
|
|
void pdf::write_as_utf8(std::ostream &stream, Unicode unicode_char)
|
|
{
|
|
char buffer[8];
|
|
- int seqlen = mapUTF8(unicode_char, buffer, sizeof buffer);
|
|
+ GooString enc("UTF-8");
|
|
+ UnicodeMap *utf8Map = globalParams->getUnicodeMap(&enc);
|
|
+ int seqlen = utf8Map->mapUnicode(unicode_char, buffer, sizeof buffer);
|
|
stream.write(buffer, seqlen);
|
|
}
|
|
|