Thread View: gnu.ghostscript.bug
2 messages
2 total messages
Started by L. Peter Deutsch
Thu, 24 Dec 1992 03:18
/undefined in Top
Author: L. Peter Deutsch
Date: Thu, 24 Dec 1992 03:18
Date: Thu, 24 Dec 1992 03:18
28 lines
1527 bytes
1527 bytes
Re <9212240258.AA01126@raisin-nut>
<1992Dec23.143858.29137@ramon.bgu.ac.il>:
> Here is the file I had problem with.
> Ghostscript wrote me :
> /undefined in Top
The problem is in this section of the file:
> /Top systemdict /languagelevel known
> {systemdict /languagelevel get 2 eq}{false} ifelse {
> currentpagedevice /PageSize get 1 get Margin sub
> } {
> {statusdict /paperheight get} stopped {11.0 72 mul} if Margin sub
> } ifelse
> def
If the file is not running in a Level 2 system, and statusdict does
not contain an entry for paperheight, the `get' on the 5th line will
cause an error. When control returns to the `stopped', the o-stack
will still contain statusdict and /paperheight. As a result, the
`def' winds up defining paperheight, not Top.
This is a bug in the file, not in Ghostscript.
L. Peter Deutsch :: Aladdin Enterprises :: P.O. box 60264, Palo Alto, CA 94306
ghost@aladdin.com, ...decwrl!aladdin!ghost ; voice 415-322-0103 ; fax 322-1734
"Implementation is the sincerest form of flattery."
Re: /undefined in Top
Author: Ioffe Nicolay
Date: Fri, 25 Dec 1992 23:49
Date: Fri, 25 Dec 1992 23:49
43 lines
1840 bytes
1840 bytes
ghost@aladdin.COM (L. Peter Deutsch) writes:
: Re <9212240258.AA01126@raisin-nut>
: <1992Dec23.143858.29137@ramon.bgu.ac.il>:
:
: > Here is the file I had problem with.
: > Ghostscript wrote me :
: > /undefined in Top
:
: The problem is in this section of the file:
:
: > /Top systemdict /languagelevel known
: > {systemdict /languagelevel get 2 eq}{false} ifelse {
: > currentpagedevice /PageSize get 1 get Margin sub
: > } {
: > {statusdict /paperheight get} stopped {11.0 72 mul} if Margin sub
: > } ifelse
: > def
:
: If the file is not running in a Level 2 system, and statusdict does
: not contain an entry for paperheight, the `get' on the 5th line will
: cause an error. When control returns to the `stopped', the o-stack
: will still contain statusdict and /paperheight. As a result, the
: `def' winds up defining paperheight, not Top.
:
: This is a bug in the file, not in Ghostscript.
:
: L. Peter Deutsch :: Aladdin Enterprises :: P.O. box 60264, Palo Alto, CA 94306
: ghost@aladdin.com, ...decwrl!aladdin!ghost ; voice 415-322-0103 ; fax 322-1734
: "Implementation is the sincerest form of flattery."
:
:
:
:
But why then it passes /Right ?
There file uses /paperwidth!
And why it works then if I put all these deffinitions in gs_statd.ps?
Nick
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads