Page MenuHomeFreeBSD

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

Authored by yuripv on May 6 2021, 10:00 AM.

Details

Reviewers
bapt
markj
Summary

This fixes 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

Test Plan

See added test case.

Run other libc tests.

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

yuripv created this revision.
This revision is now accepted and ready to land.May 6 2021, 11:42 AM
markj added inline comments.
lib/libc/tests/locale/newlocale_test.c
2

This should have an SPDX identifier I think.