[Bug 265950] POSIX 2008 locale failures when global locale not C

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 19 Aug 2022 21:33:29 UTC

            Bug ID: 265950
           Summary: POSIX 2008 locale failures when global locale not C
           Product: Base System
           Version: Unspecified
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: threads
          Assignee: threads@FreeBSD.org
          Reporter: khw@cpan.org
 Attachment #236019 text/plain
         mime type:

Created attachment 236019
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=236019&action=edit
A short C reproducer program

See attached program.

setlocale() is used to set up the global locale to C.UTF-8.  Then the
per-thread calls are used with that as a basis.  newlocale(Latin1), then
uselocale() of that new object yield an object which doesn't have Latin1

This bug does not happen if the global locale is C instead of C.UTF-8.

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