From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= Newsgroups: gmane.emacs.bugs Subject: bug#40702: 28.0.50; (what-cursor-position) barfs on non-ASCII char Date: Sun, 19 Apr 2020 18:18:13 +0200 Message-ID: <871roj5u0q.fsf@gmail.com> 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> <83k12bijpl.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="41743"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: dima@secretsauce.net, 40702@debbugs.gnu.org, Stefan Monnier To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 19 18:18: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 1jQCe2-000Ak0-64 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Apr 2020 18:18:10 +0200 Original-Received: from localhost ([::1]:43838 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQCe1-0007Eb-64 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Apr 2020 12:18:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40108 helo=eggs1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQCdu-0007EV-Ov for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2020 12:18:03 -0400 Original-Received: from Debian-exim by eggs1p.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jQCdu-0003Pl-DX for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2020 12:18:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34195) by eggs1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jQCdu-0003OK-11 for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2020 12:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jQCdt-0001vk-SU for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2020 12:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Apr 2020 16:18: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.15873130597390 (code B ref 40702); Sun, 19 Apr 2020 16:18:01 +0000 Original-Received: (at 40702) by debbugs.gnu.org; 19 Apr 2020 16:17:39 +0000 Original-Received: from localhost ([127.0.0.1]:45741 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jQCdW-0001v8-Kg for submit@debbugs.gnu.org; Sun, 19 Apr 2020 12:17:38 -0400 Original-Received: from mail-wr1-f47.google.com ([209.85.221.47]:35474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jQCdV-0001uv-3s for 40702@debbugs.gnu.org; Sun, 19 Apr 2020 12:17:37 -0400 Original-Received: by mail-wr1-f47.google.com with SMTP id x18so9027527wrq.2 for <40702@debbugs.gnu.org>; Sun, 19 Apr 2020 09:17:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-transfer-encoding; bh=IfiURD999vJef47SNmI0okhkC0NcNQ1I8UfcZmeZTZA=; b=rwknw5qEY//tQare/FWiKCyWpaVh11vj0k/mcbs2b6aNE+sj+F30hI0UdNnu7yof2l zovsyvSHOoKEVzxhq1PkxbCEJDA4w2fie9ZCgRrYw2JTqkcGMg0wlNzOgQWpaU/1uv2p j5Ko6Z0aj7eJj82lZq7cW940x1t102l6EuHrkfks7pbevsrjIIW+mDcxKt1/jC9nEEqa ktaqALrPeCGbH0mLWRYHB7z913G/k06Ha4a1ZJAIo266XtdV6M3S/MYr6ytRzonlXkOV k8USwHa5Sim/i1SWj19UPAAjUdfrEw7qvpmaP8u3ozTo5uP2EdoAz+bi1NcpVE1i3iYO 6dzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-transfer-encoding; bh=IfiURD999vJef47SNmI0okhkC0NcNQ1I8UfcZmeZTZA=; b=kNSJuCUsvPkaY3tlPPLfcrP6nH6mkGv3dMVmZHFdRu7iC4E7uM0/0paunp1PaowNHX PoCOiloXbkztbl7b3u+15CDbpz3quh7ZTPjDPUWUmgdJ645RnP5uDRBGeBNBeHR27L2c tuZP63f+M2ay6a+HuLjJ/mRYEpoj1wB4hd96eAqOcLV/7oQNZlNdKM1aQj976XPcNLY8 XKpf/zri92JFDMo5EfWXJSKnm7/lwRyrWJGvU5WOPd8EwXe0EDyLOQY48omKwBQ79jn3 VaTkaiG7gGRGO5741Db380guUzqZWku/pOc25I6pxvMHqJ5xDXDz3FYZrRcNqsZlO8GC kf0w== X-Gm-Message-State: AGi0Pub08R6Zct25vB5J12sK41ojKFOLV4eeiYEcCFIv0GaDNrmgwI9L +snmsIGOCl5R3CKtHMCkFQwZm6zx3lM= X-Google-Smtp-Source: APiQypJAfk2o1N29VBWF7Cdk5dRljiwK/kw/ld8h7ZpKe4FRQSbvyHNM/BAFM1yUEDuZBy/gNSIffQ== X-Received: by 2002:adf:db4d:: with SMTP id f13mr13604076wrj.289.1587313051547; Sun, 19 Apr 2020 09:17:31 -0700 (PDT) Original-Received: from localhost ([185.112.167.47]) by smtp.gmail.com with ESMTPSA id h2sm16548716wmf.34.2020.04.19.09.17.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Apr 2020 09:17:30 -0700 (PDT) In-Reply-To: <83k12bijpl.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 19 Apr 2020 18:22:30 +0300") 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:178648 Archived-At: On Sun, 19 Apr 2020 18:22:30 +0300 Eli Zaretskii wrote: >> 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. Indeed, thanks, the meaning of `nil' is described in the doc string. I was more surprised that it ever ends up being nil by default, but that's probably because I have very little understanding of how the Emacs coding setup works. >> 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'. >>=20 >> 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-str= ing-p str)) nil)) > cl--assertion-failed((not (multibyte-string-p str))) > encoded-string-description(#("=C3=A9" 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) Thanks. I was looking at all the wrong places. The problem was simply introduced by the addition of the assert in 2019-05-28T20:59:35-04:00!monnier@iro.umontreal.ca 146486f8a6 (* mule-cmds.el (encoded-string-description): Require unibyte st= ring as input) https://git.sv.gnu.org/cgit/emacs.git/commit/?id=3D146486f8a6 Removing the assertion reverts to the Emacs 26 behaviour. Unfortunately there is no explanation regarding the change. Maybe Stefan could provide some insight? --=20 =C5=A0t=C4=9Bp=C3=A1n