From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#73312: 31.0.50; textsec test failure because of UTS #46 changes Date: Tue, 17 Sep 2024 12:11:50 +0200 Message-ID: <87ed5ik2s9.fsf@gmail.com> 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="2260"; mail-complaints-to="usenet@ciao.gmane.io" To: 73312@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 17 12:13:12 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1sqVCq-0000Ot-NI for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Sep 2024 12:13:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqVCT-0007w6-P0; Tue, 17 Sep 2024 06:12:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sqVCS-0007vT-OR for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 06:12:48 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sqVCS-0003DH-7h for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 06:12:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=F5g9KRB+mBLl3HpTmD/71cf2hgcQkOO9bh53qFyYCek=; b=DxlEZXbit3gYkClPFCqfrnC/stQCqNInzs+9Yl/OCF4og4W5OEicEBNXumI/pmX0BhN4MEZ0bRfhKkSI6eo6fiVdE+qC2EDnuLhkhZN5tH2D6k38oAG9OaO2zG/McVf6bTTiLFQkx3Wm4rrZ4sHcjCd6nqysxSOqRFzyU4QWZhDj/BzXASsaxPTPCrDbr3+zjm8bhoxenj+KosrYiT1XvOw+avs8Y0spU9+yVzMdg7m/8Swjfz7KAhWpryjvzuVfjch3fzpxHfgSO1yvd7M9kgyWLFbI5C4EABRMs+Zb40irskFw2yUNw+i0TIrihY0UkjcrwuFVq/eZMXqKNsaROw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sqVCg-00020p-Gb for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 06:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Sep 2024 10:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73312 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17265679347651 (code B ref -1); Tue, 17 Sep 2024 10:13:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Sep 2024 10:12:14 +0000 Original-Received: from localhost ([127.0.0.1]:53899 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqVBt-0001zJ-P8 for submit@debbugs.gnu.org; Tue, 17 Sep 2024 06:12:14 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:52278) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqVBr-0001z9-93 for submit@debbugs.gnu.org; Tue, 17 Sep 2024 06:12:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sqVBc-0007eO-HH for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 06:11:56 -0400 Original-Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sqVBa-0003Al-OD for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 06:11:56 -0400 Original-Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-374c1963cb6so3712398f8f.3 for ; Tue, 17 Sep 2024 03:11:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726567913; x=1727172713; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=F5g9KRB+mBLl3HpTmD/71cf2hgcQkOO9bh53qFyYCek=; b=WTjj3yJFu0CU28exwPVt15haGPmcijWVlRVCCqpXnzsfx2A4yLQ7rLcKB7sUbje/WW 5e+9I5ZfYBI6nO53oQ6PPP4gAGAWD3vvl1Gtue+qyEFZ/2gUI0vLtf3fm3DCM6VkhH5O 7MsabqqziDWLBT479ru5kJAWW/UF1Zsnx/ZEDpqHEl90ATp4JL/E/hQQd4gXefLnMuVr WrDG06ffg8Pc0zqbD5bxVRBQSWtQNByNn9LrtUQYytsCisliecOG9RrgvxwHCqXRdJYL pY6zg2UCDiiWTZQ5t5F+Htt4xyhbZga1UaWNZoeEQqXlv3Wjyp7NgFi1Zzu3nHTwrPoc MF8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726567913; x=1727172713; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=F5g9KRB+mBLl3HpTmD/71cf2hgcQkOO9bh53qFyYCek=; b=szq+AWFWukBVlITyXAqnGQjGcd6HE1BvYeolKWK5qPEtQvHmVoSKVegiHYiJ4N//od G87q6KXoHErQZ+p0KTjrPEIOjjPPAU11/t7XfhqHyh8fzMJb3oJEziro4feH/VyZuhmy jH8rHvBit3h4/J5bkqavE6CiOF5M98090NiM0//q8xxPfOR7kZc0YCCtvI5hslABZKPh /18dHeSPZFCdLzKtXVIdF5H2EfR86MmFczkBc3QyPjgqtqPptkmXOJsyJTuQXzDdew1a hcQpOZkcavW6rfAOo8vBLruAx77+ddmj/BkeYTj9FUpmawrzOTqrtS7m76ut2qAQ5APS L+jQ== X-Gm-Message-State: AOJu0YwHpop5vzPAw76BH+ioisBaBadQnpXzu/0PQQ3IqhBPfhfItaco CrfwQZBIY/OtpTQak3RIkFpEnn069VIFEacenK01mp3AGxjawndsYu5Msg== X-Google-Smtp-Source: AGHT+IGyAgJTzeZ2a0TMtbci7E7N1qqYz6c9F3br4GQQi9YuUmrfYqENgEYJnYZJ9u5qWOmIWD7skQ== X-Received: by 2002:a5d:44c2:0:b0:378:89d8:822e with SMTP id ffacd0b85a97d-378c2d114cemr10426641f8f.27.1726567912393; Tue, 17 Sep 2024 03:11:52 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb51:ab95:3325:d04:7fc6]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-378e71f0699sm9057278f8f.15.2024.09.17.03.11.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Sep 2024 03:11:51 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=rpluim@gmail.com; helo=mail-wr1-x436.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:291930 Archived-At: Following the update to Unicode 16, the textsec tests now fail: GEN lisp/international/textsec-tests.log Running 12 tests (2024-09-17 11:51:51+0200, selector `(not (or (tag :unstab= le) (tag :nativecomp)))') passed 1/12 test-confusable (0.001562 sec) passed 2/12 test-minimal-scripts (0.000155 sec) passed 3/12 test-mixed-numbers (0.000846 sec) passed 4/12 test-resolved (0.000120 sec) passed 5/12 test-restriction-level (0.000259 sec) passed 6/12 test-scripts (0.000354 sec) passed 7/12 test-suspicious-email (0.001587 sec) passed 8/12 test-suspicious-link (0.015283 sec) passed 9/12 test-suspicious-local (0.000522 sec) passed 10/12 test-suspicious-name (0.000420 sec) passed 11/12 test-suspicious-url (0.000498 sec) Test test-suspiction-domain backtrace: signal(ert-test-failed (((should (textsec-domain-suspicious-p "foo/b ert-fail(((should (textsec-domain-suspicious-p "foo/bar.org")) :form (if (unwind-protect (setq value-222 (apply fn-220 args-221)) (setq f (let (form-description-224) (if (unwind-protect (setq value-222 (app (let ((value-222 'ert-form-evaluation-aborted-223)) (let (form-descr (let* ((fn-220 #'textsec-domain-suspicious-p) (args-221 (condition-c #f(lambda () [t] (let* ((fn-220 #'textsec-domain-suspicious-p) (args #f(compiled-function () #)() handler-bind-1(#f(compiled-function () # Anyway, willfully ignoring their verbiage about normative markings, the following fixes it for me, at least until the next version of UTS #46, I guess. diff --git a/admin/unidata/unidata-gen.el b/admin/unidata/unidata-gen.el index 7be03fe63af..adbe9c83670 100644 --- a/admin/unidata/unidata-gen.el +++ b/admin/unidata/unidata-gen.el @@ -1598,15 +1598,21 @@ unidata-gen-idna-mapping (let ((map (make-char-table nil))) (with-temp-buffer (unidata-gen--insert-file "IdnaMappingTable.txt") - (while (re-search-forward "^\\([0-9A-F]+\\)\\(?:\\.\\.\\([0-9A-F]+\\= )\\)? +; +\\([^ ]+\\) +\\(?:; +\\([ 0-9A-F]+\\)\\)?" + (while (re-search-forward "^\\([0-9A-F]+\\)\\(?:\\.\\.\\([0-9A-F]+\\= )\\)? +; +\\([^ ]+\\) +\\(?:; +\\([ 0-9A-F]+\\)\\)?\\(?:; \\(NV8\\|XV8\\)\\= )?" nil t) (let ((start (match-string 1)) (end (match-string 2)) (status (match-string 3)) - (mapped (match-string 4))) + (mapped (match-string 4)) + (idna-status (match-string 5))) ;; Make reading the file slightly faster by using `t' ;; instead of `disallowed' all over the place. - (when (string-match-p "\\`disallowed" status) + (when (or (string-match-p "\\`disallowed" status) + ;; UTS#46 messed us about with "status =3D valid" for + ;; invalid characters, so we need to check for "NV8" or + ;; "XV8". + (string=3D idna-status "NV8") + (string=3D idna-status "XV8")) (setq status "t")) (unless (or (equal status "valid") (equal status "deviation")) Robert --=20