Date: Fri, 19 Aug 2022 21:33:29 +0000 From: bugzilla-noreply@freebsd.org To: threads@FreeBSD.org Subject: [Bug 265950] POSIX 2008 locale failures when global locale not C Message-ID: <bug-265950-13406@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265950 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=3D236019&action= =3Dedit 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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-265950-13406>