From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#40702: 28.0.50; (what-cursor-position) barfs on non-ASCII char Date: Sun, 19 Apr 2020 18:22:30 +0300 Message-ID: <83k12bijpl.fsf@gnu.org> References: <87r1wktrg4.fsf@shorty.i-did-not-set--mail-host-address--so-tickle-me> <87lfms5ul0.fsf@gmail.com> <87pnc4tox6.fsf@secretsauce.net> <878sir6333.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="74270"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dima@secretsauce.net, 40702@debbugs.gnu.org To: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 19 17:23:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jQBmo-000JAr-C1 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Apr 2020 17:23:10 +0200 Original-Received: from localhost ([::1]:42908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQBmn-0007VF-1o for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Apr 2020 11:23:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58524) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQBmg-0007Ur-QK for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2020 11:23:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jQBmg-0004BQ-Fy for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2020 11:23:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34151) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jQBmf-0004Af-W7 for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2020 11:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jQBmf-000718-RG for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2020 11:23: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: Sun, 19 Apr 2020 15:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40702 X-GNU-PR-Package: emacs Original-Received: via spool by 40702-submit@debbugs.gnu.org id=B40702.158730976526939 (code B ref 40702); Sun, 19 Apr 2020 15:23:01 +0000 Original-Received: (at 40702) by debbugs.gnu.org; 19 Apr 2020 15:22:45 +0000 Original-Received: from localhost ([127.0.0.1]:45697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jQBmO-00070R-QI for submit@debbugs.gnu.org; Sun, 19 Apr 2020 11:22:45 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jQBmM-00070D-TG for 40702@debbugs.gnu.org; Sun, 19 Apr 2020 11:22:43 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52672) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQBmH-0003NV-JX; Sun, 19 Apr 2020 11:22:37 -0400 Original-Received: from [176.228.60.248] (port=1909 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jQBmG-0006By-Qf; Sun, 19 Apr 2020 11:22:37 -0400 In-Reply-To: <878sir6333.fsf@gmail.com> (stepnem@gmail.com) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:178643 Archived-At: > From: Štěpán Němec > > Date: Sun, 19 Apr 2020 15:02:24 +0200 > Cc: 40702@debbugs.gnu.org > > Looking at `what-cursor-position', apparently due to your > `buffer-file-coding-system' being nil (which seems a bit strange to me: > is even your (default-value 'buffer-file-coding-system) nil?) buffer-file-coding-system being nil means 'no-conversion'. You can easily simulate that yourself, by an explicit setq, and you will then get the error described in the report. > the multibyte string isn't properly encoded and instead passed > directly to `encoded-string-description', leading to the error. Emacs 26.3 doesn't signal an error in this case, so I think this is a regression we should fix. > That said, there haven't been any relevant recent changes to > `what-cursor-position'. > > In any case, I think more info is needed: backtrace, system/environment. Here's a backtrace: Debugger entered--Lisp error: (cl-assertion-failed ((not (multibyte-string-p str)) nil)) cl--assertion-failed((not (multibyte-string-p str))) encoded-string-description(#("é" 0 1 (charset unicode)) nil) describe-char(146) what-cursor-position((4)) funcall-interactively(what-cursor-position (4)) call-interactively(what-cursor-position nil nil) command-execute(what-cursor-position)