From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Unicode confusables and reordering characters considered harmful Date: Wed, 03 Nov 2021 15:37:19 +0200 Message-ID: <838ry5icmo.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31980"; mail-complaints-to="usenet@ciao.gmane.io" Cc: cpitclaudel@gmail.com, stefan@marxist.se, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Gregory Heytings Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 03 14:42:24 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 1miGX2-00088q-NX for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Nov 2021 14:42:24 +0100 Original-Received: from localhost ([::1]:44854 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1miGX1-00023u-Kf for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Nov 2021 09:42:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37684) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miGS9-0003cN-MP for emacs-devel@gnu.org; Wed, 03 Nov 2021 09:37:21 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51436) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miGS9-00064A-6C; Wed, 03 Nov 2021 09:37:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=m/3sfzjwteqiEaFDDJkpydWZjIKrKxIXZ6X+3gNpMxc=; b=BcWWse+S9vME bmKS3nj++byT4roM1jbUsxVf9sVi/fslTPm2OERfOrUxTOlkKh90cd63zcHv2UH13aocVJxP0OtQZ +FcCCd16NgjvXNEakJrn0kTHiKhfogPTGN3M+CTYBkYxzoofUiVOLdMxv6R5kQ6PpV4K0LDuSifiF vRmFeY4n/nRPGosJtnRUklNqot8Bgt1f4u0QWbjUd6qZTzBW22Xcm+yEze9TpT46EYToDd0WOPIMg 0+R/h01ghdykE3rZCBn5eEUsbNS+dnAp8c/rxkGHJ6vwu6umixrlXr5CDBGGVo9jyE4oqd/1r9t1J nOICpmG05KDAmSJqwdXkyg==; Original-Received: from [87.69.77.57] (port=4923 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miGS8-0000bN-Nu; Wed, 03 Nov 2021 09:37:21 -0400 In-Reply-To: <11d5fecb449846dc0851@heytings.org> (message from Gregory Heytings on Wed, 03 Nov 2021 09:59:46 +0000) 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:278578 Archived-At: > Date: Wed, 03 Nov 2021 09:59:46 +0000 > From: Gregory Heytings > cc: Eli Zaretskii , Stefan Kangas , > cpitclaudel@gmail.com, emacs-devel@gnu.org > > There's some data that shows that this is extremely rare in general: the > Rust Security Response WG analyzed the 70322 crates and found only 5 in > which these codepoints were present (see [1]). That's ~0.01 %. > > Moreover such highlighting does not make the source code or text > unreadable, even in those few legitimate cases. The statistics are irrelevant when you actually need to deal with such a rare case. > Therefore I suggest to experiment with the attached patch during a month > or so, and see if there are objections. I object already. We shouldn't settle for easy half-solutions when we are fully capable of implementing the much more complete and accurate ones.