Bug 603689 - save restore fails from command line
Summary: save restore fails from command line
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PS Interpreter (show other bugs)
Version: master
Hardware: All All
: P1 normal
Assignee: Ralph Giles
Depends on:
Reported: 2002-09-02 13:39 UTC by Alex Cherepanov
Modified: 2008-12-19 08:31 UTC (History)
0 users

See Also:
Word Size: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Alex Cherepanov 2002-09-02 13:39:08 UTC
Originally reported by: alexcher@users.sourceforge.net
save and restore fail when typed from command line.
This problem exists in all versions back to v. 5.50

AFPL Ghostscript CVS PRE-RELEASE 7.23 (2002-08-06)
Copyright (C) 2002 artofcode LLC, Benicia, CA.  All
rights reserved.
This software comes with NO WARRANTY: see the file
PUBLIC for details.
Error: /invalidrestore in --restore--
Operand stack:
   --nostringval--   --nostringval--
Execution stack:
   %interp_exit   .runexec2   --nostringval--  
--nostringval--   --nostringval--   2   %stopped_push 
  --nostringval--   %loop_continue   3   3  
%oparray_pop   --nostringval--   --nostringval--  
false   1   %stopped_pus
h   .runexec2   --nostringval--   --nostringval--  
--nostringval--   2   %stopped_push   --nostringval-- 
 1   3   %opa
rray_pop   --nostringval--   1   3   %oparray_pop  
--nostringval--   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1034/1123(ro)(G)--   --dict:0/20(G)--  
Current allocation mode is local
Last OS error: No such file or directory
Current file position is 8
Comment 1 Russell Lang 2002-09-03 22:25:24 UTC
Comment originally by ghostgum@users.sourceforge.net
Logged In: YES 

This is only a problem if they are typed on separate lines.
Comment 2 Ray Johnston 2002-09-04 10:05:30 UTC
Comment originally by rayjj@users.sourceforge.net
Logged In: YES 

This is a long standing problem, and has been
a low priority.

The problem is that the string that is used
for command line input by the 'executive'
processing still exists when the 'restore'
happens, but this string is brought into
existence after the 'save' operation, thus
an invalidrestore.
Comment 3 Jack Moffitt 2002-10-24 10:58:03 UTC
Comment originally by jackiem@users.sourceforge.net
Logged In: YES 

We need to move this to Issues.htm.
Comment 4 Henry Stiles 2008-10-27 08:31:44 UTC
This bug was modified accidentally removing the customer field.  I'll fix it as
soon as I figure out how to recover the old customer number...
Comment 5 Alex Cherepanov 2008-10-27 20:46:32 UTC
This bug was fixed by the Ray's commit for rev. 6886 and works in released
versions since v. 8.56.