bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lilypond doesn't like BOM if a name is the first thing in the docume


From: Mats Bengtsson
Subject: Re: Lilypond doesn't like BOM if a name is the first thing in the document.
Date: Thu, 13 Dec 2007 10:52:11 +0100
User-agent: Thunderbird 2.0.0.5 (X11/20070716)

Thanks for the bug report. The bug has been fixed in the source code repository
and should appear in next development release.

  /Mats

Decade wrote:
I'm not top posting.

(This doesn't work so well without file attachments.)

stuff={
  a
}
\score {
  \new Staff \stuff
}
\version "2.10.20"

If you save that in Microsoft Notepad's default encoding, it works. But if you save it in UTF-8 (because lyrics are in foreign languages), Notepad inserts a BOM, and Lilypond fails to parse it. The beginning identifier "stuff" becomes $EFBBBF"stuff" and the later reference can't find it:
error: unknown escaped string: `\stuff'

If the document starts with a special character, such as '\' or CRLF, then the Unicode BOF doesn't cause problems.



_______________________________________________
bug-lilypond mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-lilypond

--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

[Prev in Thread] Current Thread [Next in Thread]