]> Savannah Git Hosting - gnulib.git/commit
duplocale: Support all platforms.
authorBruno Haible <bruno@clisp.org>
Fri, 14 Feb 2025 04:56:55 +0000 (05:56 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 14 Feb 2025 05:03:31 +0000 (06:03 +0100)
commita5ce928de09dad7d429f96d5e23ce59c93bc2039
treef0c23bb703c5e5b169ec122d1ce3b4e93b71f1da
parent04364b924d42f21ad2a6d5a28e01ef5dc24141c0
duplocale: Support all platforms.

* lib/locale.in.h (duplocale): Declare also on platforms that don't
already have a duplocale function. Don't define HAVE_WORKING_DUPLOCALE.
* lib/duplocale.c: Include <stdlib.h>.
(duplocale): Renamed from rpl_duplocale. Add implementation for
platforms without native locale_t.
* modules/duplocale (Depends-on): Add newlocale, freelocale.
(configure.ac): Compile also on platforms without native locale_t.
* tests/test-duplocale.c: Ignore HAVE_WORKING_DUPLOCALE.
* tests/test-locale-h-c++.cc: Likewise.
* doc/posix-functions/duplocale.texi: Mention the change.
ChangeLog
doc/posix-functions/duplocale.texi
lib/duplocale.c
lib/locale.in.h
modules/duplocale
tests/test-duplocale.c
tests/test-locale-h-c++.cc