]> git.donarmstrong.com Git - lilypond.git/commit
Fix "make doc" error: Character set messup in pdf-scheme.cc
authorReinhold Kainhofer <reinhold@kainhofer.com>
Tue, 26 Apr 2011 10:11:33 +0000 (12:11 +0200)
committerCarl Sorensen <c_sorensen@byu.edu>
Sun, 1 May 2011 20:08:47 +0000 (14:08 -0600)
commitaa730216358403d7a94ff54195de9f4dfd27f402
treec8b3bea7f2f9257284f04c59077ba7467310c090
parentd6fcf3af68676af106c285919b15050c44ed36c8
Fix "make doc" error: Character set messup in pdf-scheme.cc

In "make doc", somehow the LANG env variable is cleared, so
glib returned charset=ANSI_X3.4-1968 for the input string. This would
disallow any accented characters in the input string.
However, we know that the input string is by definition always UTF-8,
so the solution is not to use the current locale, but hardcode UTF-8.

Once we switch to guile 2.0, we should use (sting->utf16 str 'big)
instead of manually converting the string in C.
lily/pdf-scheme.cc
scm/framework-ps.scm