]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/backend-library.scm
*** empty log message ***
[lilypond.git] / scm / backend-library.scm
index 5fef767162eaefaba4cbbfe854b4250598e4c765..74e53693594a9c836aed76fbd10a5768a2c3428a 100644 (file)
@@ -36,8 +36,8 @@
   (let* ((pdf-name (string-append (basename name ".ps") ".pdf" ))
         (cmd (format #f
                      "gs\
- -dCompatibilityLevel=1.4 \
  -dSAFER\
+ -dCompatibilityLevel=1.4 \
  -sPAPERSIZE=~a\
  -q\
  -dNOPAUSE\
                      (sanitize-command-option papersizename)
                      pdf-name
                      name)))
+    ;; The wrapper on windows cannot handle `=' signs,
+    ;; gs has a workaround with #.
+    (if (eq? PLATFORM 'windows)
+       (set! cmd (string-regex-substitute "=" "#" cmd)))
 
     (if (access? pdf-name W_OK)
        (delete-file pdf-name))