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

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