[gs-bugs] [Bug 691505] New: writeobject writes tokens GS can't read back in

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Wed Jul 28 00:09:31 UTC 2010


           Summary: writeobject writes tokens GS can't read back in
           Product: Ghostscript
           Version: 8.71
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P4
         Component: PS Interpreter
        AssignedTo: alex.cherepanov at artifex.com
        ReportedBy: marek at xivilization.net
         QAContact: gs-bugs at ghostscript.com
   Estimated Hours: 0.0


I write some data to a file:

(foo.ps) (w) file [ 1 2 3 ] 42 writeobject

When trying to read back the saved data using

$ gs foo.ps

I get

/syntaxerror in (bin obj seq, type=129, elements=1, size=36, non-zero unused

The same happens when trying to use

(foo.ps) (r) file token

Changing the object format does not change anything in this behaviour.

I am trying to embed Ghostscript into my own program, but I need bi-directional
communication between the interpreter and my own program, so I thought I can
serialize the stack somehow.

Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the gs-bugs mailing list