HomeFreeBSD

libc: use separate collate objects for C, POSIX, and C.UTF-8

Description

libc: use separate collate objects for C, POSIX, and C.UTF-8

Fix newlocale() overwriting the locale name in collate object
when same instance was used for those locales, and querylocale()
reporting unexpected value for LC_COLLATE_MASK.

PR: 255646, 269375
Reviewed by: markj, bapt (previous version)
Differential Revision: https://reviews.freebsd.org/D30146

(cherry picked from commit 269dea90d6eb32690730b0f6a17fb41170483104)

Details

Provenance
yuripvAuthored on Mar 28 2023, 3:10 PM
Reviewer
markj
Differential Revision
D30146: libc: use separate collate objects for C, POSIX, and C.UTF-8
Parents
rG8303afca1765: net: Check per-flow priority code point for untagged traffic
Branches
Unknown
Tags
Unknown