[Bug 266001] uniq says it's affected by LC_COLLATE, must not be according to POSIX

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 12 Oct 2022 16:18:49 UTC

Baptiste Daroussin <bapt@FreeBSD.org> changed:

           What    |Removed                     |Added
             Status|New                         |Closed
         Resolution|---                         |Works As Intended

--- Comment #1 from Baptiste Daroussin <bapt@FreeBSD.org> ---
In your first link, I can read:

When using uniq to process pathnames, it is recommended that LC_ALL, or at
least LC_CTYPE and LC_COLLATE, are set to POSIX or C in the environment, since
pathnames can contain byte sequences that do not form valid characters in some
locales, in which case the utility's behavior would be undefined. In the POSIX
locale each byte is a valid single-byte character, and therefore this problem
is avoided.

which is also the justification for using back a strcoll (now wcscoll)

Am I missing something? if yes please reopen the PR.

You are receiving this mail because:
You are the assignee for the bug.