[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gv] error opening files on other directories
From: |
Hans Fredrik Nordhaug |
Subject: |
Re: [Bug-gv] error opening files on other directories |
Date: |
Mon, 15 Nov 2004 13:12:33 +0100 |
User-agent: |
Mutt/1.4.1i |
On Mon, Nov 15, 2004 at 02:57:24PM +0100, address@hidden wrote:
>
> > 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)
I know.
> so:
>
> - old gs's will happily ignore DELAYSAFER setting the safe state.
> - With new gs the DELAYSAFER takes precedence over SAFER (tested).
(I tested this too - I would expected it to be the other way round.)
> and regarding PS files, gv can omit the -DDELAYSAFER option when not
> reading a PDF.
>
> So i think the solution is complete.
Yes, it should work.
I still don't understand why using "pdf2dsc %s %s" fails? It works on the
command line. (pdf2dsc is using "gs -DSAFER -DDELAYSAFER" by the way.)
Hans
- [Bug-gv] error opening files on other directories, jemarch, 2004/11/15
- Re: [Bug-gv] error opening files on other directories, Hans Fredrik Nordhaug, 2004/11/15
- Re: [Bug-gv] error opening files on other directories, jemarch, 2004/11/15
- Re: [Bug-gv] error opening files on other directories, jemarch, 2004/11/15
- Re: [Bug-gv] error opening files on other directories, jemarch, 2004/11/15
- Re: [Bug-gv] error opening files on other directories, Hans Fredrik Nordhaug, 2004/11/15
- Re: [Bug-gv] error opening files on other directories, jemarch, 2004/11/15
- Re: [Bug-gv] error opening files on other directories,
Hans Fredrik Nordhaug <=
- Re: [Bug-gv] error opening files on other directories, jemarch, 2004/11/15
[Bug-gv] error opening files on other directories, jemarch, 2004/11/15