From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Unicode confusables and reordering characters considered harmful Date: Wed, 03 Nov 2021 14:47:26 -0400 Message-ID: References: <875ytag0hb.fsf@yahoo.com> <87zgqmd5np.fsf@mat.ucm.es> <83wnlqk3rn.fsf@gnu.org> <72dd5c2a-42c7-b12e-05ed-e93adbd89727@gmail.com> <83ilxajyhw.fsf@gnu.org> <83fssejxf8.fsf@gnu.org> <835ytajsv2.fsf@gnu.org> <11d5fecb44af1d388b7f@heytings.org> <11d5fecb449846dc0851@heytings.org> <875yt932ar.fsf@igel.home> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8745"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Gregory Heytings , Eli Zaretskii , Stefan Kangas , cpitclaudel@gmail.com, emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 03 19:48:56 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1miLJe-00024z-7s for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Nov 2021 19:48:54 +0100 Original-Received: from localhost ([::1]:49304 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1miLJd-0006Wv-5V for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Nov 2021 14:48:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36464) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miLIQ-0005gq-LD for emacs-devel@gnu.org; Wed, 03 Nov 2021 14:47:38 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:39638) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miLIJ-0000XB-Ni; Wed, 03 Nov 2021 14:47:34 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 4C7621003B4; Wed, 3 Nov 2021 14:47:29 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id BB5BF10018C; Wed, 3 Nov 2021 14:47:27 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1635965247; bh=IBxJjwZ0auqUlRLhzhhuWG4JvmaTUgB3hc2J//Almd8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=izWt9LFVFTfyAC+xmm/B4w3Wz+pckBKuaaiSBBGs0T+FNbvVvwQcEl2C4j7D4ffB9 0jMJObpMvkXC0xB4Nyu5Dy3Y6slz2B7uUnZ7y2qaCBPcca0izrmR5BKE+AH7Zotbs7 8SVHwlfsCSc6s0+6dYdcR560N9CO1Ofy6FFkFAds1z85YnxTk01xBdCjCfn6yxEZiU rFO+oM7UnrYFe9IbRPfEvdMhmuvro1UkauLrfFT8xtTGCvP/TnSBdyV4kCJbt/Bpsl 1E+KJ5AS82hKsKAiMfqcnwLiClMrNBHhsSe/QYbu6aeWxQ1ItyJeyKIoG1yuPk+gmU akDOQPy8KDn4w== Original-Received: from pastel (unknown [45.72.241.23]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 7A2A6120262; Wed, 3 Nov 2021 14:47:27 -0400 (EDT) In-Reply-To: <875yt932ar.fsf@igel.home> (Andreas Schwab's message of "Wed, 03 Nov 2021 12:29:32 +0100") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:278603 Archived-At: >> + (aset buffer-display-table ?=E2=80=AA [?=E2=86=92]) >> + (aset buffer-display-table ?=E2=80=AB [?=E2=86=90]) >> + (aset buffer-display-table ?=E2=80=AD [?=E2=86=92]) >> + (aset buffer-display-table ?=E2=80=AE [?=E2=86=90]) >> + (aset buffer-display-table ?=E2=81=A6 [?=E2=86=92]) >> + (aset buffer-display-table ?=E2=81=A7 [?=E2=86=90]) >> + (aset buffer-display-table ?=E2=81=A8 [?=E2=86=93]) >> + (aset buffer-display-table ?=E2=80=AC [?=E2=86=91]) >> + (aset buffer-display-table ?=E2=81=A9 [?=E2=86=91]) > > A perfect example of how legitimate use of these characters can mess up > your source. :-) FWIW, I think the source would be clearer if it used `?\u{CHARNAME}` instead of the literal chars. Stefan "who usually prefers `?` over `?\u<...>`, but not when the char is non-printing"