Ticket #22265: pdftk.patch
File pdftk.patch, 1.4 KB (added by vinc17@…, 15 years ago) |
---|
-
files/patch-report.cc.diff
1 --- a/pdftk/report.cc 2 +++ b/pdftk/report.cc 3 @@ -1233,7 +1233,7 @@ 4 string_to_jcharstring( jvs, jvs_size, &jvs_len, it->second ); 5 6 info_p->put( new itext::PdfName( JvNewStringLatin1(it->first.c_str()) ), 7 - new itext::PdfString( JvNewString(jvs, jvs_len), itext::PdfObject::TEXT_UNICODE ) ); 8 + new itext::PdfString( JvNewStringUTF((char* )it->second.c_str()), (strcmp(it->first.c_str(), "ModDate") && strcmp(it->first.c_str(), "CreationDate")) ? itext::PdfObject::TEXT_UNICODE : itext::PdfObject::TEXT_PDFDOCENCODING ) ); 9 } 10 } 11 } -
Portfile
4 4 5 5 name pdftk 6 6 version 1.41 7 revision 17 revision 2 8 8 categories textproc graphics pdf 9 9 maintainers ryandesign 10 10 platforms darwin … … 90 90 if { ![variant_isset with_gcc41] && ![variant_isset with_gcc42] } { 91 91 default_variants +with_gcc42 92 92 } 93 94 # Patch based on handle_utf8_data_in_update_info from the Debian package pdftk. 95 patchfiles patch-report.cc.diff 96 patch.args -p2