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:39:00 +0300 Message-ID: <83pp5r3iij.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> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1432363171 31799 80.91.229.3 (23 May 2015 06:39:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 May 2015 06:39:31 +0000 (UTC) Cc: pot@gnu.org, eggert@cs.ucla.edu, emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 23 08:39:22 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 1Yw35d-0007Vv-Dc for ged-emacs-devel@m.gmane.org; Sat, 23 May 2015 08:39:21 +0200 Original-Received: from localhost ([::1]:36950 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yw35c-00086D-Q2 for ged-emacs-devel@m.gmane.org; Sat, 23 May 2015 02:39:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46710) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yw35O-000867-AD for emacs-devel@gnu.org; Sat, 23 May 2015 02:39:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yw35K-0005HK-Lz for emacs-devel@gnu.org; Sat, 23 May 2015 02:39:06 -0400 Original-Received: from mtaout27.012.net.il ([80.179.55.183]:43153) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yw35K-0005HE-EC; Sat, 23 May 2015 02:39:02 -0400 Original-Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NOS00J00I3X8900@mtaout27.012.net.il>; Sat, 23 May 2015 09:34:12 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NOS00I4OI90KY10@mtaout27.012.net.il>; Sat, 23 May 2015 09:34:12 +0300 (IDT) In-reply-to: <87bnhcnym6.fsf@igel.home> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.183 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:186751 Archived-At: > From: Andreas Schwab > Cc: pot@gnu.org, eggert@cs.ucla.edu, emacs-devel@gnu.org > Date: Fri, 22 May 2015 22:30:57 +0200 > > Eli Zaretskii writes: > > > If by "file offsets" you mean counting bytes in the file, > > Of course! > > > 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. OK, then how do you go from "byte offsets will be wrong" and "Emacs will have to cope" to this: > ??? It's exactly the counter argument. The indices in the tag file must > be file offsets, everything else will lead to wrong offsets. This seems to say that such byte offsets are the only "right" ones. But we have just established that all of the byte offsets discussed here, including the ones currently produced by etags, are wrong in some sense. What makes this "wrong" be "the only right one"?