bug-lilypond
[Top][All Lists]
Advanced

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

Re: Incorrect point-and-click URIs of files with non-ASCII content on Wi


From: Bertalan Fodor (LilyPondTool)
Subject: Re: Incorrect point-and-click URIs of files with non-ASCII content on Windows
Date: Mon, 02 Nov 2009 07:44:19 +0100
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Patrick McCarty wrote:
On 2009-11-01, Bertalan Fodor (LilyPondTool) wrote:
 3) UTF-8 characters.  In UTF-8 locales, terminals need to know about
 the byte offset, so I am using the character count to specify this
 offset.  An example would be "3:11:10".

The third case is arguably misleading, so maybe it should be changed
to use the "3:10:10" instead.  I am okay with either format.  If we
want to use "3:10:10" instead, then an additional parameter would be
needed to calculate the byte offset.
I hardly believe anyone or anything should care about byte offset.
LilyPond source files contain UTF-8 characters and not bytes! If a
terminal/editor doesn't support UTF-8 character streams, than the
terminal/editor should be fixed.

Well, in its current state, LilyPond is not using "UTF-8 character
streams" for error message output and point-click URIs, so this would
likely require a rewrite.

Do you have any suggestions about how to implement this in C++
(portably)?

-Patrick

Unfortunately no. But that should not be related to the bad character offset problem.


reply via email to

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