From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#37633: Column part interpreted wrong in compilation mode Date: Sun, 06 Oct 2019 20:53:49 +0300 Message-ID: <831rvp3glu.fsf@gnu.org> References: <2282407.NbK4RY0fEn@daiyu> <83zhif2n0q.fsf@gnu.org> <83y2xz2mmi.fsf@gnu.org> <20191006123112.ej2heyy2qudfcvep@a4.complang.tuwien.ac.at> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="70771"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 37633@debbugs.gnu.org, bernd@net2o.de To: anton@mips.complang.tuwien.ac.at Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 06 19:55:21 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iHAka-000ICI-EN for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Oct 2019 19:55:20 +0200 Original-Received: from localhost ([::1]:36120 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHAkY-00028g-Qk for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Oct 2019 13:55:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41116) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHAkL-00028O-8n for bug-gnu-emacs@gnu.org; Sun, 06 Oct 2019 13:55:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iHAkJ-0003mn-Ag for bug-gnu-emacs@gnu.org; Sun, 06 Oct 2019 13:55:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37999) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iHAkI-0003mH-68 for bug-gnu-emacs@gnu.org; Sun, 06 Oct 2019 13:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iHAkI-0000Hb-2y for bug-gnu-emacs@gnu.org; Sun, 06 Oct 2019 13:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Oct 2019 17:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37633 X-GNU-PR-Package: emacs Original-Received: via spool by 37633-submit@debbugs.gnu.org id=B37633.15703844611024 (code B ref 37633); Sun, 06 Oct 2019 17:55:02 +0000 Original-Received: (at 37633) by debbugs.gnu.org; 6 Oct 2019 17:54:21 +0000 Original-Received: from localhost ([127.0.0.1]:46820 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHAjc-0000GQ-P4 for submit@debbugs.gnu.org; Sun, 06 Oct 2019 13:54:20 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60218) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHAja-0000GC-IY for 37633@debbugs.gnu.org; Sun, 06 Oct 2019 13:54:19 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:32891) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iHAjT-0003Um-V9; Sun, 06 Oct 2019 13:54:11 -0400 Original-Received: from [176.228.60.248] (port=3069 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iHAjR-0006ye-9G; Sun, 06 Oct 2019 13:54:11 -0400 In-reply-to: <20191006123112.ej2heyy2qudfcvep@a4.complang.tuwien.ac.at> (message from Anton Ertl on Sun, 6 Oct 2019 14:31:12 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:168444 Archived-At: > Date: Sun, 6 Oct 2019 14:31:12 +0200 > From: Anton Ertl > Cc: bernd@net2o.de, 37633@debbugs.gnu.org, anton@mips.complang.tuwien.ac.at > > On Sat, Oct 05, 2019 at 07:16:53PM +0300, Eli Zaretskii wrote: > > For byte offsets in external text we have bufferpos-to-filepos, but > > that requires us to know the encoding of the external text. We need > > to find a reasonable way of getting that. Suggestions and patches > > welcome. > > It's the encoding that you assumed for the text when you loaded the > file into the buffer. I'm not sure this is correct. You are saying that the compiler counts bytes in the original file, not in its output (which might be encoded differently). Do we have conclusive evidence that this is always true? > the byte position does not depend on the encoding (unlike the > character position). ??? The same Latin-1 characters encoded in ISO-8859-1 and in UTF-8 will yield a different number of bytes. So I don't think I understand how can you say the above.