[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-threads
Subject:    [Bug 265950] POSIX 2008 locale failures when global locale not C
From:       bugzilla-noreply () freebsd ! org
Date:       2022-08-19 21:33:29
Message-ID: bug-265950-13406 () https ! bugs ! freebsd ! org/bugzilla/
[Download RAW message or body]

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

            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
characteristics.

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.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic