[PATCH] libstdc++: implement locale support for AIX

Jonathan Wakely jwakely@redhat.com
Tue Jan 12 17:34:27 GMT 2021

On 12/01/21 10:44 -0500, David Edelsohn wrote:
>On Tue, Jan 12, 2021 at 10:25 AM Jonathan Wakely <jwakely@redhat.com> wrote:
>> On 12/01/21 15:14 +0000, CHIGOT, CLEMENT wrote:
>> >Hi everyone,
>> >
>> >I've reworked the patch to merged dragonfly and AIX
>> >models into the new one named "ieee_1003.1-2008".
>> >It seems okay on the AIX part but if someone can test
>> >on Dragonfly and Freebsd I would be glad. Configure
>> >needs to be regenerated, first.
>> Presumably it could also be tested on GNU/Linux and Solaris, since
>> they implement the POSIX 2008 APIs needed.
>GNU/Linux currently uses the "gnu" locale configuration.  Are you
>suggesting that GNU/Linux use the new POSIX 2008 locale configuration
>by default or to use GNU/Linux as another sniff test?

I'm suggesting to use it for testing that the new config is portable
to other systems that provide the POSIX 2008 APIs.

We wouldn't want to use it by default, because POSIX doesn't provide
strtod_l etc that glibc provides. But maybe the "gnu" model should use
newlocale and uselocale instead of __newlocale etc. so that we depend
on fewer GNU extensions that are only defined with _GNU_SOURCE.

More information about the Libstdc++ mailing list