bugGNU a2ps - Bugs: bug #63976, a2ps ignores libpaper setting

 
 

bug #63976: a2ps ignores libpaper setting

Submitter:  Dirk Meyer <dinoex>
Submitted:  Wed 29 Mar 2023 03:51:24 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 14 Apr 2023 03:15:08 PM UTC, comment #3: 

for reference

Name           : libpaper
Version        : 1.1.28
Architecture   : FreeBSD:13:amd64

I comfirm the problem is fixed for my case.

Dirk Meyer <dinoex>
Thu 13 Apr 2023 02:20:49 PM UTC, comment #2: 

I believe this bug is fixed in the just-released 4.15.4.

Reuben Thomas <rrt>
Group administrator
Wed 12 Apr 2023 11:48:22 AM UTC, comment #1: 

What version of libpaper are you using? I think that for libpaper 1.x, the fix you suggest is needed (in fact, I made the reverse change a few months ago to avoid a space leak!).

Reuben Thomas <rrt>
Group administrator
Wed 29 Mar 2023 03:51:24 PM UTC, original submission:  

previous version 4.13b was generating A4

running a2ps 4.15.3 on FreeBSD all output is letter instead of A4

the setting via libpaper is ignored.

# ls -l /usr/local/etc/papersize*
lrwxr-xr-x  1 root  wheel  12 10 Okt. 19:53 /usr/local/etc/papersize -> papersize.a4
-rw-r--r--  1 root  wheel   3 20 Dez. 04:38 /usr/local/etc/papersize.a4
-rw-r--r--  1 root  wheel   7 20 Dez. 04:38 /usr/local/etc/papersize.letter

#  /usr/local/bin/paperconf
a4

Possible fix:

--- liba2ps/media.c.orig        2023-01-26 13:04:21 UTC
+++ liba2ps/media.c
@@ -147,7 +147,7 @@ a2ps_get_medium (a2ps_job job, const char name)

   token.name = NULL;
   if (strcaseequ (name, LIBPAPER_MEDIUM))
-    token.name = (char *) defaultpapername ();
+    token.name = (char *) systempapername ();

   if (!token.name)
     token.name = (char *) name;

Dirk Meyer <dinoex>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rrt (Posted a comment)
  • -email is unavailable- added by dinoex (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-04-13 rrt StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code