Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Oct 2022 16:18:49 +0000
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
Message-ID:  <bug-266001-227-kI2jlSqi0m@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-266001-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266001

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)
functions:
https://cgit.freebsd.org/src/commit/?id=e12155c8345909beaf654cc023f613a62b977db5

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

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

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-266001-227-kI2jlSqi0m>