|
From: | Paul Eggert |
Subject: | Re: etags test is broken on MS-Windows |
Date: | Fri, 22 May 2015 14:26:27 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
On 05/22/2015 01:30 PM, Andreas Schwab wrote:
then those will also be wrong after decoding non-ASCII characters, >unless the file was encoded in UTF-8 to begin with, right?Yes, of course. Emacs will have to cope.
Andreas is right, as usual. TAGS should contain hard info about file contents, not guesswork about what Emacs's internal encoding might be, as the latter depends on user input. If the input file is UTF-8 and isn't munged by CRLF removal etc., file byte offsets should equal buffer byte offsets. If not, it's up to Emacs to map the hard info to its internal representation.
[Prev in Thread] | Current Thread | [Next in Thread] |