Re: Invasive changes in preview-latex

[email protected] (Frank Küster)
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
David Kastrup <[email protected]> schrieb:

> In order to get rid of all the security bunk from switching between
> safe and unsafe mode, I have reorganized the GhostScript calls, and
> now file names of the generated previews are completely different, and
> lots of code has changed.  So please test-drive this change (no, the
> installation changes are not yet finished and checked in, I still have
> to do this).  I need to know when temporary files don't get removed
> and similar things.

The bug I reported to preview-latex this week is still there. The gs
trace is now, with gs-afpl:

gs -q -dSAFER -dDELAYSAFER -dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4 -sDEVICE\=png16m -r123.035x122.862
GS>/.preview-BP currentpagedevice/BeginPage get dup null eq {pop{pop}bind}if def <</BeginPage{currentpagedevice/PageSize get dup 0 get 1 ne exch 1 get 1 ne or{.preview-BP gsave 0.705882 0.933333 0.705882 setrgbcolor false setstrokeadjust 3 setlinewidth clippath strokepath matrix setmatrix true {2 index{newpath}if round exch round exch moveto pop false}{round exch round exch lineto}{curveto}{closepath}pathforall pop fill grestore }{pop}ifelse}bind/PageSize[1 1]>>setpagedevice/preview-do{[count 3 roll save]3 1 roll{setpagedevice}stopped{handleerror quit}if cvx systemdict/.runandhide known{.setsafe(AFPL Ghostscript)product ne{<<>>setpagedevice}if{.runandhide}}if stopped{handleerror quit}if count 1 ne{quit}if aload pop restore<</OutputFile(/dev/null)>>setpagedevice}bind def (_region_.prv/tmp2013Dou/preview.dsc)(r)file dup dup 0 setfileposition 425()/SubFileDecode filter cvx exec dup dup 425 setfileposition 50()/SubFileDecode filter cvx <</OutputFile(_region_.prv/tmp2013Dou/prev001.png)>>preview-do
AFPL Ghostscript 8.14: **** Could not open the file  .
Error: /invalidfileaccess in --.outputpage--
Operand stack:
   1   true
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   %loop_continue   2   3   %oparray_pop   --nostringval--   --nostringval--   false   1   %stopped_push   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   false   1   %stopped_push   1148   --nostringval--   %end_runandhide   --nostringval--   --nostringval--   --nostringval--   0   8   %oparray_pop   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1120/1686(ro)(G)--   --dict:0/20(G)--   --dict:77/200(L)--   --dict:104/127(ro)(G)--   --dict:238/347(ro)(G)--   --dict:19/24(L)--   --dict:4/6(L)--   --dict:23/31(L)--
Current allocation mode is local
Last OS error: 2

Preview-GhostScript finished

Regards, Frank

-- 
Frank Küster
Inst. f. Biochemie der Univ. Zürich
Debian Developer
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.