Mailinglist Archive: opensuse-bugs (4671 mails)

< Previous Next >
[Bug 640408] a2ps assumes letter size paper in germany
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Tue, 21 Sep 2010 07:45:12 +0000
  • Message-id: <20100921074512.F137F245520@xxxxxxxxxxxxxxxxxxxxxx>

Johannes Meixner <jsmeix@xxxxxxxxxx> changed:

What |Removed |Added
Platform|Other |All
Found By|--- |Development
Resolution| |WORKSFORME
AssignedTo|jsmeix@xxxxxxxxxx |werner@xxxxxxxxxx
OS/Version|Other |openSUSE 11.3

--- Comment #2 from Johannes Meixner <jsmeix@xxxxxxxxxx> 2010-09-21 07:45:11
UTC ---
Do not mix up the printing application (a2ps)
with the printing system (CUPS and its filters).

When the printing application produces PostScript
the printing system prints it by default "as is",
in particular the size specified in the PostScript file.
See the "Scaling to Fit" section in
or follow the "SEE ALSO" section in "man lpoptions" which points
to "man lp" and then the "COMMON JOB OPTIONS" section there.

Regarding a2ps,
according to "man a2ps" you can specify "--medium=NAME" to use
the output medium NAME which are defined in /etc/a2ps.cfg.
In /etc/a2ps-site.cfg there is
# Default medium
Options: --medium=LC_PAPER
so that the default medium in a2ps depends on your locale
which works for me as expected:
# export LC_ALL=de_DE
# export LANG=de_DE
# echo de_DE | a2ps -1 -o /tmp/
[stdin (unformatiert): 1 Seite auf einem Blatt]
[Insgesamt: 1 Seite auf einem Blatt] in die
Datei `/tmp/' geschrieben
# export LC_ALL=en_US
# export LANG=en_US
# echo en_US | a2ps -1 -o /tmp/
[stdin (plain): 1 page on 1 sheet]
[Total: 1 page on 1 sheet] saved into the
file `/tmp/'
burns:~ # grep '^%%BoundingBox' /tmp/a2ps.*.ps
/tmp/ 24 24 571 818
/tmp/ 24 24 588 768

Configure bugmail:
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >