2012/7/9 David Kastrup <d...@gnu.org>: > David Nalesnik <david.nales...@gmail.com> writes: > >> On Sun, Jul 8, 2012 at 8:00 AM, David Kastrup <d...@gnu.org> wrote: >> >> >> Thomas Morley <thomasmorle...@googlemail.com> writes: >> >> > 2012/7/8 David Nalesnik <david.nales...@gmail.com>: >> >> Hi Harm, >> >> >> >>> I managed to drop about 300 lines, reducing >> >>> it to a quarter of the original. >> >> >> >> >> >> Unfortunately, I'm getting "Invalid UTF-8 string..." warnings >> when I run >> >> your revised file. (I don't with the original...) >> >> >> >> -David >> > >> > Hi David, >> > >> > are you sure? >> > I tested it with "2.15.39", "2.15.40" and "2.15.42" without any >> problem. >> >> >> I also had no problem, so I would assume that something went wrong >> with >> saving the attachment. >> >> >> Ah, OK... Unfortunately, I've have no idea what is happening to the >> attachment, but I get the same errors whether I run the file with >> LilyPondTool,. Frescobaldi, or on the command line. Possibly it has >> something to do with Windows XP; I don't know. The file works without >> a hitch within LilyDev. > > Then it is no problem with the attachment, and indeed, the error message > from LilyPond is > > "non-UTF-8 input" > > and not "Invalid UTF-8 string". Likely a Pango error message. So it is > probable that the regexp "." matches just single bytes in your case. > The interesting question is whether this is due to a different version > of the regex matching library, or due to a different locale. > > Here is how the character set in my system declares itself: > > out/bin/lilypond scheme-sandbox > GNU LilyPond 2.15.42 > Processing > `/usr/local/tmp/lilypond/out/share/lilypond/current/ly/scheme-sandbox.ly' > Parsing... > guile> (setlocale LC_CTYPE) > "en_US.UTF-8" > guile> > > > -- > David Kastrup >
An observation: Setting export LANG=en_US and compiling the file gives: GNU LilyPond 2.15.42 Processing `utf-8-strings-rev-03.ly' Parsing... (process:10496): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text() (process:10496): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text() ... _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel