-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am Donnerstag, 20. August 2009 11:37:55 schrieb Patrick McCarty: > On 2009-08-20, Reinhold Kainhofer wrote: > > Am Donnerstag, 20. August 2009 10:48:09 schrieb Reinhold Kainhofer: > > > Yes, I think that's the case here. It seems that gs is well able > > > to handle 16- bit unicode characters, but it needs the correct > > > file name. > > > > > > A little more playing around shows this: Calling "lilypond --png > > > ĉacâ.ly" prints an error message: Error: /undefinedfilename in > > > (\304\\x89ac\303\242.ps) As you can see, the high-byte character > > > is written as \x89ac, however, the backslash is escaped, which of > > > course makes it an invalid UTF-8 character considering the \304 > > > before... > > > > [...] > > > > > So, basically, lilypond messes up the proper UTF-8 encoding of the > > > external utility calls. > > > > Hmm, it seems that it is actually guile's fault: > > guile> (simple-format #f "~asdfasdf" "ĉâ") > > "�\x89âsdfasdf" > > guile> (simple-format #f "~a b âĉ" "ĉâ") > > "�\x89â b â�\x89" > > guile> "âĉ" > > "â�\x89" > > > > To me this seems like guile is not able to properly handle wide UTF-8 > > characters properly and messes up the wide characters. > > I've been following the Guile mailing lists recently, and it sounds > like UTF-8 handling will be improved in the next stable release. > > In the meantime, does this patch work?
Yes, using ly:format instead of simple-format works here. Cheers, Reinhold - -- - ------------------------------------------------------------------ Reinhold Kainhofer, reinh...@kainhofer.com, http://reinhold.kainhofer.com/ * Financial & Actuarial Math., Vienna Univ. of Technology, Austria * http://www.fam.tuwien.ac.at/, DVR: 0005886 * LilyPond, Music typesetting, http://www.lilypond.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQFKjRvJTqjEwhXvPN0RAjAoAJ9Bhnh6ik5cxtv9wsdHPGRoOCSF+gCfWH3Z 0C+7NTi60/TAh3dzkw0MRq4= =o4ip -----END PGP SIGNATURE----- _______________________________________________ bug-lilypond mailing list bug-lilypond@gnu.org http://lists.gnu.org/mailman/listinfo/bug-lilypond