From nobody Mon Oct 24 21:31:46 2022 X-Original-To: bugs@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 4Mx7Yt5yCJz4gpmv for ; Mon, 24 Oct 2022 21:31:46 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mx7Yt38FLz3C0n for ; Mon, 24 Oct 2022 21:31:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 4Mx7Yt2CGTzMn3 for ; Mon, 24 Oct 2022 21:31:46 +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 29OLVkM3081755 for ; Mon, 24 Oct 2022 21:31:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 29OLVkr2081754 for bugs@FreeBSD.org; Mon, 24 Oct 2022 21:31:46 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: bugs@FreeBSD.org Subject: [Bug 266001] uniq says it's affected by LC_COLLATE, must not be according to POSIX Date: Mon, 24 Oct 2022 21:31:46 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: nabijaczleweli@nabijaczleweli.xyz X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666647106; 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=6i9gLDpJ8GVMD1zREiJIIbIYouduGORL9DqyAGYmMJU=; b=iCPeqvcNBQeQZqmDH1PZc7vxwiycrvuvivh5zc0unA+ghTDdUiXa5fDL/7Nm7yOMUSe4pj jPsxr7gB5UB/pQKQg4pCcu5IV6HCNUHwuECAifeAUgk/xU+QGrsM/3+gaxzUp53fdxj/Vj 0TG211LHUBIPUCEJchyyvuFlTU2Iv2g3Mf4bJxNWMovIotGzC/8JxqmNVSbKFipnMlsCYl H7+NV6daLrPj53vVRGkKx7l1QLjQ9SfYJbBGgGXdQ/fgnU7eW/qk5lGpCjvEZ1UbmQa9X7 2EfiMBnWYGs4fPkDKYgE8JanTb2Gxh1nBXXINwt5IXhjdcXK3BoN6J/P1edmRw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666647106; a=rsa-sha256; cv=none; b=GF6kLki2mXQndzVOsRu0RIhUJMsm6NSFW19IeVKSn0FAHfrqvnG6WdjYUSYF3N++sU6TU1 L+VoSo5Hk7LV5z7nRGVvZEhquloe8aQrtOnZ3ehPqrFc6hcv/u2pCEYdVnTslfflzdyQJz NnCSYrGVdD/XWtHz/ybOtZGnaIorEzQx4284PpW/d+BWwQT3rRjdNuoiFpZ+EU6Qu0HPMT HuVNu1Ev31bj7BpfA7M+jjCzCwyBySHwWP62i5KfjxAlQQ1R995RkqUz+vkkAfrTW8aAEX HzJFwmXeJC4eTXfEPtg1tKslWWWHfsrZApAUwggjTGDOX2FI5RhDT8ob3mvwXQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266001 =D0=BD=D0=B0=D0=B1 changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|Works As Intended |--- Status|Closed |Open --- Comment #2 from =D0=BD=D0=B0=D0=B1 = --- POSIX.1 Issue 8 Draft 2.1 says (ll. 111035-111036): Issue 8 Austin Group Defect 1070 is applied, changing the APPLICATION USAGE section. I.e.: https://www.austingroupbugs.net/view.php?id=3D1070 Please grep down to "On Page: 3310 Line: 111099 Section: uniq" there. Notably, this updates APPLICATION USAGE, which is non-normative, to align w= ith the actual hard description, to: The sort utility can be used to cause repeated lines to be adjacent in the input file. If the collating sequence of the current locale does not have a total ordering of all characters, the behavior of sort | uniq differs fr= om sort -u, as uniq treats lines as duplicates only if they are identical, whereas sort -u treats lines as duplicates if they coll= ate equally. The actual normative text is the same as it is in https://pubs.opengroup.org/onlinepubs/9699919799/utilities/uniq.html In which /no mention/ is made of "collation" or "equivalence", and LC_COLLA= TE is /not/ listed in the ENVIRONMENT VARIABLES =E2=80=93 lines are "compared"= , i.e. strcmp(). This is the precise difference between sort -u and sort | uniq. --=20 You are receiving this mail because: You are the assignee for the bug.=