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: Sat, 05 Oct 2019 19:16:53 +0300 Message-ID: <83y2xz2mmi.fsf@gnu.org> References: <2282407.NbK4RY0fEn@daiyu> <83zhif2n0q.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="261162"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 37633@debbugs.gnu.org, anton@mips.complang.tuwien.ac.at To: bernd@net2o.de Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 05 18:18:13 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 1iGml1-0015m8-Mv for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Oct 2019 18:18:11 +0200 Original-Received: from localhost ([::1]:57966 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGml0-0000Ct-Im for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Oct 2019 12:18:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50008) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGmkt-0000CU-3k for bug-gnu-emacs@gnu.org; Sat, 05 Oct 2019 12:18:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iGmks-0001DN-43 for bug-gnu-emacs@gnu.org; Sat, 05 Oct 2019 12:18:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36255) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iGmks-0001DH-0t for bug-gnu-emacs@gnu.org; Sat, 05 Oct 2019 12:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iGmkr-00024w-SX for bug-gnu-emacs@gnu.org; Sat, 05 Oct 2019 12:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Oct 2019 16:18:01 +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.15702922377933 (code B ref 37633); Sat, 05 Oct 2019 16:18:01 +0000 Original-Received: (at 37633) by debbugs.gnu.org; 5 Oct 2019 16:17:17 +0000 Original-Received: from localhost ([127.0.0.1]:45076 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iGmk9-00023s-7m for submit@debbugs.gnu.org; Sat, 05 Oct 2019 12:17:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40876) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iGmk7-00023a-1q for 37633@debbugs.gnu.org; Sat, 05 Oct 2019 12:17:15 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42922) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iGmk1-0000m3-VH; Sat, 05 Oct 2019 12:17:09 -0400 Original-Received: from [176.228.60.248] (port=1050 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iGmjz-0008An-15; Sat, 05 Oct 2019 12:17:09 -0400 In-reply-to: <83zhif2n0q.fsf@gnu.org> (message from Eli Zaretskii on Sat, 05 Oct 2019 19:08:21 +0300) 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:168384 Archived-At: > Date: Sat, 05 Oct 2019 19:08:21 +0300 > From: Eli Zaretskii > Cc: 37633@debbugs.gnu.org, anton@mips.complang.tuwien.ac.at > > > Suggested solution: Use byte-to-position to calculate the position in > > compilation-move-to-column. > > This only works in UTF-8 locales, and is not 100% even there, so it > isn't the right solution. In general, byte-to-position is meant to be used only for converting between byte and character positions of text in Emacs buffers. 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.