bug-gv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gv] error opening files on other directories


From: jemarch
Subject: Re: [Bug-gv] error opening files on other directories
Date: Mon, 15 Nov 2004 14:57:24 +0100

     
    > Anyway, note that pdf2dsc sets .setsafe if the interpreter was started
    > using -DDELAYSAFER instead of -DSAFE
    > 
    > So this is the solution: start the whole interpreter with -DDELAYSAFER
    > rather than with -DSAFE
    > 
    > DELAYSAFER is new with GPL gs 8 versions.
    > 
    > I find this solution ideal.
    
    Me too, but for ps-files this isn't what we want, because .setsafe is
    never called. For pdf files it's perfectly fine to use DELAYSAFER since
    .setsafe is called.

True.

Consider this: we always call the gs interpreter with:

    gs -DSAFER -DDELAYSAFER

(the arguments passed to gv are controlled by resources on GV, by the way)

so:
 
    - old gs's will happily ignore DELAYSAFER setting the safe state.
    - With new gs the DELAYSAFER takes precedence over SAFER (tested).

and regarding PS files, gv can omit the -DDELAYSAFER option when not
reading a PDF.


So i think the solution is complete.

What do you think?






reply via email to

[Prev in Thread] Current Thread [Next in Thread]