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: Thu, 04 Nov 2021 08:56:18 +0200 Message-ID: <83tugsflyl.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> <838ry5icmo.fsf@gnu.org> <87h7ct9iki.fsf@elite.giraud> <83bl31ghg0.fsf@gnu.org> <875yt99bzt.fsf@elite.giraud> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11792"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gregory@heytings.org, emacs-devel@gnu.org, stefan@marxist.se, cpitclaudel@gmail.com, monnier@iro.umontreal.ca To: Manuel Giraud Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 04 07:58:00 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 1miWhD-0002nt-8R for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Nov 2021 07:57:59 +0100 Original-Received: from localhost ([::1]:36294 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1miWhC-0000oA-7F for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Nov 2021 02:57:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53002) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miWff-00005e-JA for emacs-devel@gnu.org; Thu, 04 Nov 2021 02:56:23 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56620) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miWff-0000gr-4Z; Thu, 04 Nov 2021 02:56:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=lO+BsCY385ck+y8dZ/CP8MG647RKPuhIOs93dXZKQBw=; b=CEsDoNNDniU3bsTuxexS 3A13zWJaeJ349vAZGruRt4KZks/BvFYw+KBvKUnP/GvjceB4wCxA4YIevUQSouWF+H+yAcHQEZ6Mf w8avZBGqth2sPCf04k1sXhe+4Hi01doLKD5BUrBDSfjWW6JmO0aZ6w1UuCzipBGlJy+ODkYgaiS0X L4ilpvs0T0Tv9TGMAopR3UL7cxBDHevNTLlJvNYDDjCgCT6zqlCegSOkraMAVNoVwPvEhGVodFg0N M9wsmTXKpHxtY2d01CyIGumzMp9UFJgKTQFUu12K7f8o6N2IKj8NU5N000HndIBlzLwIYAyOb75Ep LVZOMjO0TO/LUQ==; Original-Received: from [87.69.77.57] (port=1246 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 1miWfb-00070x-0g; Thu, 04 Nov 2021 02:56:19 -0400 In-Reply-To: <875yt99bzt.fsf@elite.giraud> (message from Manuel Giraud on Wed, 03 Nov 2021 22:15:50 +0100) 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:278649 Archived-At: > From: Manuel Giraud > Cc: gregory@heytings.org, cpitclaudel@gmail.com, stefan@marxist.se, > monnier@iro.umontreal.ca, emacs-devel@gnu.org > Date: Wed, 03 Nov 2021 22:15:50 +0100 > > Eli Zaretskii writes: > > > Try it on the text of this message. > > > > ‮madam deified kayak‬ > > > > And then tell me: Who worshiped whom? > > Ok. On this one, bidi-find-overridden-directionality returns a position > but I get a nil on the Clément's example: > > if access_level != "user‮ ⁦// Check if admin⁩ ⁦" { > > which is the kind of overridden directionality we should have a warning > on, no? Did you read the doc string of bidi-find-overridden-directionality, which explains what kind of overrides it looks for? I already said that it will have to be extended to cover the examples from that paper. Those examples override the directionality of punctuation characters. By contrast, the original intent of this function was to detect reordering-caused confusions in URLs, where punctuation characters don't happen, and if they do, they are not the stuff which malevolent parties want to reorder.