ghostscript defaults to letter size paper, which is fine for many, but for European users, A4 paper would be a better default. If we had a USE flag, say "a4paper", that appled the following patch to ghostscript, I would be very happy. The same flag could also be used for similar patches for other applications. --- lib/gs_init.ps.orig 2005-03-31 15:03:05.000000000 +0100 +++ lib/gs_init.ps 2005-07-07 09:17:24.557900514 +0100 @@ -64,7 +64,7 @@ systemdict /.languagelevel known not { /.languagelevel 1 def } if % Optionally choose a default paper size other than U.S. letter. -% (a4) /PAPERSIZE where { pop pop } { /PAPERSIZE exch def } ifelse +(a4) /PAPERSIZE where { pop pop } { /PAPERSIZE exch def } ifelse % Turn on array packing for the rest of initialization. true setpacking Reproducible: Always Steps to Reproduce: 1. Apply above patch to ghostscript 2. 3. Actual Results: ghostscript uses a4 papersize as default Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.7-gentoo-r14 x86_64) ================================================================= System uname: 2.6.7-gentoo-r14 x86_64 AMD Opteron(tm) Processor 844 Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux-headers-2.6.8.1-r2 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-O2 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sfperms strict" GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.belnet.be/linux/gentoo/ http://www.mirror.ac.uk/sites/www.ibiblio.org/ http://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ http://ftp6.uni-erlangen.de/pub/mirrors/gentoo" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://ftp.belnet.be/gentoo-portage/" USE="amd64 X acpi alsa arts berkdb bitmap-fonts crypt curl esd f77 fam flac font-server fortran gd gdbm gif gnome gphoto2 gpm gstreamer gtk guile imlib ipv6 jp2 jpeg kde libwww lzw lzw-tiff mikmod motif mozilla mp3 ncurses nls ogg opengl oss pam pdflib perl png python qt readline sdl slang ssl tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts usb userlocales vorbis xine xml2 xmms xpm xrandr xv zlib userland_GNU kernel_linux elibc_glibc"
I'can't see the point in adding a use flag when you can just set it in /usr/share/ghostscript/7.07/lib/gs_init.ps or setting a default option in the env var GS_OPTIONS.
(In reply to comment #1) > I'can't see the point in adding a use flag when you can just set it in > /usr/share/ghostscript/7.07/lib/gs_init.ps In which case I would need to (remember to) edit it every time gs was re-emerged > or setting a default option in the env var GS_OPTIONS. Hmm. Yes, I'd forgotten that one. My apologies.
Ok, you can now close the bug :-)
(In reply to comment #3) > Ok, you can now close the bug :-) OK. Done. Sorry to waste your time.
I used a good deal of time today figuring out why my output looked wrong. It was of course because paper size wasn't set to A4. For many users it's anoying to have to read through the documentation of every text procesing tool, to figure out how to set A4 papersize. Couldn't there be made a way to set this a central place in gentoo. Then all tools with these issues could adjust themselves on install according to this. For instance ghostscript could set the appropriate option in GS_OPTIONS in some /etc/env.d/ file.
You mention that GS_OPTIONS should be used to set the paper size. Can you please help me figure out what to put in the variable?
(In reply to comment #6) > You mention that GS_OPTIONS should be used to set the paper size. > Can you please help me figure out what to put in the variable? > man gs: ENVIRONMENT GS_OPTIONS String of options to be processed before the command line options example: GS_OPTIONS='-sPAPERSIZE=a4' for other known paper size, refer to man gs.