]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix #672
authorJohn Mandereau <john.mandereau@gmail.com>
Tue, 9 Sep 2008 08:36:41 +0000 (10:36 +0200)
committerJohn Mandereau <john.mandereau@gmail.com>
Tue, 9 Sep 2008 08:36:41 +0000 (10:36 +0200)
Reported by Renaud Flavigny.

The output directory name sometimes contain spaces or other characters
that should be escaped, but lilypond-book does not escape characters
neither quote the snippets file name, which makes lilypond crash.

The bug can be reproduced by writing an input file test.tex in a
directory path that contains spaces and running "lilypond-book
--output=out test.tex".

scripts/lilypond-book.py

index 6f0c75193b995ef4baad8838303a75a89c0d1d6d..09fecd15400b0b348fa05f4ceacfe57d9bf7d219 100644 (file)
@@ -1601,7 +1601,7 @@ def process_snippets (cmd, snippets,
                          'snippet-names-%d.ly' % checksum)
     file (name, 'wb').write (contents)
 
-    system_in_directory (' '.join ([cmd, name]),
+    system_in_directory (' '.join ([cmd, ly.mkarg (name)]),
                          lily_output_dir)