bug-lilypond
[Top][All Lists]
Advanced

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

Re: Lilypond's error column printer confuses bytes and characters


From: Patrick McCarty
Subject: Re: Lilypond's error column printer confuses bytes and characters
Date: Thu, 22 Oct 2009 03:10:00 -0700
User-agent: Mutt/1.5.20 (2009-06-14)

On 2009-10-18, David Kastrup wrote:
> 
> GNU LilyPond 2.13.4
> Processing `bad.ly'
> Parsing...
> bad.ly:4:16: error: syntax error, unexpected MUSIC_IDENTIFIER
>      MÃÃÃ A\342\231
>                 \257 Bâ \break
> error: failed files: "bad.ly"
> 
> Apparently, the error column is being tracked by counting characters,
> but is displayed by counting bytes.  The indicator appears too early
> because of that (which caused me to look for the wrong bug in an input
> file of mine).

This patch seems to correct the issue, but I don't know if it's the
correct fix (or if there are any side effects I'm unaware of).

I get this output:

  GNU LilyPond 2.13.6
  Processing `bad.ly'
  Parsing...
  bad.ly:4:16: error: syntax error, unexpected MUSIC_IDENTIFIER
       Määä A♯ B♭ 
                  \break
  error: failed files: "bad.ly"


If the patch looks okay, I'll add a commit summary for completeness.

Thanks,
Patrick

Attachment: 0001-Fix-error-message-output-alignment-for-wide-chars.patch
Description: Text document


reply via email to

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