From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: etags test is broken on MS-Windows Date: Sat, 23 May 2015 09:40:47 +0300 Message-ID: <83oalb3ifk.fsf@gnu.org> References: <83y4kmdjmj.fsf@gnu.org> <555A8E62.7060700@cs.ucla.edu> <83h9r8egen.fsf@gnu.org> <83pp5t6gex.fsf@gnu.org> <555E09AE.9070208@cs.ucla.edu> <83lhgh6fb2.fsf@gnu.org> <555E2C10.4010501@cs.ucla.edu> <83h9r5670s.fsf@gnu.org> <555E6A15.8010404@cs.ucla.edu> <831ti957wp.fsf@gnu.org> <83pp5s4uml.fsf@gnu.org> <555F740D.4030304@cs.ucla.edu> <837fs04egz.fsf@gnu.org> <87oalco1mg.fsf@igel.home> <83y4kg2yjc.fsf@gnu.org> <83wq002yct.fsf@gnu.org> <87fv6oo0h3.fsf@igel.home> <83vbfk2x9l.fsf@gnu.org> <87bnhcnym6.fsf@igel.home> <555F9F03.7050506@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1432363277 705 80.91.229.3 (23 May 2015 06:41:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 May 2015 06:41:17 +0000 (UTC) Cc: pot@gnu.org, schwab@linux-m68k.org, emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 23 08:41:08 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Yw37L-0008Vu-Vo for ged-emacs-devel@m.gmane.org; Sat, 23 May 2015 08:41:08 +0200 Original-Received: from localhost ([::1]:36954 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yw37L-0000Bh-8U for ged-emacs-devel@m.gmane.org; Sat, 23 May 2015 02:41:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47398) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yw376-0000Ba-DO for emacs-devel@gnu.org; Sat, 23 May 2015 02:40:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yw372-00066u-Mr for emacs-devel@gnu.org; Sat, 23 May 2015 02:40:52 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:42932) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yw372-00066g-BO; Sat, 23 May 2015 02:40:48 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NOS00B00I8BNA00@a-mtaout23.012.net.il>; Sat, 23 May 2015 09:40:47 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NOS00BFHIJYNL00@a-mtaout23.012.net.il>; Sat, 23 May 2015 09:40:47 +0300 (IDT) In-reply-to: <555F9F03.7050506@cs.ucla.edu> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:186752 Archived-At: > Date: Fri, 22 May 2015 14:26:27 -0700 > From: Paul Eggert > CC: pot@gnu.org, emacs-devel@gnu.org > > 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. I don't see how this is better than what we have already, but I don't mind such a change.