🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.ghostscript.bug
Article #528

Re: /undefined in Top

#528
From: Ioffe Nicolay
Date: Fri, 25 Dec 1992 23:49
43 lines
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
Technical Details
Message-ID: <1992Dec25.234959.7774@ramon.bgu.ac.il>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ivory.bgu.ac.il!ioffe
References: <9212232018.0.UUL1.3#5127@aladdin.com>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.ghostscript.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ivory.bgu.ac.il!ioffe
From: ioffe@ivory.bgu.ac.il (Ioffe Nicolay)
Subject: Re: /undefined in Top
Message-ID: <1992Dec25.234959.7774@ramon.bgu.ac.il>
Sender: gnulists@ai.mit.edu
Organization: Ben-Gurion University, Beer Sheva, Israel
References: <9212232018.0.UUL1.3#5127@aladdin.com>
Distribution: gnu
Date: Fri, 25 Dec 1992 23:49:59 GMT
Approved: bug-ghostscript@prep.ai.mit.edu
Lines: 46