]> git.pld-linux.org Git - packages/enscript.git/blob - enscript-debian.patch
fix gettext macro
[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 @@ -91,6 +91,11 @@
49  Media: A5              420     595     24      24      396     571
50  Media: Legal           612     1008    24      24      588     984
51  Media:  Letter         612     792     38      24      574     768
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  
58  # HP DeskJet media (DeskJet can't print on the bottom 1/2" of the paper).
59  Media: A4dj            595     842     24      50      571     818
60 --- enscript-1.6.2.orig/src/psgen.c
61 +++ enscript-1.6.2/src/psgen.c
62 @@ -2472,7 +2472,7 @@
63  read_float (InputStream *is, int units, int horizontal)
64  {
65    char buf[256];
66 -  int i, ch;
67 +  int i, ch = 0;
68    double val;
69  
70    for (i = 0; (i < sizeof (buf) - 1
This page took 0.063091 seconds and 3 git commands to generate.