]> git.donarmstrong.com Git - lilypond.git/commit - scm/backend-library.scm
Use our own ~s ly:format placeholder, since guile is broken with wide chars
authorReinhold Kainhofer <reinhold@kainhofer.com>
Thu, 20 Aug 2009 09:54:20 +0000 (11:54 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Sat, 29 Aug 2009 19:44:59 +0000 (21:44 +0200)
commit2c8b5c7dcb118ad985c425433623bbe5207472c3
treed94025fb57f39ac8b638d978f417d54b449d1f56
parenta1fa0e63b1bf2c61a9c19a33b7034989fb3fac05
Use our own ~s ly:format placeholder, since guile is broken with wide chars

We need our own ~S format placeholder to escape quotes, so use
lilypond's string formating to make wide utf-8 chars work in filenames

Guile seems unable to handle wide characters, so we mustn't use
simple-format or format, because that will break with non-ANSI characters
(char code > 255). Instead, Implement our own ~S placeholder, that
wraps the string in double quotes and escapes backslashes, double
quotes, percent and dollar signs.

Use this format placeholder to generate the proper cmd line args
for our calls to gs.
lily/general-scheme.cc
scm/backend-library.scm
scm/ps-to-png.scm