]> git.pld-linux.org Git - packages/enscript.git/blob - enscript-debian.patch
f96615812701d06954a4f45a16b1741b1147b785
[packages/enscript.git] / enscript-debian.patch
1 --- enscript-1.6.2.orig/compat/regex.c
2 +++ enscript-1.6.2/compat/regex.c
3 @@ -2400,11 +2400,13 @@
4              case ')':
5                if (syntax & RE_NO_BK_PARENS) goto normal_backslash;
6  
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;
12 -                else
13 +               } else {
14                    FREE_STACK_RETURN (REG_ERPAREN);
15 +               }  
16 +             } 
17  
18              handle_close:
19                if (fixup_alt_jump)
20 @@ -2420,11 +2422,13 @@
21                  }
22  
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) {
28                    goto normal_char;
29 -                else
30 +               } else {
31                    FREE_STACK_RETURN (REG_ERPAREN);
32 +               }
33 +             } 
34  
35                /* Since we just checked for an empty stack above, this
36                   ``can't happen''.  */
37 --- enscript-1.6.2.orig/lib/enscript.cfg.in
38 +++ enscript-1.6.2/lib/enscript.cfg.in
39 @@ -48,7 +48,7 @@
40  DefaultFancyHeader: enscript
41  
42  # Default output media.
43 -DefaultMedia: @media@
44 +# DefaultMedia: @media@
45  
46  # Where output goes as a default: `printer' or `stdout'
47  DefaultOutputMethod: printer
48 @@ -86,11 +86,11 @@
49  
50  # Media definitions:
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
62  
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
67 @@ -2472,7 +2472,7 @@
68  read_float (InputStream *is, int units, int horizontal)
69  {
70    char buf[256];
71 -  int i, ch;
72 +  int i, ch = 0;
73    double val;
74  
75    for (i = 0; (i < sizeof (buf) - 1
76 @@ -2696,31 +2696,15 @@
77  static void
78  divert ()
79  {
80 -  char *cp;
81 -
82    assert (divertfp == NULL);
83  
84    /* Open divert file. */
85  
86 -  cp = tempnam (NULL, "ens");
87 -  if (cp == NULL)
88 -    FATAL ((stderr, _("couldn't create divert file name: %s"),
89 -           strerror (errno)));
90 -
91 -  strcpy (divertfname, cp);
92 -
93 -  divertfp = fopen (divertfname, "w+b");
94 +  divertfp = tmpfile ();
95    if (divertfp == NULL)
96      FATAL ((stderr, _("couldn't create divert file \"%s\": %s"), divertfname,
97             strerror (errno)));
98  
99 -  if (remove (divertfname) == 0)
100 -    /* Remove successfull, no need to remove file in undivert(). */
101 -    divertfname[0] = '\0';
102 -
103 -  /* Free the buffer allocated by tempnam(). */
104 -  free (cp);
105 -
106    cofp = divertfp;
107  }
108  
109 @@ -2774,10 +2758,6 @@
110  
111    fclose (divertfp);
112    divertfp = NULL;
113 -
114 -  /* Do we have to remove the divert file? */
115 -  if (divertfname[0])
116 -    (void) remove (divertfname);
117  
118    cofp = ofp;
119  }
120 --- enscript-1.6.2.orig/tests/Makefile.in
121 +++ enscript-1.6.2/tests/Makefile.in
122 @@ -131,7 +131,7 @@
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
129  
130  
131 --- enscript-1.6.2.orig/docs/Makefile.in
132 +++ enscript-1.6.2/docs/Makefile.in
133 @@ -280,7 +280,7 @@
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
139  
140  clean-aminfo:
141  
This page took 0.067453 seconds and 2 git commands to generate.