[Top][All Lists]

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

Percent signs in ghostscript output files should be duplicated

From: Pavel Roskin
Subject: Percent signs in ghostscript output files should be duplicated
Date: Sun, 23 Jun 2013 00:06:07 -0400
User-agent: Internet Messaging Program (IMP) H3 (4.1.4)

Percent signs in ghostscript output files (i.e. those after -sOutputFile) should be duplicated on the command line. It's not a format string bug as I initially suspected, it's a documented feature.


"Note: Since the % character is used to precede the page number format specification, in order to represent a file name that contains a %, double % characters must be used. For example for the file my%foo the OutputFile string needs to be my%%foo."

As it stands now, lilypond generates a postscript file but fails to produce a pdf if the original filename contains a percent sign.

$ lilypond Mazurek\ D%85browskiego.ly
GNU LilyPond 2.17.21
Processing `Mazurek D%85browskiego.ly'
Interpreting music...
Interpreting music...[8][16]
Preprocessing graphical objects...
MIDI output to `Mazurek D%85browskiego.midi'...
Fitting music on 1 page...
Drawing systems...
Layout output to `Mazurek D%85browskiego.ps'...
Converting to `./Mazurek D%85browskiego.pdf'...
warning: `(gs -q -dSAFER -dDEVICEWIDTHPOINTS=595.28 -dDEVICEHEIGHTPOINTS=841.89 -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -r1200 -sDEVICE=pdfwrite -sOutputFile=./Mazurek D%85browskiego.pdf -c.setpdfwrite -fMazurek D%85browskiego.ps)' failed (256)

fatal error: failed files: "Mazurek D%85browskiego.ly"

Percent signs in the input files (after -f) should not be duplicated.

Pavel Roskin

reply via email to

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