From nobody Wed Sep 25 19:56:24 2024 X-Original-To: standards@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XDSCs0B67z5XfBZ for ; Wed, 25 Sep 2024 19:56:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XDSCr6G8hz4yTW for ; Wed, 25 Sep 2024 19:56:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727294184; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rdRpEX+tHUpM5ovsltCMvI2eF1zY/3IdHp3L7JqRzXQ=; b=D9xbZZgOo/RmXFxixc3c9AcquP9QcJ/QayG73s4FasbcILKaeZePUv7UtZLle++sqoRe9k 8RZ0GA43uMhcPG9FaXqCUM3ZUiOxOtU7Y3qob7n0Os54bnbmrXvGrq2X12rul6gPXqRokN IJFdx1lfv/b5MhZc/GKLmAjVN/WjpBg7WhgQYdP7ROyoKtpNFgQvXkGcnuDlE+Cbeq9agS WicpPMPPgBw1irgfMNzz+y6xfE7IgfBTy3vkd5kYulHloQvO2oFtGw9SQ8jtIMRUyBsNwx 0Q4uwxbjC50X10a/QgNbebv+ebQFq5qImu+N2Tuvd70CTVfqeH1Hl1VoIYByiw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727294184; a=rsa-sha256; cv=none; b=Vy/0GLlBUUKlMoEPfuLhgS7WgruKG2jH0ZneVD1Yh30ht3/aGEyliIGrZN34gpccKeoIU+ yE0Jeav9onEagT5LakkUgBz6E8Kkil+4kk+pKtG+dpthDPjSmpgbG3Dr5r2zSr6QREvIKb S6IlLjbAG/vH4qqUqGxYmWmAKuw5+a3ydgyWRZEF7wBfjk8wEbUNqJ6R5UERxdwJfjGObx QaGb7xMLh7cik3fZoWnM9VnJ7a3kVEgh3mOro19KlkuCw7S1JGzqZJwSpoUEaa4moPn3F0 24ok0gpNUQKuPSGF71WzKwHcgXlAtk5442IUk1GzTVtfvXqusne71wBUrRwKeA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XDSCr5R7czQfc for ; Wed, 25 Sep 2024 19:56:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 48PJuOwc055420 for ; Wed, 25 Sep 2024 19:56:24 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 48PJuOVw055419 for standards@FreeBSD.org; Wed, 25 Sep 2024 19:56:24 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 281710] RegEXP bug in bracket expression [^...] - sed(1), grep(1), re_format(7) Date: Wed, 25 Sep 2024 19:56:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: 14.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: erichanskrs@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kevans@freebsd.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-standards@freebsd.org Sender: owner-freebsd-standards@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281710 --- Comment #5 from Eric --- In reference to comment #1 & comment #2 If the referenced commit indeed solves the issue*-- I'm not experienced to judge, as it seems by various commit logs of regcomp= .c UTF-8/internal C (type) representation/handling are in play-- then, IMHO, from a committers POV, it may be considered whether this can/is= to be backported to stable/14 (or even stable/13) or have it wait until stable= /15.=20 I'm unfamiliar with the FreeBSD testing framework, but perhaps it might be useful to test against each other (singleton versus non-singleton) something like: [1] # echo '9=C3=A2' | /usr/bin/sed -En 's/([^=C3=A2])(=C3=A2)/-\1-\2-= /p' [2] # echo '9=C3=A2' | /usr/bin/sed -En 's/([^=C3=A2=C3=A2])(=C3=A2)/-= \1-\2-/p' -9-=C3=A2- The format of [2] could be used as a temporary workaround; HT to covacat: https://forums.freebsd.org/threads/bug-in-regexp-sed-1-grep-1-and-re_format= -7.95088/#post-673304 __ * I think this can be traced back to the intro of the singleton function co= mmit (stable/5 (~FreeBSD 5.3); commit Jul 12, 2004): https://github.com/freebsd/freebsd-src/commit/e5996857ad1f30f74f848a2c464c7= 5a7ae28e59a#diff-3b4acfb4853c13cf5b563a3b6813988d5c10b057520e0c35384e4dfbc9= 0e5793 where (apart from a minor parameter change) the function hasn't changed sin= ce. --=20 You are receiving this mail because: You are on the CC list for the bug.=