🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: gnu.ghostscript.bug
1 messages
1 total messages Started by Nick Holloway Thu, 10 Sep 1992 17:26
Problems with restore (and also dictionaries)
#363
Author: Nick Holloway
Date: Thu, 10 Sep 1992 17:26
27 lines
1518 bytes
I have just discovered a problem with Ghostscript 2.5.  It was triggered
by the code generated by psraster.  In this it reclaims VM by performing a
'restore save' in the procedure used to decode the image data.  The actual
code is of the following form:

    [...] {restore save GetImageRow} save 6 1 roll image
    [...]
    restore

This works fine on the printers, but causes Ghostscript to complain:

    Error: /invalidrestore in --restore--
    Operand stack:
	-savetype-

The following is a small fragment that will also demonstrate the error:

    save 10 { (Hello, World!\n) print restore save } repeat restore

Another (percieved) mis-feature of Ghostscript is the way it will
automatically expand dictionaries.  This recently lead to much head
scratching, since we could preview the file, but it would not print.
Is there a way of stopping the dictionaries being expanded?

--
Nick Holloway |  `O O'  | alfie@dcs.warwick.ac.uk, alfie@warwick.UUCP,
[aka `Alfie'] | // ^ \\ | ..!uunet!mcsun!uknet!warwick!alfie
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