summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog7
-rw-r--r--debian/patches/0115-Fix_text_filter.patch16
-rw-r--r--debian/patches/series1
3 files changed, 24 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 98a28a4..1b4ea46 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+foomatic-filters (4.0.17-14) UNRELEASED; urgency=medium
+
+ * New debian/patches/0115-Fix_text_filter.patch (Closes: #776315):
+ - Fix error on handling text filter.
+
+ -- Jörg Frings-Fürst <debian@jff.email> Thu, 24 Feb 2022 08:07:44 +0100
+
foomatic-filters (4.0.17-13) unstable; urgency=medium
* Fix error processing package (Closes: #997318):
diff --git a/debian/patches/0115-Fix_text_filter.patch b/debian/patches/0115-Fix_text_filter.patch
new file mode 100644
index 0000000..652aa1b
--- /dev/null
+++ b/debian/patches/0115-Fix_text_filter.patch
@@ -0,0 +1,16 @@
+Index: trunk/fileconverter.c
+===================================================================
+--- trunk.orig/fileconverter.c
++++ trunk/fileconverter.c
+@@ -37,9 +37,9 @@
+ * is not set. (Except if the spooler is CUPS, then 'texttops' is used
+ */
+ const char *fileconverters[][2] = {
+- { "a2ps", "a2ps -1 @@--medium=@@PAGESIZE@@ @@--center-title=@@JOBTITLE@@ -o -" },
++ { "a2ps", "a2ps -1 @@--medium=@@PAGESIZE@@ @@--center-title=\"@@JOBTITLE@@ -o -" },
+ { "enscript", "enscript -G @@-M @@PAGESIZE@@ @@-b \"Page $%|@@JOBTITLE@@ --margins=36:36:36:36 --mark-wrapped-lines=arrow --word-wrap -p-" },
+- { "mpage", "mpage -o -1 @@-b @@PAGESIZE@@ @@-H -h @@JOBTITLE@@ -m36l36b36t36r -f -P- -" },
++ { "mpage", "mpage -o -1 @@-b @@PAGESIZE@@ @@-H -h \"@@JOBTITLE@@ -m36l36b36t36r -f -P- -" },
+ { "paps", "paps @@--paper @@PAGESIZE@@ --header --font=11.5" },
+ { NULL, NULL }
+ };
diff --git a/debian/patches/series b/debian/patches/series
index e6a186b..abbd0fe 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@
0110-fixed-segfault-when-creating-logfile.patch
0001-paps.patch
0500-r7406_also_consider_the_back_tick_as_an_illegal_shell_escape_character.patch
+0115-Fix_text_filter.patch