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

Bug#4058: etc/papersize doesn't allow spaces



Erick Branderhorst writes:
 > 
 > Package: libpaper, gs
 > Version: 0.2-1, 3.53-4
 > 
 > Oef what do I hate these errors. The "<" char indicates the EOL char.
 > 
 > # cat /etc/papersize
 > A4 <
 > # gs -h
 > Warning: unknown papersize in /etc/papersize
 > Aladdin Ghostscript 3.53 (1996-1-10)
 > [deleted]
 > 
 > # cat /etc/papersize
 > A4<
 > # gs -h
 > Aladdin Ghostscript 3.53 (1996-1-10)
 > [deleted]

What is the gs you use? Is it the shell script included with libpaper 0.2
or is it the gs from the gs package, which in turn calls gs-papersize (or
whatever if the name changed)? I think it may be the later but don't have
libpaper 0.2 handy (Joost, sorry if it's my fault...). Please tell me if
the gs you use depends on libpaper.

In any case, with the gs frontend included with libpaper 0.3
(in /usr/doc/examples/libpaper/gsfrontend.c), I have no problems:

marin21# cat /etc/papersize | sed 's/\(.*\)/>\1</'
>A4 <
marin22# gs -sDEVICE=bjc600
Aladdin Ghostscript 4.01 (1996-7-10)
Copyright (C) 1996 Aladdin Enterprises, Menlo Park, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
GS>currentpagedevice /PageSize get ==
[595.0 842.0]
GS>quit
marin23# 

If you want to use this frontend with the gs in 3.53, you must either
compile it as in

	gcc -O2 -DGS="gs-papersize" -o gs gsfrontend.c

or have the GS environment variable set to gs-papersize because the
default is ghostscript.

So I'd like to close this bug report for libpaper (either it's not
its fault or the latest version has no problem).

Because the bug report number is shared between gs and libpaper, is
it okay to close it for me?

Yves.



Reply to: