]> git.donarmstrong.com Git - lilypond.git/commit - scm/framework-ps.scm
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)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Sat, 30 Apr 2011 16:27:50 +0000 (18:27 +0200)
commitfa5f3e51c87a5bf90f0bfac5b957ae26403e5c83
tree89296a323295b254ac830c1efe3982478cb1d851
parent10baab4f3430467ceed219277be49a294f29ecae
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