From nobody Tue Aug 23 11:51: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 4MBndH1rxLz4ZTXd for ; Tue, 23 Aug 2022 11:51:47 +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 4MBndG4z7Yz3xc1 for ; Tue, 23 Aug 2022 11:51: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 4MBndG420hzT5Y for ; Tue, 23 Aug 2022 11:51: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 27NBpkYV044520 for ; Tue, 23 Aug 2022 11:51:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 27NBpkjb044518 for bugs@FreeBSD.org; Tue, 23 Aug 2022 11:51: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: Tue, 23 Aug 2022 11:51:46 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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=1661255506; 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; bh=OEWlIO3JjcZWoQBxYYjjFTRpdExf1JHq7+mYQXhnHT8=; b=jGUSlYjLVgiCRuRS3q1SedY+FEXxNAk822quqNkU7SYMdqNzKSN2+XGQ2at3SVGsZ/Mvgb z2SRYzzPmF9TworoswG8R2p+/UPEIRIQkKQ57T9e3zAnn8gChwAJZ0fNpPkgN290WpIWMx 2B1+qt8+uSqjpfgj010PXjlsATVuYIptA1MG47a65aIFev74ZE0fu8Tw/DgfNK2zOh9zN+ ZgWQuXL/VqoiwHC5NzDhRU0iPFtlLbWV9JHMI99XCfm0PM7U4/3kXGa46c5Qj2bG+lLtF/ +s8nMAFUiwGkhFf1Jk3rKFSZkOOKBKIaNE4/YGiUceUtTN7erST10TEYCE8fyw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661255506; a=rsa-sha256; cv=none; b=pBs7fHzop0o6DGBegc1+SePoiYHLRsGYCKDGns7KSE5FHpaPNmDU2Z99Dy0sjYhDh8XeWz 3WFdlSTy9e0iiums3IycODu1LzVqHdWkdopaSs/XtPqcbmxQ05tXzqJ23WTfqF3HQxNAYm xdkSwcDYdXaUxjc2QcxvpZ3a/635L2QLgFWFo5RQY5pRYSP2safeKuc/3Bj5ERusT2YTF+ ESCz1ZrKwC6DiqbX7cMFLdEWavb32XVZdX/GOtIOUUnmijZS1ed/TPP+Vb1LQ2q7B/51l9 STeXuiPWT7PH/rfDOhXYWPPYSfUGhlSShes/J8HD/CKgLjCq8o5WtjXtkPMBYg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266001 Bug ID: 266001 Summary: uniq says it's affected by LC_COLLATE, must not be according to POSIX Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: nabijaczleweli@nabijaczleweli.xyz The manual says: -- >8 -- ENVIRONMENT The LANG, LC_ALL, LC_COLLATE and LC_CTYPE environment variables affect the execution of uniq as described in environ(7). -- >8 -- This, presumably, means that uniq compares lines with strcoll(3) or equival= ent. Compare Issue 7, uniq, DESCRIPTION (https://pubs.opengroup.org/onlinepubs/9699919799/utilities/uniq.html): > The second and succeeding copies of repeated adjacent input lines shall n= ot be written. And APPLICATION USAGE: > To remove duplicate lines based on whether they collate equally instead o= f whether they are identical, applications should use: > sort -u Indeed, Issue 8 (Draft 2.1), following Bug 1070 (https://www.austingroupbugs.net/view.php?id=3D1070), explicitly clarifies = this: > If the collating sequence of the current locale does not have a total ord= ering of all characters, the behavior of sort | uniq differs from sort -u, = as uniq treats lines as duplicates only if they are identical, whereas sort= -u treats lines as duplicates if they collate equally. --=20 You are receiving this mail because: You are the assignee for the bug.=