From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: etags test is broken on MS-Windows Date: Fri, 22 May 2015 21:41:15 +0200 Message-ID: <87k2w0o0x0.fsf@igel.home> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1432323706 17115 80.91.229.3 (22 May 2015 19:41:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 May 2015 19:41:46 +0000 (UTC) Cc: pot@gnu.org, eggert@cs.ucla.edu, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 22 21:41:37 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 1Yvsp6-0006dn-Qe for ged-emacs-devel@m.gmane.org; Fri, 22 May 2015 21:41:36 +0200 Original-Received: from localhost ([::1]:35583 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yvsp6-0007lL-0Z for ged-emacs-devel@m.gmane.org; Fri, 22 May 2015 15:41:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yvsot-0007l1-Tp for emacs-devel@gnu.org; Fri, 22 May 2015 15:41:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yvsos-0000mo-V0 for emacs-devel@gnu.org; Fri, 22 May 2015 15:41:23 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.9]:37905) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yvsoo-0000mP-7l; Fri, 22 May 2015 15:41:18 -0400 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3ltdV45xR2z3hj83; Fri, 22 May 2015 21:41:16 +0200 (CEST) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3ltdV416GQzvh2J; Fri, 22 May 2015 21:41:16 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id TTbdTRpaODmF; Fri, 22 May 2015 21:41:15 +0200 (CEST) X-Auth-Info: ZRzq+5gaRrOZX6nCjX4uDp9PUzeGEBmMXzwIOSONtKGSCJX8MZAKdZ5bQ/UxPnSw Original-Received: from igel.home (ppp-93-104-62-249.dynamic.mnet-online.de [93.104.62.249]) by mail.mnet-online.de (Postfix) with ESMTPA; Fri, 22 May 2015 21:41:15 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 1000) id 139002C359D; Fri, 22 May 2015 21:41:15 +0200 (CEST) X-Yow: Are we THERE yet?! In-Reply-To: <83y4kg2yjc.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 22 May 2015 22:38:15 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 212.18.0.9 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:186741 Archived-At: Eli Zaretskii writes: >> From: Andreas Schwab >> Cc: Paul Eggert , pot@gnu.org, emacs-devel@gnu.org >> Date: Fri, 22 May 2015 21:25:59 +0200 >> >> Eli Zaretskii 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. See above. How does etags know how many bytes the characters will count in an Emacs buffer? Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."