1 --- enscript-1.6.2.orig/compat/regex.c
2 +++ enscript-1.6.2/compat/regex.c
3 @@ -2400,11 +2400,13 @@
5 if (syntax & RE_NO_BK_PARENS) goto normal_backslash;
7 - if (COMPILE_STACK_EMPTY)
8 - if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD)
9 + if (COMPILE_STACK_EMPTY) {
10 + if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD) {
11 goto normal_backslash;
14 FREE_STACK_RETURN (REG_ERPAREN);
20 @@ -2420,11 +2422,13 @@
23 /* See similar code for backslashed left paren above. */
24 - if (COMPILE_STACK_EMPTY)
25 - if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD)
26 + if (COMPILE_STACK_EMPTY) {
27 + if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD) {
31 FREE_STACK_RETURN (REG_ERPAREN);
35 /* Since we just checked for an empty stack above, this
37 --- enscript-1.6.2.orig/lib/enscript.cfg.in
38 +++ enscript-1.6.2/lib/enscript.cfg.in
40 DefaultFancyHeader: enscript
42 # Default output media.
43 -DefaultMedia: @media@
44 +# DefaultMedia: @media@
46 # Where output goes as a default: `printer' or `stdout'
47 DefaultOutputMethod: printer
51 # name width height llx lly urx ury
52 -Media: A3 842 1190 24 24 818 1166
53 -Media: A4 595 842 24 24 571 818
54 -Media: A5 420 595 24 24 396 571
55 -Media: Legal 612 1008 24 24 588 984
56 -Media: Letter 612 792 38 24 574 768
57 +Media: a3 842 1190 24 24 818 1166
58 +Media: a4 595 842 24 24 571 818
59 +Media: a5 420 595 24 24 396 571
60 +Media: legal 612 1008 24 24 588 984
61 +Media: letter 612 792 38 24 574 768
63 # HP DeskJet media (DeskJet can't print on the bottom 1/2" of the paper).
64 Media: A4dj 595 842 24 50 571 818
65 --- enscript-1.6.2.orig/src/psgen.c
66 +++ enscript-1.6.2/src/psgen.c
68 read_float (InputStream *is, int units, int horizontal)
75 for (i = 0; (i < sizeof (buf) - 1
76 @@ -2696,31 +2696,15 @@
82 assert (divertfp == NULL);
84 /* Open divert file. */
86 - cp = tempnam (NULL, "ens");
88 - FATAL ((stderr, _("couldn't create divert file name: %s"),
91 - strcpy (divertfname, cp);
93 - divertfp = fopen (divertfname, "w+b");
94 + divertfp = tmpfile ();
96 FATAL ((stderr, _("couldn't create divert file \"%s\": %s"), divertfname,
99 - if (remove (divertfname) == 0)
100 - /* Remove successfull, no need to remove file in undivert(). */
101 - divertfname[0] = '\0';
103 - /* Free the buffer allocated by tempnam(). */
109 @@ -2774,10 +2758,6 @@
114 - /* Do we have to remove the divert file? */
115 - if (divertfname[0])
116 - (void) remove (divertfname);
120 --- enscript-1.6.2.orig/tests/Makefile.in
121 +++ enscript-1.6.2/tests/Makefile.in
123 EXTRA_DIST = defs $(TESTS)
124 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
125 CONFIG_HEADER = ../config.h
126 -CONFIG_CLEAN_FILES =
127 +CONFIG_CLEAN_FILES = testout.ps
128 DIST_COMMON = ChangeLog Makefile.am Makefile.in
131 --- enscript-1.6.2.orig/docs/Makefile.in
132 +++ enscript-1.6.2/docs/Makefile.in
134 enscript.fns enscript.ky enscript.kys enscript.ps \
135 enscript.log enscript.pg enscript.toc enscript.tp \
136 enscript.tps enscript.vr enscript.vrs enscript.op enscript.tr \
137 - enscript.cv enscript.cn
138 + enscript.cv enscript.cn enscript.1 states.1