diff options
Diffstat (limited to 'print/poppler/patches/patch-af')
-rw-r--r-- | print/poppler/patches/patch-af | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/print/poppler/patches/patch-af b/print/poppler/patches/patch-af deleted file mode 100644 index f7c7cf5b7f4..00000000000 --- a/print/poppler/patches/patch-af +++ /dev/null @@ -1,27 +0,0 @@ -$NetBSD: patch-af,v 1.3 2007/11/28 20:54:38 drochner Exp $ - ---- glib/poppler-document.cc.orig 2007-11-28 21:04:53.000000000 +0100 -+++ glib/poppler-document.cc -@@ -137,8 +137,20 @@ poppler_document_new_from_file (const ch - g_free (filename); - - password_g = NULL; -- if (password != NULL) -- password_g = new GooString (password); -+ if (password != NULL) { -+ if (g_utf8_validate (password, -1, NULL)) { -+ gchar *password_latin; -+ -+ password_latin = g_convert (password, -1, -+ "ISO-8859-1", -+ "UTF-8", -+ NULL, NULL, NULL); -+ password_g = new GooString (password_latin); -+ g_free (password_latin); -+ } else { -+ password_g = new GooString (password); -+ } -+ } - - newDoc = new PDFDoc(filename_g, password_g, password_g); - if (password_g) |