From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 18 17:36:54 2020 Received: (at submit) by debbugs.gnu.org; 18 Apr 2020 21:36:54 +0000 Received: from localhost ([127.0.0.1]:43701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jPv8w-0005ER-IU for submit@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 ) id 1jPv8u-0005EJ-6I for submit@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 ) id 1jPv8s-0002IA-Ql for bug-gnu-emacs@gnu.org; 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 ) id 1jPv8m-0007Ku-Ra for bug-gnu-emacs@gnu.org; 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 ) id 1jPv8l-0007KR-Jg for bug-gnu-emacs@gnu.org; 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 ; 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: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrfeelgdduieegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtsehttdertddttd dtnecuhfhrohhmpeffihhmrgcumfhoghgrnhcuoeguihhmrgesshgvtghrvghtshgruhgt vgdrnhgvtheqnecukfhppedutdejrddvuddtrddvudefrddvgeefnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepughimhgrsehshhhorhhthidr ihdqughiugdqnhhothdqshgvthdqqdhmrghilhdqhhhoshhtqdgruggurhgvshhsqddqsh hoqdhtihgtkhhlvgdqmhgv X-ME-Proxy: 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 ; Sat, 18 Apr 2020 17:27:40 -0400 (EDT) Received: from dima by shorty.local with local (Exim 4.92.1) (envelope-from ) id 1jPuzz-00056g-D6 for bug-gnu-emacs@gnu.org; Sat, 18 Apr 2020 14:27:39 -0700 From: Dima Kogan To: bug-gnu-emacs@gnu.org 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@shorty.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=66.111.4.29; envelope-from=dima@shorty.i-did-not-set--mail-host-address--so-tickle-me; 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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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! From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 18 17:53:14 2020 Received: (at 40702) by debbugs.gnu.org; 18 Apr 2020 21:53:14 +0000 Received: from localhost ([127.0.0.1]:43708 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jPvOj-0005ex-Su for submit@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 ) id 1jPvOh-0005ef-FX for 40702@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@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==?= To: Dima Kogan Subject: Re: bug#40702: 28.0.50; (what-cursor-position) barfs on non-ASCII char In-Reply-To: <87r1wktrg4.fsf@shorty.i-did-not-set--mail-host-address--so-tickle-me> (Dima Kogan's message of "Sat, 18 Apr 2020 14:27:39 -0700") References: <87r1wktrg4.fsf@shorty.i-did-not-set--mail-host-address--so-tickle-me> 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@gmail.com> 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@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 18 18:22:22 2020 Received: (at 40702) by debbugs.gnu.org; 18 Apr 2020 22:22:22 +0000 Received: from localhost ([127.0.0.1]:43726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jPvqw-0006Pf-9d for submit@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 ) id 1jPvqu-0006PS-Ge for 40702@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: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrgedtgddtjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpehffgfhvffujgffkfggtgfgsehtqhertddtreejnecuhfhrohhmpeffihhmrgcu mfhoghgrnhcuoeguihhmrgesshgvtghrvghtshgruhgtvgdrnhgvtheqnecukfhppedutd ejrddvuddtrddvudefrddvgeefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomhepughimhgrsehsvggtrhgvthhsrghutggvrdhnvght X-ME-Proxy: 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 ) id 1jPvqn-0000FK-Oq; Sat, 18 Apr 2020 15:22:13 -0700 References: <87r1wktrg4.fsf@shorty.i-did-not-set--mail-host-address--so-tickle-me> <87lfms5ul0.fsf@gmail.com> User-agent: mu4e 1.2.0; emacs 28.0.50 From: Dima Kogan To: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Subject: Re: bug#40702: 28.0.50; (what-cursor-position) barfs on non-ASCII char In-reply-to: <87lfms5ul0.fsf@gmail.com> Date: Sat, 18 Apr 2020 15:22:13 -0700 Message-ID: <87pnc4tox6.fsf@secretsauce.net> 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@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) =C5=A0t=C4=9Bp=C3=A1n N=C4=9Bmec 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 19 09:01:50 2020 Received: (at 40702) by debbugs.gnu.org; 19 Apr 2020 13:01:51 +0000 Received: from localhost ([127.0.0.1]:44223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jQ9a2-00078b-FH for submit@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 ) id 1jQ9a0-00072L-Jr for 40702@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@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==?= To: Dima Kogan Subject: Re: bug#40702: 28.0.50; (what-cursor-position) barfs on non-ASCII char In-Reply-To: <87pnc4tox6.fsf@secretsauce.net> (Dima Kogan's message of "Sat, 18 Apr 2020 15:22:13 -0700") References: <87r1wktrg4.fsf@shorty.i-did-not-set--mail-host-address--so-tickle-me> <87lfms5ul0.fsf@gmail.com> <87pnc4tox6.fsf@secretsauce.net> 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@gmail.com> 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@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 19 11:22:45 2020 Received: (at 40702) by debbugs.gnu.org; 19 Apr 2020 15:22:45 +0000 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 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 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 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 Date: Sun, 19 Apr 2020 18:22:30 +0300 Message-Id: <83k12bijpl.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= In-Reply-To: <878sir6333.fsf@gmail.com> (stepnem@gmail.com) Subject: Re: bug#40702: 28.0.50; (what-cursor-position) barfs on non-ASCII char 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 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 40702 Cc: dima@secretsauce.net, 40702@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > 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) From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 19 12:17:38 2020 Received: (at 40702) by debbugs.gnu.org; 19 Apr 2020 16:17:39 +0000 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 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 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) 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==?= To: Eli Zaretskii Subject: Re: bug#40702: 28.0.50; (what-cursor-position) barfs on non-ASCII char In-Reply-To: <83k12bijpl.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 19 Apr 2020 18:22:30 +0300") 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> 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@gmail.com> 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@secretsauce.net, 40702@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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@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 From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 19 12:44:45 2020 Received: (at 40702) by debbugs.gnu.org; 19 Apr 2020 16:44:45 +0000 Received: from localhost ([127.0.0.1]:45777 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jQD3k-0002ZV-OG for submit@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 ) id 1jQD3i-0002ZG-SC for 40702@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 To: Dima Kogan Subject: Re: bug#40702: 28.0.50; (what-cursor-position) barfs on non-ASCII char Message-ID: References: <87r1wktrg4.fsf@shorty.i-did-not-set--mail-host-address--so-tickle-me> <87lfms5ul0.fsf@gmail.com> <87pnc4tox6.fsf@secretsauce.net> Date: Sun, 19 Apr 2020 12:44:33 -0400 In-Reply-To: <87pnc4tox6.fsf@secretsauce.net> (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==?= , 40702@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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)) From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 19 12:50:25 2020 Received: (at 40702) by debbugs.gnu.org; 19 Apr 2020 16:50:25 +0000 Received: from localhost ([127.0.0.1]:45790 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jQD9E-0002if-UJ for submit@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 ) id 1jQD9D-0002iT-Ir for 40702@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 ) 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 ) 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@gnu.org> From: Eli Zaretskii To: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= In-Reply-To: <871roj5u0q.fsf@gmail.com> (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@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> <871roj5u0q.fsf@gmail.com> 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@secretsauce.net, 40702@debbugs.gnu.org, monnier@iro.umontreal.ca X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > From: Štěpán Němec > Cc: dima@secretsauce.net, 40702@debbugs.gnu.org, Stefan Monnier > > 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@iro.umontreal.ca > 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 19 15:39:17 2020 Received: (at 40702) by debbugs.gnu.org; 19 Apr 2020 19:39:17 +0000 Received: from localhost ([127.0.0.1]:46024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jQFmb-0006tR-Fr for submit@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 ) id 1jQFma-0006tE-3N for 40702@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@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==?= To: Eli Zaretskii Subject: Re: bug#40702: 28.0.50; (what-cursor-position) barfs on non-ASCII char In-Reply-To: <83ftczifnh.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 19 Apr 2020 19:50:10 +0300") 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> <871roj5u0q.fsf@gmail.com> <83ftczifnh.fsf@gnu.org> 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@gmail.com> 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@secretsauce.net, 40702@debbugs.gnu.org, monnier@iro.umontreal.ca X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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@iro.umontreal.ca >> 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 From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 20 00:17:06 2020 Received: (at 40702) by debbugs.gnu.org; 20 Apr 2020 04:17:06 +0000 Received: from localhost ([127.0.0.1]:46408 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jQNrm-0002HK-N5 for submit@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 ) id 1jQNrh-0002Gj-Ud for 40702@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: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrgedvgdekudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpehffgfhvffujgffkfggtgesthdtredttdertdenucfhrhhomhepffhimhgrucfm ohhgrghnuceoughimhgrsehsvggtrhgvthhsrghutggvrdhnvghtqeenucfkphepuddtje drvddutddrvddufedrvdegfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpeguihhmrgesshgvtghrvghtshgruhgtvgdrnhgvth X-ME-Proxy: 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 ) id 1jQNrX-0007Ta-NE; Sun, 19 Apr 2020 21:16:51 -0700 References: <87r1wktrg4.fsf@shorty.i-did-not-set--mail-host-address--so-tickle-me> <87lfms5ul0.fsf@gmail.com> <87pnc4tox6.fsf@secretsauce.net> User-agent: mu4e 1.2.0; emacs 28.0.50 From: Dima Kogan To: Stefan Monnier Subject: Re: bug#40702: 28.0.50; (what-cursor-position) barfs on non-ASCII char In-reply-to: Date: Sun, 19 Apr 2020 21:16:51 -0700 Message-ID: <87k12au6z0.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 40702 Cc: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= , 40702@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Stefan Monnier 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? From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 20 09:27:38 2020 Received: (at 40702) by debbugs.gnu.org; 20 Apr 2020 13:27:38 +0000 Received: from localhost ([127.0.0.1]:46736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jQWSX-0000q7-Vd for submit@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 ) id 1jQWSW-0000pu-7M for 40702@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 To: Dima Kogan Subject: Re: bug#40702: 28.0.50; (what-cursor-position) barfs on non-ASCII char Message-ID: References: <87r1wktrg4.fsf@shorty.i-did-not-set--mail-host-address--so-tickle-me> <87lfms5ul0.fsf@gmail.com> <87pnc4tox6.fsf@secretsauce.net> <87k12au6z0.fsf@secretsauce.net> Date: Mon, 20 Apr 2020 09:27:27 -0400 In-Reply-To: <87k12au6z0.fsf@secretsauce.net> (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==?= , 40702@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 20 17:44:27 2020 Received: (at 40702) by debbugs.gnu.org; 20 Apr 2020 21:44:27 +0000 Received: from localhost ([127.0.0.1]:48570 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jQeDL-0005N4-Ht for submit@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 ) id 1jQeDJ-0005Mp-7O for 40702@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: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrgeefgdduheekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvufgjfffkgggtsehttdertddtredtnecuhfhrohhmpeffihhmrgcu mfhoghgrnhcuoeguihhmrgesshgvtghrvghtshgruhgtvgdrnhgvtheqnecukfhppedutd ejrddvuddtrddvudefrddvgeefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomhepughimhgrsehsvggtrhgvthhsrghutggvrdhnvght X-ME-Proxy: 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 ) id 1jQeDA-0005we-Uy; Mon, 20 Apr 2020 14:44:16 -0700 References: <87r1wktrg4.fsf@shorty.i-did-not-set--mail-host-address--so-tickle-me> <87lfms5ul0.fsf@gmail.com> <87pnc4tox6.fsf@secretsauce.net> <87k12au6z0.fsf@secretsauce.net> User-agent: mu4e 1.2.0; emacs 28.0.50 From: Dima Kogan To: Stefan Monnier Subject: Re: bug#40702: 28.0.50; (what-cursor-position) barfs on non-ASCII char In-reply-to: Date: Mon, 20 Apr 2020 14:44:16 -0700 Message-ID: <87eeshu91r.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 40702 Cc: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= , 40702@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Stefan Monnier 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? From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 29 23:45:20 2020 Received: (at 40702) by debbugs.gnu.org; 30 Sep 2020 03:45:20 +0000 Received: from localhost ([127.0.0.1]:57748 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNT3Q-000468-8Q for submit@debbugs.gnu.org; Tue, 29 Sep 2020 23:45:20 -0400 Received: from quimby.gnus.org ([95.216.78.240]:40466) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNT3N-00045s-Q9 for 40702@debbugs.gnu.org; Tue, 29 Sep 2020 23:45:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=62dRigguSM/TsbMhUE3SzibCCzKyvo+PrYO3hhc87N4=; b=ZFawE3z3SXPSiE2et52XQXvVHI VLEOmkGqBLxPsY+3UnfdKVyB9nS/S9eL7E0q5bDp71Gy/qIZK8jIf8PQhA0lTr8lPDb7VVfsZ4qgl w8hoshNuwuOY//hhnzqrsGqbZs2/lhxvARtogB5BCDmcsZ7p2zsKByFpU7pHv6ryWvI0=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kNT3C-0005xo-PZ; Wed, 30 Sep 2020 05:45:10 +0200 From: Lars Ingebrigtsen To: Stefan Monnier Subject: Re: bug#40702: 28.0.50; (what-cursor-position) barfs on non-ASCII char References: <87r1wktrg4.fsf@shorty.i-did-not-set--mail-host-address--so-tickle-me> <87lfms5ul0.fsf@gmail.com> <87pnc4tox6.fsf@secretsauce.net> X-Now-Playing: Robert Lippok's _Falling Into =?utf-8?Q?K=C3=B6meit=5F=3A?= "Holler" Date: Wed, 30 Sep 2020 05:45:05 +0200 In-Reply-To: (Stefan Monnier's message of "Sun, 19 Apr 2020 12:44:33 -0400") Message-ID: <87ft707wse.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Monnier writes: > 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 may [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 40702 Cc: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= , Dima Kogan , 40702@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Stefan Monnier writes: > 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? With 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 ./src/emacs -geometry -0+0 -Q I can reproduce the bug Dima is seeing, and Stefan's patch fixes the problem, and seems otherwise unproblematic, so I've pushed it to Emacs 28. There may be other, more general problems when running under the "C" locale, but... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 29 23:45:23 2020 Received: (at control) by debbugs.gnu.org; 30 Sep 2020 03:45:23 +0000 Received: from localhost ([127.0.0.1]:57751 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNT3T-00046N-FQ for submit@debbugs.gnu.org; Tue, 29 Sep 2020 23:45:23 -0400 Received: from quimby.gnus.org ([95.216.78.240]:40484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNT3R-00045x-M4 for control@debbugs.gnu.org; Tue, 29 Sep 2020 23:45:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6R7yWHMkVV8MjKYYKbeMtuuJM1KaAXNXG6bTZ4CKBbE=; b=ibBcbHj6RH5tHJv8O8cbP0vBK7 FNR0bZk/KPnA9/mnCWb+nYIpGRsRZ0Cln4PGVfPjhJZLTmFC5wS8HlbSva52ywBg88qLi/lf9YYLM jYzKbAY2+VaSZ0dUMJ9y185gdXwOfmjBsNisjqFHeTKlRBPYi7gKd3ja5PKjoH5Rq4tE=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kNT3J-0005xw-UI for control@debbugs.gnu.org; Wed, 30 Sep 2020 05:45:16 +0200 Date: Wed, 30 Sep 2020 05:45:12 +0200 Message-Id: <87eemk7ws7.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #40702 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 40702 fixed close 40702 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 40702 fixed close 40702 28.1 quit From unknown Sun Aug 17 22:12:44 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 28 Oct 2020 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator