a2ps-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug with escape %V in 4.49


From: Franck Lombardi
Subject: Bug with escape %V in 4.49
Date: Sun, 24 Nov 2002 23:47:13 +0100
User-agent: KMail/1.4.3

Hi,

a2ps 4.49 have a bug with non delegate job :
"a2ps: ps.header: unknown escape %V"

The escape %V is not define.
%V is name and version of the program creator.

Akim, are ok with this patch ? Can I commit it ?

Index: ChangeLog
from  Franck Lombardi  <address@hidden>

        * lib/expand.c: Add definition of the escape %V.

Index: lib/expand.c
===================================================================
RCS file: /cvsroot/a2ps/a2ps/lib/expand.c,v
retrieving revision 1.1
diff -u -r1.1 expand.c
--- lib/expand.c 22 Mar 2002 15:15:31 -0000 1.1
+++ lib/expand.c 24 Nov 2002 16:20:55 -0000
@@ -930,6 +930,10 @@
                              job->run_tm.tm_sec);
              break;
 
+           case 'V':           /* `%V': name & version of this program */
+             APPEND_FORMAT2 ("%s %s", PACKAGE, VERSION);
+           break;
+
            case 'W':           /* `%W' run date in `mm/dd/yy' format */
              APPEND_FORMAT3 ("%02d/%02d/%02d",
                              job->run_tm.tm_mon + 1,

-- 
Franck Lombardi
EPITA Promotion 2004
fingerprint = 5C93 74B7 4E23 F986 7502  EC29 87A2 CB3A 5C96 EA72






reply via email to

[Prev in Thread] Current Thread [Next in Thread]