GNU bug report logs - #40702
28.0.50; (what-cursor-position) barfs on non-ASCII char

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Dima Kogan <dima@HIDDEN>; dated Sat, 18 Apr 2020 21:37:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 40702 <at> debbugs.gnu.org:


Received: (at 40702) by debbugs.gnu.org; 20 Apr 2020 21:44:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 20 17:44:27 2020
Received: from localhost ([127.0.0.1]:48570 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jQeDL-0005N4-Ht
	for submit <at> debbugs.gnu.org; Mon, 20 Apr 2020 17:44:27 -0400
Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:55989)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dima@HIDDEN>) id 1jQeDJ-0005Mp-7O
 for 40702 <at> debbugs.gnu.org; Mon, 20 Apr 2020 17:44:25 -0400
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41])
 by mailout.west.internal (Postfix) with ESMTP id 29A376E9;
 Mon, 20 Apr 2020 17:44:19 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute1.internal (MEProxy); Mon, 20 Apr 2020 17:44:19 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net;
 h=references:from:to:cc:subject:in-reply-to:date:message-id
 :mime-version:content-type; s=fm3; bh=v8d81y3yXXQg/1BxxKlLnqxp+5
 RdOghhUzMQZRYQdSk=; b=TD7yPhOjbQhXKEOaShEzHBAW0YKRDqmXBzhaw6YUmn
 1uelxLEIJIIVl/iUkLBKGDvVUOQoGiVX+qHsAN6ieFCTV8fA3GrdIaL2kXUi0+1q
 0/0B1axQi1XEtPmTR6hONZswBTBqF9azOlUvsmmcK1VQpmGiSITRDftTlKUi+Bm2
 jBI+IfI/KNgH8qLt2BoowRsVEwhNHHcJfVix9NkBXR4yiM2rhfH0xriJ6681rGkN
 8c7RK+NlvVKuesswmi4X8FhowZEXSMsZgnrk/uKYNQdghGqu77w6DKIGpj+VHBwy
 UjWk0Isp7e2ygxXfMw5CBwANYIAw+BPE9395/cQGXgaQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:date:from:in-reply-to
 :message-id:mime-version:references:subject:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=v8d81y
 3yXXQg/1BxxKlLnqxp+5RdOghhUzMQZRYQdSk=; b=uIvW1V4dycNUtcmApadN3y
 sO1S20r/DgLQ3HmpWPiqTzoutcL3PXXIWvsUGBpLAkeypnrXBPiN0MDYnn297ldB
 KppjADg9lklS3j59iPHjGwWaWwanDNPR1UfLmVit3v7hNN8v4F55VposHnt0eRpk
 tdF/ArSGvvJe4m7tzscRk73Hoh6QThvQm1EGgnkPuX9KuTlXatvbro7PLKC31iSD
 jzdZpRNLnwPJSuIiqDbng/yjJzCGVh/DUxh8l6QmKTBS8QcgJfinGC2PWVECC6ps
 LDTkfZ7TvtRE8Xjob54pDRDECmvmpkNK7FidgmN+7pHek/0aAhQ3srcKHZZYtggg
 ==
X-ME-Sender: <xms:sheeXqwfde_MdFO1z4BrGd9FpgUdFleDFsyvtfUn7Z1JvOOwHVZ7FQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrgeefgdduheekucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhepfhgfhffvufgjfffkgggtsehttdertddtredtnecuhfhrohhmpeffihhmrgcu
 mfhoghgrnhcuoeguihhmrgesshgvtghrvghtshgruhgtvgdrnhgvtheqnecukfhppedutd
 ejrddvuddtrddvudefrddvgeefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm
 pehmrghilhhfrhhomhepughimhgrsehsvggtrhgvthhsrghutggvrdhnvght
X-ME-Proxy: <xmx:sheeXvkebbTjW3MZbGWGLIMa-eaSmqcks5FA9lr_WEeJAQbFCQY47A>
 <xmx:sheeXoulG1huP6zR65tiwdwhDz_yJ65k1Dk8TQFjdwjHiP1LfAOg_g>
 <xmx:sheeXoF-bBwjoAbJMCmveSS4KjTSTDNC9xClQNX6kxp67fs5bldAVQ>
 <xmx:sheeXuQMSJCsPM--BtvvT9TT4BB6U2QAyQquu9S6es737yf9rjNxHw>
Received: from shorty.local (107-210-213-243.lightspeed.irvnca.sbcglobal.net
 [107.210.213.243])
 by mail.messagingengine.com (Postfix) with ESMTPA id 013AF3065C40;
 Mon, 20 Apr 2020 17:44:18 -0400 (EDT)
Received: from dima by shorty.local with local (Exim 4.92.1)
 (envelope-from <dima@HIDDEN>)
 id 1jQeDA-0005we-Uy; Mon, 20 Apr 2020 14:44:16 -0700
References: <87r1wktrg4.fsf@HIDDEN>
 <87lfms5ul0.fsf@HIDDEN> <87pnc4tox6.fsf@HIDDEN>
 <jwvy2qr4f4w.fsf-monnier+emacs@HIDDEN> <87k12au6z0.fsf@HIDDEN>
 <jwveesi2stg.fsf-monnier+emacs@HIDDEN>
User-agent: mu4e 1.2.0; emacs 28.0.50
From: Dima Kogan <dima@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#40702: 28.0.50; (what-cursor-position) barfs on non-ASCII char
In-reply-to: <jwveesi2stg.fsf-monnier+emacs@HIDDEN>
Date: Mon, 20 Apr 2020 14:44:16 -0700
Message-ID: <87eeshu91r.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 40702
Cc: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= <stepnem@HIDDEN>,
 40702 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Stefan Monnier <monnier@HIDDEN> writes:

> If you get that in the scratch buffer in `emacs -Q`, then I'd guess it
> depends on the locale setting.

  $ locale

  LANG=C
  LANGUAGE=
  LC_CTYPE="C"
  LC_NUMERIC="C"
  LC_TIME="C"
  LC_COLLATE="C"
  LC_MONETARY="C"
  LC_MESSAGES="C"
  LC_PAPER="C"
  LC_NAME="C"
  LC_ADDRESS="C"
  LC_TELEPHONE="C"
  LC_MEASUREMENT="C"
  LC_IDENTIFICATION="C"
  LC_ALL=C

I happen to live in an English-speaking country, so generally doing
everything in ASCII works ok. Is there anything to "fix" here?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#40702; Package emacs. Full text available.

Message received at 40702 <at> debbugs.gnu.org:


Received: (at 40702) by debbugs.gnu.org; 20 Apr 2020 13:27:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 20 09:27:38 2020
Received: from localhost ([127.0.0.1]:46736 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jQWSX-0000q7-Vd
	for submit <at> debbugs.gnu.org; Mon, 20 Apr 2020 09:27:38 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:10078)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1jQWSW-0000pu-7M
 for 40702 <at> debbugs.gnu.org; Mon, 20 Apr 2020 09:27:36 -0400
Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id AA9E0450281;
 Mon, 20 Apr 2020 09:27:30 -0400 (EDT)
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 2FB7645027D;
 Mon, 20 Apr 2020 09:27:29 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1587389249;
 bh=JtBH15B4Mzcgq2L7Kc63mfRX7OLKD0ueOjze5ZuX8z8=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:From;
 b=PB3utE9xGyRQ8p7eSMpJ/dyus6lu+wXBPaYOlVqkyDJH9i8r/EkKEh9dCww45s1mM
 U9k8xDk9rZE7krv1TdFiAWspNz3W8fKHnPF6hmyjenJBsYj8X1VGjFTmU4fVBBy5bC
 Iqq8kYEL0UI+j3BZwDA5LCYyyUvzX34mqopFBzpF6VAxnbEwHmukaLc25TNNMQAlFY
 zfiHPvJKJn03FI2PSvE/+QEKpW/QO8bGtwoLz5/ZqUqAKlMjSh3s3gQZkcqsXXKwKx
 +tlBSKORe+LM4fU/GzEfPshFOTEebQ84CblSzdJZppnXHD6I3oxn1QoRh0M99fAkvp
 aMlAa3rfkX+pg==
Received: from alfajor (unknown [104.247.241.114])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id EB2FE120809;
 Mon, 20 Apr 2020 09:27:28 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Dima Kogan <dima@HIDDEN>
Subject: Re: bug#40702: 28.0.50; (what-cursor-position) barfs on non-ASCII char
Message-ID: <jwveesi2stg.fsf-monnier+emacs@HIDDEN>
References: <87r1wktrg4.fsf@HIDDEN>
 <87lfms5ul0.fsf@HIDDEN> <87pnc4tox6.fsf@HIDDEN>
 <jwvy2qr4f4w.fsf-monnier+emacs@HIDDEN>
 <87k12au6z0.fsf@HIDDEN>
Date: Mon, 20 Apr 2020 09:27:27 -0400
In-Reply-To: <87k12au6z0.fsf@HIDDEN> (Dima Kogan's message of "Sun,
 19 Apr 2020 21:16:51 -0700")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL 0.166 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 40702
Cc: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= <stepnem@HIDDEN>,
 40702 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

>>> I see that buffer-file-coding-system is nil
>> It would be worth looking into how/why you get a nil value here.
> Any suggestions about how to do that?

If you get that in the scratch buffer in `emacs -Q`, then I'd guess it
depends on the locale setting.


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#40702; Package emacs. Full text available.

Message received at 40702 <at> debbugs.gnu.org:


Received: (at 40702) by debbugs.gnu.org; 20 Apr 2020 04:17:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 20 00:17:06 2020
Received: from localhost ([127.0.0.1]:46408 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jQNrm-0002HK-N5
	for submit <at> debbugs.gnu.org; Mon, 20 Apr 2020 00:17:06 -0400
Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:57475)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dima@HIDDEN>) id 1jQNrh-0002Gj-Ud
 for 40702 <at> debbugs.gnu.org; Mon, 20 Apr 2020 00:17:03 -0400
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41])
 by mailout.west.internal (Postfix) with ESMTP id 220DA5D1;
 Mon, 20 Apr 2020 00:16:54 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute1.internal (MEProxy); Mon, 20 Apr 2020 00:16:54 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net;
 h=references:from:to:cc:subject:in-reply-to:date:message-id
 :mime-version:content-type; s=fm3; bh=Ma7p8dzYwAqKQt4QArywMl3WX8
 QfU1+kD6uYwKaVJYU=; b=FpNza7fYyu2c6MrCwqgxk+P5wlPIl72VvMI5NkSnxZ
 XjWfRzY53FNutOt7MNFkq49BKR7e8iL+94EFMJAyL7/XtCrx7z3qOcgZDhCcVX9w
 a7K9YZC0fxN+EulHeoEOMjFisbUkn9/TLx0Gf/CMknPooR+987QuFW3U8aRULH5A
 EbUKsH126LWkb4XxTYcQzMIISZ6rk0A3wiqagPRrRJYPY5uaKL93QafDPEK/ubYf
 hr9cHEr5t3l7kfE03LagLdhM0KW+acqWwBfszrejVIclBi/OGuAfeSjl2THseugv
 zWYeCPDoXldrD5Xinas3zlz/Tk15oyF66eIYBRBYo0EQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:date:from:in-reply-to
 :message-id:mime-version:references:subject:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=Ma7p8d
 zYwAqKQt4QArywMl3WX8QfU1+kD6uYwKaVJYU=; b=YSvzbDDtKzwuDhw0pxg7CY
 U5LaOnXsgI3nXlLOXCnzbcW5aw/wJfJOk7gwdM06DN7v/uZD3gg6XjoL4ViAZd/m
 tWJNB6IYMN03+K+EIvOi2hU4ka4LBF3cQWxVlgYijipIO9vzkJnRbkKJKLBdHt8e
 ETAKlgI3sxUndy56bEzlsri9BYYKB35+Adj58Dxt6M9n/biEjaYi83ZJfuEn805S
 0ExraDkXbqmWtijKk5Lm4A3hNpCAI/ERpPZlDTmO6+Tal+tthldR4NjnIV8OF9W5
 zIinALZGLhX2dGoXgdpt3cOa0eTha4PBUjODRyoJiVqDkP1d7P118Dqmvo05uPgw
 ==
X-ME-Sender: <xms:NSKdXjKBlDZ5xh__-fFE150qcmHyCFkH7o--_0YdPc3qyLc2gBj5uA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrgedvgdekudcutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc
 fjughrpehffgfhvffujgffkfggtgesthdtredttdertdenucfhrhhomhepffhimhgrucfm
 ohhgrghnuceoughimhgrsehsvggtrhgvthhsrghutggvrdhnvghtqeenucfkphepuddtje
 drvddutddrvddufedrvdegfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep
 mhgrihhlfhhrohhmpeguihhmrgesshgvtghrvghtshgruhgtvgdrnhgvth
X-ME-Proxy: <xmx:NSKdXhwe5qBGTsI8yKvnJrodnL5GQGJ58Je8dE3O-wqpwuTNmUa_fg>
 <xmx:NSKdXhuweVwSYNlZIJzc08wUr2syQyl6IWv7wXS3goY4EId0Y3kQvQ>
 <xmx:NSKdXsA58z92YByT6Cqd8t6_wXgP0I5QCB9E-MZ0u2zqphCP6OywsQ>
 <xmx:NSKdXm82-c7ErUfN14clQLKEk3mqc-VxiLRe9NnlP_fTeeg9Qi4EKA>
Received: from shorty.local (107-210-213-243.lightspeed.irvnca.sbcglobal.net
 [107.210.213.243])
 by mail.messagingengine.com (Postfix) with ESMTPA id 269483065952;
 Mon, 20 Apr 2020 00:16:53 -0400 (EDT)
Received: from dima by shorty.local with local (Exim 4.92.1)
 (envelope-from <dima@HIDDEN>)
 id 1jQNrX-0007Ta-NE; Sun, 19 Apr 2020 21:16:51 -0700
References: <87r1wktrg4.fsf@HIDDEN>
 <87lfms5ul0.fsf@HIDDEN> <87pnc4tox6.fsf@HIDDEN>
 <jwvy2qr4f4w.fsf-monnier+emacs@HIDDEN>
User-agent: mu4e 1.2.0; emacs 28.0.50
From: Dima Kogan <dima@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#40702: 28.0.50; (what-cursor-position) barfs on non-ASCII char
In-reply-to: <jwvy2qr4f4w.fsf-monnier+emacs@HIDDEN>
Date: Sun, 19 Apr 2020 21:16:51 -0700
Message-ID: <87k12au6z0.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 40702
Cc: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= <stepnem@HIDDEN>,
 40702 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Stefan Monnier <monnier@HIDDEN> writes:

>> I see that buffer-file-coding-system is nil
>
> It would be worth looking into how/why you get a nil value here.

Any suggestions about how to do that? For the record, unicode stuff
seems to work in general, this bug excepted. Would you expect stuff to
break with nil here?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#40702; Package emacs. Full text available.

Message received at 40702 <at> debbugs.gnu.org:


Received: (at 40702) by debbugs.gnu.org; 19 Apr 2020 19:39:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 19 15:39:17 2020
Received: from localhost ([127.0.0.1]:46024 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jQFmb-0006tR-Fr
	for submit <at> debbugs.gnu.org; Sun, 19 Apr 2020 15:39:17 -0400
Received: from mail-wm1-f66.google.com ([209.85.128.66]:37792)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stepnem@HIDDEN>) id 1jQFma-0006tE-3N
 for 40702 <at> debbugs.gnu.org; Sun, 19 Apr 2020 15:39:12 -0400
Received: by mail-wm1-f66.google.com with SMTP id z6so8913628wml.2
 for <40702 <at> debbugs.gnu.org>; Sun, 19 Apr 2020 12:39:12 -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=+mHpGMQtCOyp/k9Bi5ZJBXmRZbESA20++SkwNcn9/bM=;
 b=RO9a6GCu2bJUApAh8Po3JGt4zSROGIShkZE6849qHjne+g8LF7vGp2qMSlEmLYr+S5
 ZuV9R+ZEZqL9fqeZ9CJD3WfgaDCn1bWWpL1HmZ/1metl59BPS3XwTGaeVMisoWPd1Qaz
 a1WQrlArI9bSGXbII7xzwPW6RWKw90+3WW29Wh7rJKnS5+8LWVs+/4XKdO7W1vBOJ7AB
 JFia1lrrYWkxZNCLJEsL3aZDGSM+682Ctph7HISbfST9tW/GP+NucFk9tqIoaFQJTzka
 vZL6SUxgG8ew2sdbGljlvihMjB8Sn9bQ53Z2KhtvOrD9RLBEXGejFD1GoLYa1KIkVRJW
 rFdw==
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=+mHpGMQtCOyp/k9Bi5ZJBXmRZbESA20++SkwNcn9/bM=;
 b=sXA2Euux580AB0FbDnB+9PJgJHlCO752dh8L+txdwpUK8540rzv0TKmVXUAy0SfOOV
 vcsfkuGAxoBJfwzrEhl2G+8VZ0nB51Z744IrvZMthXRVjp+DU1Z4yAz7r7hVE+oMug2F
 OgZfDqqzlo54CzjzHQHFGt16UWipe3iGlsbhkn7HBKedx0aU5xaAw/fNjD7Ax9D+1dgM
 YeokP8oIaLpMISa4UEXXQxSBlIQ6JmvPwQ7GWsJdIPyopjXwnxDtNILuzWvi0slMXM9e
 oEAz4nHRV2rJ6j3f0anGU1j0hXs9eDFWRDxs8R9+8itgLCx/kbHFB5YznEFKKhTE44Th
 X3DQ==
X-Gm-Message-State: AGi0PuZg2GE4H+THkFVuN989KJ83nTdSf1OwVN9rOWC16VU/Kn0XXTvO
 4NL4pU+jZWqqicMh6xwMSWg=
X-Google-Smtp-Source: APiQypICzQSwQmR/UrzoZ5MGzN5GSnBG38RpzGu5Xh0Iq5I6pcSfK7Rfq5z2/rHfCStJGOI/Ur6y7A==
X-Received: by 2002:a7b:cd10:: with SMTP id f16mr14497146wmj.21.1587325146036; 
 Sun, 19 Apr 2020 12:39:06 -0700 (PDT)
Received: from localhost ([185.112.167.47])
 by smtp.gmail.com with ESMTPSA id t17sm11743797wro.2.2020.04.19.12.39.05
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 19 Apr 2020 12:39:05 -0700 (PDT)
From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= <stepnem@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#40702: 28.0.50; (what-cursor-position) barfs on non-ASCII char
In-Reply-To: <83ftczifnh.fsf@HIDDEN> (Eli Zaretskii's message of "Sun, 19 Apr
 2020 19:50:10 +0300")
References: <87r1wktrg4.fsf@HIDDEN>
 <87lfms5ul0.fsf@HIDDEN> <87pnc4tox6.fsf@HIDDEN>
 <878sir6333.fsf@HIDDEN> <83k12bijpl.fsf@HIDDEN>
 <871roj5u0q.fsf@HIDDEN> <83ftczifnh.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
Date: Sun, 19 Apr 2020 21:39:48 +0200
Message-ID: <87sggz464b.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 40702
Cc: dima@HIDDEN, 40702 <at> debbugs.gnu.org, monnier@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Sun, 19 Apr 2020 19:50:10 +0300
Eli Zaretskii wrote:

>> 2019-05-28T20:59:35-04:00!monnier@HIDDEN
>> 146486f8a6 (* mule-cmds.el (encoded-string-description): Require unibyte=
 string as input)
>> https://git.sv.gnu.org/cgit/emacs.git/commit/?id=3D146486f8a6
>>=20
>> Removing the assertion reverts to the Emacs 26 behaviour.
>>=20
>> Unfortunately there is no explanation regarding the change. Maybe Stefan
>> could provide some insight?
>
> Could the discussion below provide such an explanation?
>
>   https://lists.gnu.org/archive/html/emacs-devel/2019-05/msg00949.html

Yes, and also a lot of other useful context/reference information.

Thanks!

--=20
=C5=A0t=C4=9Bp=C3=A1n




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#40702; Package emacs. Full text available.

Message received at 40702 <at> debbugs.gnu.org:


Received: (at 40702) by debbugs.gnu.org; 19 Apr 2020 16:50:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 19 12:50:25 2020
Received: from localhost ([127.0.0.1]:45790 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jQD9E-0002if-UJ
	for submit <at> debbugs.gnu.org; Sun, 19 Apr 2020 12:50:25 -0400
Received: from eggs.gnu.org ([209.51.188.92]:42824 helo=eggs1p.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1jQD9D-0002iT-Ir
 for 40702 <at> debbugs.gnu.org; Sun, 19 Apr 2020 12:50:23 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:53670)
 by eggs1p.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <eliz@HIDDEN>)
 id 1jQD97-0005Jh-Vs; Sun, 19 Apr 2020 12:50:18 -0400
Received: from [176.228.60.248] (port=3355 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1jQD96-0001VI-W9; Sun, 19 Apr 2020 12:50:17 -0400
Date: Sun, 19 Apr 2020 19:50:10 +0300
Message-Id: <83ftczifnh.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= <stepnem@HIDDEN>
In-Reply-To: <871roj5u0q.fsf@HIDDEN> (message from =?utf-8?B?xaB0xJtw?=
 =?utf-8?B?w6FuIE7Em21lYw==?= on Sun, 19 Apr 2020 18:18:13 +0200)
Subject: Re: bug#40702: 28.0.50; (what-cursor-position) barfs on non-ASCII char
References: <87r1wktrg4.fsf@HIDDEN>
 <87lfms5ul0.fsf@HIDDEN> <87pnc4tox6.fsf@HIDDEN>
 <878sir6333.fsf@HIDDEN> <83k12bijpl.fsf@HIDDEN> <871roj5u0q.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 40702
Cc: dima@HIDDEN, 40702 <at> debbugs.gnu.org, monnier@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> From: Štěpán Němec <stepnem@HIDDEN>
> Cc: dima@HIDDEN,  40702 <at> debbugs.gnu.org, Stefan Monnier
>  <monnier@HIDDEN>
> Date: Sun, 19 Apr 2020 18:18:13 +0200
> 
> >   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)
> 
> 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@HIDDEN
> 146486f8a6 (* mule-cmds.el (encoded-string-description): Require unibyte string as input)
> https://git.sv.gnu.org/cgit/emacs.git/commit/?id=146486f8a6
> 
> Removing the assertion reverts to the Emacs 26 behaviour.
> 
> Unfortunately there is no explanation regarding the change. Maybe Stefan
> could provide some insight?

Could the discussion below provide such an explanation?

  https://lists.gnu.org/archive/html/emacs-devel/2019-05/msg00949.html




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#40702; Package emacs. Full text available.

Message received at 40702 <at> debbugs.gnu.org:


Received: (at 40702) by debbugs.gnu.org; 19 Apr 2020 16:44:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 19 12:44:45 2020
Received: from localhost ([127.0.0.1]:45777 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jQD3k-0002ZV-OG
	for submit <at> debbugs.gnu.org; Sun, 19 Apr 2020 12:44:45 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:27078)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1jQD3i-0002ZG-SC
 for 40702 <at> debbugs.gnu.org; Sun, 19 Apr 2020 12:44:43 -0400
Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 54B2A450223;
 Sun, 19 Apr 2020 12:44:37 -0400 (EDT)
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id DE9C44501F7;
 Sun, 19 Apr 2020 12:44:34 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1587314674;
 bh=9Y5r+v1cOx9cRvkipWSJbMFD7EyyfoOYw1UmYloyz4w=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:From;
 b=Hgn9+8dAQfV1sH5Eb0Wo9dxyOoTUV83SC/Lo/+MyWT08aaYGSBejm7Ex0UUhdfwyb
 bKA4Sual1IYWCTfs3/8yeieinZ7W1DxvrHpPR/llSK2DpGP/XO5+98BNJZY6BqGICh
 snK1nloywClfIMcE25Vyu4qOImvCU0UDi0fI9oFs5Y6StHzFKwJHmMYETIaL8LR6Ab
 myjvgg11D7zThmMCjMsEYetmFfFRu4puL+xtDjpnj09pDdWtU2xBPnpQw7oOLBwPSW
 Q04t3M77RDbnsn4G/53amHpANQqMtiFATfFENZwcSjv500RC/+IdHhKhD4Nl2CiV7D
 25PWRdT7JvoqA==
Received: from alfajor (unknown [104.247.241.114])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 88C4E1201B0;
 Sun, 19 Apr 2020 12:44:34 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Dima Kogan <dima@HIDDEN>
Subject: Re: bug#40702: 28.0.50; (what-cursor-position) barfs on non-ASCII char
Message-ID: <jwvy2qr4f4w.fsf-monnier+emacs@HIDDEN>
References: <87r1wktrg4.fsf@HIDDEN>
 <87lfms5ul0.fsf@HIDDEN> <87pnc4tox6.fsf@HIDDEN>
Date: Sun, 19 Apr 2020 12:44:33 -0400
In-Reply-To: <87pnc4tox6.fsf@HIDDEN> (Dima Kogan's message of "Sat,
 18 Apr 2020 15:22:13 -0700")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL 0.166 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 40702
Cc: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= <stepnem@HIDDEN>,
 40702 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

>> I can't reproduce this on current master
> Thanks for checking. It's very consistent on my end. I poked at it a
> little bit just now.
> I see that buffer-file-coding-system is nil

It would be worth looking into how/why you get a nil value here.

> It ends up evaluating
>   (encoded-string-description "=E9" nil)

This seems to point to a bug in `encode-coding-char`:

    M-: (encode-coding-char ?\=E9 nil) RET

returns "=E9" which is not a unibyte string and hence is not a valid
encoded string.  Note that

    M-: (encode-coding-char ?\=E9 'no-conversion) RET

does not suffer from the same problem.  This comes from
`encode-coding-string` which also returns a multibyte string when its
coding arg is nil.

I'm not sure if `encode-coding-string/char` should accept a nil argument
nor how it should treat it, so maybe it's a bug in `what-char-position`
which should not pass a nil argument here.  So maybe the patch below
is a good fix?


        Stefan


diff --git a/lisp/simple.el b/lisp/simple.el
index 8bc84a9dfa..e5180119e8 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -1470,7 +1470,11 @@ what-cursor-position
 	    encoded encoding-msg display-prop under-display)
 	(if (or (not coding)
 		(eq (coding-system-type coding) t))
-	    (setq coding (default-value 'buffer-file-coding-system)))
+	    (setq coding (or (default-value 'buffer-file-coding-system)
+                             ;; A nil value of `buffer-file-coding-system'
+                             ;; means "no conversion" which means each byte
+                             ;; is a char and vice versa.
+                             'binary)))
 	(if (eq (char-charset char) 'eight-bit)
 	    (setq encoding-msg
 		  (format "(%d, #o%o, #x%x%s, raw-byte)" char char char char-name-fmt))





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#40702; Package emacs. Full text available.

Message received at 40702 <at> debbugs.gnu.org:


Received: (at 40702) by debbugs.gnu.org; 19 Apr 2020 16:17:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 19 12:17:38 2020
Received: from localhost ([127.0.0.1]:45741 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jQCdW-0001v8-Kg
	for submit <at> debbugs.gnu.org; Sun, 19 Apr 2020 12:17:38 -0400
Received: from mail-wr1-f47.google.com ([209.85.221.47]:35474)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stepnem@HIDDEN>) id 1jQCdV-0001uv-3s
 for 40702 <at> debbugs.gnu.org; Sun, 19 Apr 2020 12:17:37 -0400
Received: by mail-wr1-f47.google.com with SMTP id x18so9027527wrq.2
 for <40702 <at> 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)
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)
From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= <stepnem@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#40702: 28.0.50; (what-cursor-position) barfs on non-ASCII char
In-Reply-To: <83k12bijpl.fsf@HIDDEN> (Eli Zaretskii's message of "Sun, 19 Apr
 2020 18:22:30 +0300")
References: <87r1wktrg4.fsf@HIDDEN>
 <87lfms5ul0.fsf@HIDDEN> <87pnc4tox6.fsf@HIDDEN>
 <878sir6333.fsf@HIDDEN> <83k12bijpl.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
Date: Sun, 19 Apr 2020 18:18:13 +0200
Message-ID: <871roj5u0q.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 40702
Cc: dima@HIDDEN, 40702 <at> debbugs.gnu.org,
 Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

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@HIDDEN
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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#40702; Package emacs. Full text available.

Message received at 40702 <at> debbugs.gnu.org:


Received: (at 40702) by debbugs.gnu.org; 19 Apr 2020 15:22:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 19 11:22:45 2020
Received: from localhost ([127.0.0.1]:45697 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jQBmO-00070R-QI
	for submit <at> debbugs.gnu.org; Sun, 19 Apr 2020 11:22:45 -0400
Received: from eggs.gnu.org ([209.51.188.92]:55438)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1jQBmM-00070D-TG
 for 40702 <at> debbugs.gnu.org; Sun, 19 Apr 2020 11:22:43 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:52672)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <eliz@HIDDEN>)
 id 1jQBmH-0003NV-JX; Sun, 19 Apr 2020 11:22:37 -0400
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 <eliz@HIDDEN>)
 id 1jQBmG-0006By-Qf; Sun, 19 Apr 2020 11:22:37 -0400
Date: Sun, 19 Apr 2020 18:22:30 +0300
Message-Id: <83k12bijpl.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= <stepnem@HIDDEN>
In-Reply-To: <878sir6333.fsf@HIDDEN> (stepnem@HIDDEN)
Subject: Re: bug#40702: 28.0.50; (what-cursor-position) barfs on non-ASCII char
References: <87r1wktrg4.fsf@HIDDEN>
 <87lfms5ul0.fsf@HIDDEN> <87pnc4tox6.fsf@HIDDEN>
 <878sir6333.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 40702
Cc: dima@HIDDEN, 40702 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> From: Štěpán Němec
>  <stepnem@HIDDEN>
> Date: Sun, 19 Apr 2020 15:02:24 +0200
> Cc: 40702 <at> 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)




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#40702; Package emacs. Full text available.

Message received at 40702 <at> debbugs.gnu.org:


Received: (at 40702) by debbugs.gnu.org; 19 Apr 2020 13:01:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 19 09:01:50 2020
Received: from localhost ([127.0.0.1]:44223 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jQ9a2-00078b-FH
	for submit <at> debbugs.gnu.org; Sun, 19 Apr 2020 09:01:50 -0400
Received: from mail-wr1-f50.google.com ([209.85.221.50]:34045)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stepnem@HIDDEN>) id 1jQ9a0-00072L-Jr
 for 40702 <at> debbugs.gnu.org; Sun, 19 Apr 2020 09:01:49 -0400
Received: by mail-wr1-f50.google.com with SMTP id j1so3187169wrt.1
 for <40702 <at> debbugs.gnu.org>; Sun, 19 Apr 2020 06:01:48 -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=6gsNNwot12KFYS6UhYp3f+4AqTy91F3v4YMzW6THvEY=;
 b=rUOkryk0STVdYhqeJ2ADXdQkuqYeeaYSBK9WcbDZ3DulCAbcmmKfg/1nHQ3su57Rfv
 xNcUI98xaU8BX3xyC4RrmfplBzvrYENVnAQ7rfTNqXZkg3uvmunRZaLUwJSVAnmX+GPa
 7ZtUlROXqXTJPLuLvQzaPqilM8sQqtwQ+Fuzt0Am4vuuWw/g6PzM1QAV2UEyaXYhXqo7
 uvx75nj055RZ7iAcRJZrSNrUYOQuc25plzgAnIjD7+B4oUSp9/JnodyJ2N/oSmBy3B9Q
 s2zOg95o5IwP5+mywKg4wuKlTR/u6fHpmAzmicR3q8SKuzlrsIsWzgoDLlWICFgtzsw0
 idgg==
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=6gsNNwot12KFYS6UhYp3f+4AqTy91F3v4YMzW6THvEY=;
 b=kdZHDmVnYobe3qJHveBSzS6uMu7p0LJJM/YbNChRwwHHCjzCLBUstj5u1eM71ke6H/
 R4CX838nvzjN4cTDIuC2bDW1zhV2OvRpFcUgU6dPtJDTfbeBPUuQyda8YXCu04pIJYNR
 QtggkVd9o3lA/fDSCDZl0TU33rXyP4AxHQnD/EotRmdouEWsgnDdFy+OXauqP3U/1qyZ
 JBKDrb4cK0xyR2JnkqMh27xPEOcJ3QkrURuwgD/z0wT87CHyoSgy1OUNJWq1D3OY0WQV
 GvteU5P4fhmU2Gaz9sW3PnBTHC5dBwveZeQZl+VYDHquXsZgBk2cr4ndW62fuyCtqcLY
 wYYw==
X-Gm-Message-State: AGi0PubuiHBlZkAG84ehK53PNAmri9B1qouxjiLZLmZlPsIKW5wyPi9K
 pXmEmFooBJB0kx2nnREdsmNSqHijUIo=
X-Google-Smtp-Source: APiQypI0aPIaLTXeINbB4QwANPKFbiaaGInCBdDawzmvGnGe7aAuAZLPmkfLCMEJQR/O2dorL2/JUA==
X-Received: by 2002:a5d:420d:: with SMTP id n13mr14833173wrq.204.1587301302317; 
 Sun, 19 Apr 2020 06:01:42 -0700 (PDT)
Received: from localhost ([185.112.167.47])
 by smtp.gmail.com with ESMTPSA id h10sm42420799wrq.33.2020.04.19.06.01.41
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 19 Apr 2020 06:01:41 -0700 (PDT)
From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= <stepnem@HIDDEN>
To: Dima Kogan <dima@HIDDEN>
Subject: Re: bug#40702: 28.0.50; (what-cursor-position) barfs on non-ASCII char
In-Reply-To: <87pnc4tox6.fsf@HIDDEN> (Dima Kogan's message of "Sat,
 18 Apr 2020 15:22:13 -0700")
References: <87r1wktrg4.fsf@HIDDEN>
 <87lfms5ul0.fsf@HIDDEN> <87pnc4tox6.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
Date: Sun, 19 Apr 2020 15:02:24 +0200
Message-ID: <878sir6333.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 40702
Cc: 40702 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Sat, 18 Apr 2020 15:22:13 -0700
Dima Kogan wrote:

> Thanks for checking. It's very consistent on my end. I poked at it a
> little bit just now.
>
> I see that buffer-file-coding-system is nil
>
> It ends up evaluating
>
>   (encoded-string-description "=C3=A9" nil)
>
> which looks at the value of
>
>   (multibyte-string-p "=C3=A9")
>
> [ The string above is supposed to be a single unicode character; my
>   email maybe will mangle it; I don't know ]
>
> On my install this evaluates to t, which is causing the error. Which of
> these shouldn't be happening? For the record, it used to work for me.

I'm not sure I'll be able to help you given my lack of familiarity with
this and related code, but can you at least post the full backtrace?

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?) the
multibyte string isn't properly encoded and instead passed directly to
`encoded-string-description', leading to the error.

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.

--=20
=C5=A0t=C4=9Bp=C3=A1n




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#40702; Package emacs. Full text available.

Message received at 40702 <at> debbugs.gnu.org:


Received: (at 40702) by debbugs.gnu.org; 18 Apr 2020 22:22:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 18 18:22:22 2020
Received: from localhost ([127.0.0.1]:43726 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jPvqw-0006Pf-9d
	for submit <at> debbugs.gnu.org; Sat, 18 Apr 2020 18:22:22 -0400
Received: from out5-smtp.messagingengine.com ([66.111.4.29]:44967)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dima@HIDDEN>) id 1jPvqu-0006PS-Ge
 for 40702 <at> debbugs.gnu.org; Sat, 18 Apr 2020 18:22:21 -0400
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41])
 by mailout.nyi.internal (Postfix) with ESMTP id 39A155C00CC;
 Sat, 18 Apr 2020 18:22:15 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute1.internal (MEProxy); Sat, 18 Apr 2020 18:22:15 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net;
 h=references:from:to:cc:subject:in-reply-to:date:message-id
 :mime-version:content-type:content-transfer-encoding; s=fm3; bh=
 cAToq09yDojqHXZU8bGZ77dQHdZ1mFDLx9Iy2aS++Eg=; b=gKuK8NENDzzvCxaS
 SlBrJzc9hypSbAICcjBLmoLAIlr3eyiAOQGtyxy9euDMiiihVGxwFckHoiDJnAMr
 HyvMfVSODFq9CGATCbJrCIamQ8VWbUD9o8IVL11tdqPA8UtC+1tHCC+Gc8eGwTkf
 s30Rus1Ao9hwzvKAJAtGk/zcTqUt+EfAUixtX3QddZJ3rfOBARXdCAnREe6RfRJR
 otioD/ta9Dql9FaVbzlXEmAy8kmgwND8pKVqwN8W04ITV4+kN+9j/WOLHPGsRBbD
 M4nb0V2xJZWsP/Z/HXB/883Yizc2mScICKkP8mrVGpIrjwVBcvfv8DbLJIhkg5cK
 PB/pNA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-transfer-encoding:content-type
 :date:from:in-reply-to:message-id:mime-version:references
 :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender
 :x-sasl-enc; s=fm2; bh=cAToq09yDojqHXZU8bGZ77dQHdZ1mFDLx9Iy2aS++
 Eg=; b=Zr8GDj37nr67kRQpHCxDi4WfUY1d7PljDKtTW9fJTWVjIvWx3qPTDJV3E
 2TZPGN9vo82rElhdGSMy4xfQi3oY6Bvio1PZA1pSg3ciYu8FlvBKi3xbuxmkq+GC
 z5xJjfMuUEsfiWjiGwEkHYSWHL5naOd/iFPvnN8bfHttp119KBxQxopE/Nd577ys
 G93FPKK0Zorqp9HMOYqtdCwGhkMRjbZsp19zS7033iWO2CtsC0ubWJqL+uFe70QX
 wR3bpZYLQ10PoIC8mtS0a03gJRVl2oOfdjWFzwGhB2tJGp5nJ3b0MejT7tz79SKP
 Mrfpd99qvTPYwxuK5WCD8OOMI6Y7A==
X-ME-Sender: <xms:ln2bXtaWYZZpqqlufASN3n5BYqtXuOjBTPk95aJL-JxQ_xtJHJ4JSQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrgedtgddtjecutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc
 fjughrpehffgfhvffujgffkfggtgfgsehtqhertddtreejnecuhfhrohhmpeffihhmrgcu
 mfhoghgrnhcuoeguihhmrgesshgvtghrvghtshgruhgtvgdrnhgvtheqnecukfhppedutd
 ejrddvuddtrddvudefrddvgeefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm
 pehmrghilhhfrhhomhepughimhgrsehsvggtrhgvthhsrghutggvrdhnvght
X-ME-Proxy: <xmx:ln2bXr10Kwgy-wJqPn0FFXPygsmVUcGXflNcVeP2DcS4NwHwm6gyew>
 <xmx:ln2bXtWKHD6QdNumGK3PaL-1UwNSPyVa4FsJR0SOgRUXYcucFHiGoA>
 <xmx:ln2bXlX-CLL0zCHNXmiRRXxO7cxPlemqVeKnlhUfxNUmuCcz2yH39A>
 <xmx:l32bXqN6nzDbaeuQ8Qr934ymQaebmLKJHsCca6W_9U6H01n5WOhROA>
Received: from shorty.local (107-210-213-243.lightspeed.irvnca.sbcglobal.net
 [107.210.213.243])
 by mail.messagingengine.com (Postfix) with ESMTPA id C2254306005B;
 Sat, 18 Apr 2020 18:22:14 -0400 (EDT)
Received: from dima by shorty.local with local (Exim 4.92.1)
 (envelope-from <dima@HIDDEN>)
 id 1jPvqn-0000FK-Oq; Sat, 18 Apr 2020 15:22:13 -0700
References: <87r1wktrg4.fsf@HIDDEN>
 <87lfms5ul0.fsf@HIDDEN>
User-agent: mu4e 1.2.0; emacs 28.0.50
From: Dima Kogan <dima@HIDDEN>
To: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= <stepnem@HIDDEN>
Subject: Re: bug#40702: 28.0.50; (what-cursor-position) barfs on non-ASCII char
In-reply-to: <87lfms5ul0.fsf@HIDDEN>
Date: Sat, 18 Apr 2020 15:22:13 -0700
Message-ID: <87pnc4tox6.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 40702
Cc: 40702 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

=C5=A0t=C4=9Bp=C3=A1n N=C4=9Bmec <stepnem@HIDDEN> writes:

> I can't reproduce this on current master

Thanks for checking. It's very consistent on my end. I poked at it a
little bit just now.

I see that buffer-file-coding-system is nil

It ends up evaluating

  (encoded-string-description "=C3=A9" nil)

which looks at the value of

  (multibyte-string-p "=C3=A9")

[ The string above is supposed to be a single unicode character; my
  email maybe will mangle it; I don't know ]

On my install this evaluates to t, which is causing the error. Which of
these shouldn't be happening? For the record, it used to work for me.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#40702; Package emacs. Full text available.

Message received at 40702 <at> debbugs.gnu.org:


Received: (at 40702) by debbugs.gnu.org; 18 Apr 2020 21:53:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 18 17:53:14 2020
Received: from localhost ([127.0.0.1]:43708 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jPvOj-0005ex-Su
	for submit <at> debbugs.gnu.org; Sat, 18 Apr 2020 17:53:14 -0400
Received: from mail-wr1-f52.google.com ([209.85.221.52]:47018)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stepnem@HIDDEN>) id 1jPvOh-0005ef-FX
 for 40702 <at> debbugs.gnu.org; Sat, 18 Apr 2020 17:53:12 -0400
Received: by mail-wr1-f52.google.com with SMTP id f13so7295079wrm.13
 for <40702 <at> debbugs.gnu.org>; Sat, 18 Apr 2020 14:53:11 -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=+74TRbyWjfE6mr7t5Bj1FWu7Ck6201tl5IAgfk2aJw8=;
 b=u12F06ecsk4iCqMMp5ukBA0iO/v4C7u7dEyup4IrkchHRDrRoyhCUYY40S9f/ACN4s
 EVuF3vA2p7RfFefn82Thhz7gVVhPRLcVLbK9DMBzUDmI7PA4FY3ieQUq7YlKKcFGfVQ0
 Eps+eycWvxfaQrcrWDS7mtHXa1K6Q3DtQ4DMxb9D1OKr9rBEBHRDceiLiMi0WBJ7wjiW
 2uPIn/JLTn2WeNEmzKEzNG6S5Nb3il3zmhn1AJSS11G1/tVMBiS1hNA8O5kret1AgNNr
 1lsfaZ2bmRqVJZt8G6O3QOy9i9YwjQHszxuhBhuBtKzPTL9PEu99ic5GAWSQ3FaUSHXk
 Wzrw==
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=+74TRbyWjfE6mr7t5Bj1FWu7Ck6201tl5IAgfk2aJw8=;
 b=M8y1MdIdYOaaB3QcfQv//b2p1tsREz9ds7JKwRa/wZk2YJObOAILKERNALWsON2F/E
 V+QyivRJ+P1rZnyV4C4fjvIX4GKjgnAIBilxfj9nyA+rXc0KGr9Pqmo6/sV4y+1wRV/l
 /EDyX6FlQ4R5bH0Bw4zr0AngNOUa/J09Hrm1+1zm+IosrphoMH7l6nKAiIsbMiP66202
 atWqTC81EJv74o0MihIhx2rhLdDJa1enpTH3cii+6Mjc/ikIxoHqeuL/mjkUrDeUIdpr
 aSlK0Rm9ZFpFXyad1qQxTj9M0Q9rC3OO1Y24TdO6BvChJLUWrub/DzHld1xIuI8NFV4Q
 oqhQ==
X-Gm-Message-State: AGi0PuYmdOUrqHRbBj3oJocZC6/W6pf/8GE0U3hIvVYP2ygYitw9ZtJm
 pWrP2WWqtgrxhlLBNjGlT28=
X-Google-Smtp-Source: APiQypL612j1KrYXmK0sDR3J7nKjRwg8V19fWOhmcwXfZMnKQoowjkb/0SC4NnqSNBApP/MLpX+SZg==
X-Received: by 2002:a5d:480b:: with SMTP id l11mr11776959wrq.25.1587246785426; 
 Sat, 18 Apr 2020 14:53:05 -0700 (PDT)
Received: from localhost ([185.112.167.47])
 by smtp.gmail.com with ESMTPSA id 1sm13378597wmi.0.2020.04.18.14.53.04
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 18 Apr 2020 14:53:05 -0700 (PDT)
From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= <stepnem@HIDDEN>
To: Dima Kogan <dima@HIDDEN>
Subject: Re: bug#40702: 28.0.50; (what-cursor-position) barfs on non-ASCII char
In-Reply-To: <87r1wktrg4.fsf@HIDDEN>
 (Dima Kogan's message of "Sat, 18 Apr 2020 14:27:39 -0700")
References: <87r1wktrg4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
Date: Sat, 18 Apr 2020 23:53:47 +0200
Message-ID: <87lfms5ul0.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.8 (/)
X-Debbugs-Envelope-To: 40702
Cc: 40702 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.8 (-)

On Sat, 18 Apr 2020 14:27:39 -0700
Dima Kogan wrote:

> Hi. I'm using a very recent build of emacs from git. I see this:
>
> 1. emacs -Q
>    Fresh emacs. Opens in the *scratch* buffer
>
> 2. C-x 8 ' e
>    i.e. insert some non-ASCII character. Opening any buffer with such
>    characters works too
>
> 3. Left
>    Move the point to this character
>
> 4. C-x =3D
>    (what-cursor-position) to ask emacs to tell us about this character.
>    I see this:
>
>    cl--assertion-failed: Assertion failed: (not (multibyte-string-p str))

I can't reproduce this on current master (d890e5b73a Fix misnamed
variable breaking GNUstep)

GNU Emacs 28.0.50 (build 26, x86_64-pc-linux-gnu, GTK+ Version 3.24.17, cai=
ro version 1.17.3)

--=20
=C5=A0t=C4=9Bp=C3=A1n




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#40702; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 18 Apr 2020 21:36:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 18 17:36:54 2020
Received: from localhost ([127.0.0.1]:43701 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jPv8w-0005ER-IU
	for submit <at> debbugs.gnu.org; Sat, 18 Apr 2020 17:36:54 -0400
Received: from lists.gnu.org ([209.51.188.17]:33605)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dima@HIDDEN>)
 id 1jPv8u-0005EJ-6I
 for submit <at> debbugs.gnu.org; Sat, 18 Apr 2020 17:36:52 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:57918)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <dima@HIDDEN>)
 id 1jPv8s-0002IA-Ql
 for bug-gnu-emacs@HIDDEN; Sat, 18 Apr 2020 17:36:52 -0400
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
 DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,NO_DNS_FOR_FROM,
 RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable
 autolearn_force=no version=3.4.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1)
 (envelope-from <dima@HIDDEN>)
 id 1jPv8m-0007Ku-Ra
 for bug-gnu-emacs@HIDDEN; Sat, 18 Apr 2020 17:36:50 -0400
Received: from out5-smtp.messagingengine.com ([66.111.4.29]:54305)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1)
 (envelope-from <dima@HIDDEN>)
 id 1jPv8l-0007KR-Jg
 for bug-gnu-emacs@HIDDEN; Sat, 18 Apr 2020 17:36:44 -0400
Received: from compute7.internal (compute7.nyi.internal [10.202.2.47])
 by mailout.nyi.internal (Postfix) with ESMTP id 012A75C00C3
 for <bug-gnu-emacs@HIDDEN>; Sat, 18 Apr 2020 17:27:41 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute7.internal (MEProxy); Sat, 18 Apr 2020 17:27:41 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net;
 h=from:to:subject:date:message-id:mime-version:content-type; s=
 fm3; bh=NbImRcqEb4J3tywVrBQgXbv0DzotPLhZzqeXtqTJQZc=; b=gsnqAxfU
 T0QrpJhacfH6g/XN/xv10za5o27XkKs8HUBxv3nuyTB0vxrv9P7bFSj0m6s99ig0
 8Kn630hqVIy9dql4vTwYpriVnXO7prY3GDvYv35cUft7t87zdTUOpbrYVU+Ppqlw
 oi5IngBqL/Uf8jQBiD7YSjKkTp8JJgXW+i+00jDLQI6Yphut2NIlKJalOQA9nyUR
 AsFtxN0OmGCgeOPNMi5JnPu+Ciq6tdMg1fq6z2jdTDv9JCerKj8IbhMTa7MWxANy
 +GidVFTgayJEyNFED3hO3TEAEPELgsEm568bZTSrKp5N8Suv/Rkm3WAOXEwYZEq2
 PxuSOzg1kra6hA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=content-type:date:from:message-id
 :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender
 :x-me-sender:x-sasl-enc; s=fm2; bh=NbImRcqEb4J3tywVrBQgXbv0DzotP
 LhZzqeXtqTJQZc=; b=Wk5mtN82+rm7hGc7vzwzd81SFV9hMaRFx7Igmmw2qZ/LF
 7r6/V7YD0/pP2PgnDqtkgHuwxqBFKn11TPCcDCNXj2vrME9mJXg/UlttH52+y3wb
 NE6b8p4zTjYIpdWcdGF05oB9ThQFWyC+lky1AOc4JNhnk9NJdoEEy7OYxyl/1nQT
 0D+SYN6ZMDMQP29DmaE8Ay3MV+XB1phc57+vI7RWIxbhilU3qWlxdSnMk8P52Rsm
 C3H9K31dRNPh6iUO07s5h4RrFlk/840QvqthNnQ6vQMwio5/heeJfbCVA5N6++I0
 4IJ3Q8I8pceKRbbDlKr1U2uepTIrYqxS1CVFeDb+Q==
X-ME-Sender: <xms:zHCbXnncA0j0JtD40yAbQiwNC9j51SgrJRbdjqVMSLMNYraWBQGxDQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrfeelgdduieegucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtsehttdertddttd
 dtnecuhfhrohhmpeffihhmrgcumfhoghgrnhcuoeguihhmrgesshgvtghrvghtshgruhgt
 vgdrnhgvtheqnecukfhppedutdejrddvuddtrddvudefrddvgeefnecuvehluhhsthgvrh
 fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepughimhgrsehshhhorhhthidr
 ihdqughiugdqnhhothdqshgvthdqqdhmrghilhdqhhhoshhtqdgruggurhgvshhsqddqsh
 hoqdhtihgtkhhlvgdqmhgv
X-ME-Proxy: <xmx:zHCbXr5M9jZ_9-pyq0RULYbN54MdrUEvX6LV9l63V-xpvjRNNkVfmg>
 <xmx:zHCbXgk2gWmAMUhO3enNHH1yJaj9nNaY4tc2s-tD8f-V36CDC8XbjA>
 <xmx:zHCbXtRdtvOkOcrUCnI32z2Q0k1pF6DAqQpcsBSigr8ic4hLEEeejQ>
 <xmx:zHCbXu297cUu2I3F1FtJ4eTnVUxvRFfhh0H56P0_WGKVODBy-N9tgQ>
Received: from shorty.local (107-210-213-243.lightspeed.irvnca.sbcglobal.net
 [107.210.213.243])
 by mail.messagingengine.com (Postfix) with ESMTPA id 709E73060060
 for <bug-gnu-emacs@HIDDEN>; Sat, 18 Apr 2020 17:27:40 -0400 (EDT)
Received: from dima by shorty.local with local (Exim 4.92.1)
 (envelope-from <dima@HIDDEN>)
 id 1jPuzz-00056g-D6
 for bug-gnu-emacs@HIDDEN; Sat, 18 Apr 2020 14:27:39 -0700
From: Dima Kogan <dima@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 28.0.50; (what-cursor-position) barfs on non-ASCII char
Date: Sat, 18 Apr 2020 14:27:39 -0700
Message-ID: <87r1wktrg4.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: none client-ip=66.111.4.29;
 envelope-from=dima@HIDDEN;
 helo=out5-smtp.messagingengine.com
X-detected-operating-system: by eggs.gnu.org: Linux 2.2.x-3.x [generic] [fuzzy]
X-Received-From: 66.111.4.29
X-Spam-Score: -0.1 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.1 (-)

Hi. I'm using a very recent build of emacs from git. I see this:

1. emacs -Q
   Fresh emacs. Opens in the *scratch* buffer

2. C-x 8 ' e
   i.e. insert some non-ASCII character. Opening any buffer with such
   characters works too

3. Left
   Move the point to this character

4. C-x =
   (what-cursor-position) to ask emacs to tell us about this character.
   I see this:

   cl--assertion-failed: Assertion failed: (not (multibyte-string-p str))

Thanks!




Acknowledgement sent to Dima Kogan <dima@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#40702; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 20 Apr 2020 21:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.