[Bug 255646] newlocale(LC_ALL_MASK, (locale_t) 0) wrongly destroys LC_COLLATE in an existing object
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 20 Sep 2023 13:27:08 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255646 --- Comment #4 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=a4916232acd614d4d7d7226d678b427aacb9730e commit a4916232acd614d4d7d7226d678b427aacb9730e Author: Yuri Pankov <yuripv@FreeBSD.org> AuthorDate: 2023-03-28 15:10:47 +0000 Commit: Yuri Pankov <yuripv@FreeBSD.org> CommitDate: 2023-09-20 13:10:52 +0000 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) lib/libc/locale/collate.c | 17 +++- lib/libc/tests/locale/Makefile | 1 + lib/libc/tests/locale/newlocale_test.c (new) | 111 +++++++++++++++++++++++++++ 3 files changed, 126 insertions(+), 3 deletions(-) -- You are receiving this mail because: You are on the CC list for the bug.