From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Anton Ertl Newsgroups: gmane.emacs.bugs Subject: bug#37633: Column part interpreted wrong in compilation mode Date: Mon, 7 Oct 2019 09:09:08 +0200 Message-ID: <20191007070908.gul34vy2rz5lkl4f@a4.complang.tuwien.ac.at> References: <2282407.NbK4RY0fEn@daiyu> <83zhif2n0q.fsf@gnu.org> <83y2xz2mmi.fsf@gnu.org> <20191006123112.ej2heyy2qudfcvep@a4.complang.tuwien.ac.at> <831rvp3glu.fsf@gnu.org> Reply-To: anton@mips.complang.tuwien.ac.at Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="257111"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: NeoMutt/20170113 (1.7.2) Cc: anton@mips.complang.tuwien.ac.at, bernd@net2o.de, 37633@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 07 09:10:14 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 1iHN9o-0014jY-Mq for geb-bug-gnu-emacs@m.gmane.org; Mon, 07 Oct 2019 09:10:12 +0200 Original-Received: from localhost ([::1]:41112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHN9m-0008Gh-U6 for geb-bug-gnu-emacs@m.gmane.org; Mon, 07 Oct 2019 03:10:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39374) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHN9f-0008Gb-Ok for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2019 03:10:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iHN9e-0003oh-SJ for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2019 03:10:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38500) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iHN9e-0003oc-PX for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2019 03:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iHN9e-0006Gw-Gn for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2019 03:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Anton Ertl Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Oct 2019 07:10: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.157043215324047 (code B ref 37633); Mon, 07 Oct 2019 07:10:02 +0000 Original-Received: (at 37633) by debbugs.gnu.org; 7 Oct 2019 07:09:13 +0000 Original-Received: from localhost ([127.0.0.1]:47321 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHN8r-0006Fn-GE for submit@debbugs.gnu.org; Mon, 07 Oct 2019 03:09:13 -0400 Original-Received: from a4.complang.tuwien.ac.at ([128.130.173.65]:58756) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHN8o-0006Fd-M2 for 37633@debbugs.gnu.org; Mon, 07 Oct 2019 03:09:11 -0400 Original-Received: from anton by a4 with local (Exim 4.89) (envelope-from ) id 1iHN8m-0004CQ-As; Mon, 07 Oct 2019 09:09:08 +0200 Content-Disposition: inline In-Reply-To: <831rvp3glu.fsf@gnu.org> 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:168514 Archived-At: On Sun, Oct 06, 2019 at 08:53:49PM +0300, Eli Zaretskii wrote: > > 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. The same bytes have the same number of bytes, whether you interpret them as having one encoding or some other encoding. How many characters these bytes have depends on the encoding. Of course, if you have transcoded the bytes into some other encoding, you have to transcode them back for counting. So for Emacs this means converting back to the input encoding, and then counting (i.e., what you describe as TRT (which I guess means The Right Thing)). - anton