home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / ghostscr / bug / 1324 < prev    next >
Encoding:
Text File  |  1992-12-26  |  1.7 KB  |  60 lines

  1. Newsgroups: gnu.ghostscript.bug
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ivory.bgu.ac.il!ioffe
  3. From: ioffe@ivory.bgu.ac.il (Ioffe Nicolay)
  4. Subject: Re: /undefined in Top
  5. Message-ID: <1992Dec25.234959.7774@ramon.bgu.ac.il>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: Ben-Gurion University, Beer Sheva, Israel
  8. References: <9212232018.0.UUL1.3#5127@aladdin.com>
  9. Distribution: gnu
  10. Date: Fri, 25 Dec 1992 23:49:59 GMT
  11. Approved: bug-ghostscript@prep.ai.mit.edu
  12. Lines: 46
  13.  
  14. ghost@aladdin.COM (L. Peter Deutsch) writes:
  15. : Re <9212240258.AA01126@raisin-nut>
  16. : <1992Dec23.143858.29137@ramon.bgu.ac.il>:
  17. : > Here is the file I had problem with.
  18. : > Ghostscript wrote me :
  19. : > /undefined in Top
  20. : The problem is in this section of the file:
  21. : > /Top systemdict /languagelevel known
  22. : >         {systemdict /languagelevel get 2 eq}{false} ifelse {
  23. : >     currentpagedevice /PageSize get 1 get Margin sub
  24. : >     } {
  25. : >     {statusdict /paperheight get} stopped {11.0 72 mul} if Margin sub
  26. : >     } ifelse
  27. : >     def
  28. : If the file is not running in a Level 2 system, and statusdict does
  29. : not contain an entry for paperheight, the `get' on the 5th line will
  30. : cause an error.  When control returns to the `stopped', the o-stack
  31. : will still contain statusdict and /paperheight.  As a result, the
  32. : `def' winds up defining paperheight, not Top.
  33. : This is a bug in the file, not in Ghostscript.
  34. : L. Peter Deutsch :: Aladdin Enterprises :: P.O. box 60264, Palo Alto, CA 94306
  35. : ghost@aladdin.com, ...decwrl!aladdin!ghost ; voice 415-322-0103 ; fax 322-1734
  36. :         "Implementation is the sincerest form of flattery."
  37.  
  38.  
  39.  
  40. But why then it passes /Right ?
  41.  
  42. There file uses /paperwidth!
  43.  
  44. And why it works then if I put all these deffinitions in gs_statd.ps?
  45.  
  46. Nick
  47.  
  48.  
  49.  
  50.