Hi everybody!

Could someone please explain why we use ghostscript in  -dNOSAFER
mode if the windows platform is used?

   (define-public (postscript->pdf paper-width paper-height
                                    base-name tmp-name is-eps)
      (let* ((pdf-name (string-append base-name ".pdf"))
             (*unspecified* (if #f #f))
             (cmd
              (remove (lambda (x) (eq? x *unspecified*))
                      (list
                       (search-gs)
                       (if (ly:get-option 'verbose) *unspecified* "-q")
                       (if (or (ly:get-option 'gs-load-fonts)
                               (ly:get-option 'gs-load-lily-fonts)
                               (eq? PLATFORM 'windows))
                           "-dNOSAFER"
                           "-dSAFER")

Doesn't that mean that -dsafe is totaly broken on windows as it prevents
exploiting scheme but allows to use ghostscript as an unfriendly tool?!

Knut
_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to