emacs-devel
[Top][All Lists]
Advanced

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

Re: etags test is broken on MS-Windows


From: Eli Zaretskii
Subject: Re: etags test is broken on MS-Windows
Date: Fri, 22 May 2015 22:42:10 +0300

> Date: Fri, 22 May 2015 22:38:15 +0300
> From: Eli Zaretskii <address@hidden>
> Cc: address@hidden, address@hidden, address@hidden
> 
> > From: Andreas Schwab <address@hidden>
> > Cc: Paul Eggert <address@hidden>,  address@hidden,  address@hidden
> > Date: Fri, 22 May 2015 21:25:59 +0200
> > 
> > Eli Zaretskii <address@hidden> writes:
> > 
> > > These byte counts are not file byte counts (if they were, then what
> > > you suggest would have been TRT).  They are buffer byte counts,
> > > i.e. etags needs to compute the byte counts that Emacs will see when
> > > the file is visited in an Emacs buffer.  So each CRLF EOL needs to be
> > > counted as 1 byte, not 2.
> > 
> > What do you do about non-ASCII characters?
> 
> Etags counts bytes, not characters, so it doesn't matter.  Or maybe I
> misunderstand the question.

Or maybe you mean the use case where a Latin-1 file is read into an
Emacs buffer, and each non-ASCII character is expanded into a UTF-8
sequence.  Indeed, that will make the byte counts inaccurate (and
etags.el will have to compensate by searching around the specified
place).  One more reason not to change anything, I guess.



reply via email to

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