]> git.ipfire.org Git - thirdparty/gettext.git/commit
intl: Add support for per-thread locales on Solaris 11.4.
authorBruno Haible <bruno@clisp.org>
Mon, 22 Oct 2018 23:02:02 +0000 (01:02 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 22 Oct 2018 23:02:02 +0000 (01:02 +0200)
commit87f97355050c19391466406e9a820e36b3ebdcae
treee2027363b056aa64e671fd7957d04c9021be6ad5
parentdef26dcaea3cb8c765c8bea5e0d8533443524f4f
intl: Add support for per-thread locales on Solaris 11.4.

Relies on the recent changes to the 'localename' module in gnulib.

* gettext-runtime/intl/localename.c: Apply changes from gnulib.
* gettext-runtime/intl/localename-table.h: New file, from gnulib.
* gettext-runtime/intl/localename-table.c: New file, from gnulib.
* gettext-runtime/intl/libgnuintl.in.h (newlocale, duplocale, freelocale): New
overriding declarations.
* gettext-runtime/intl/Makefile.in (HEADERS): Add localename-table.h.
(SOURCES): Add localename-table.c.
(OBJECTS): Add localename-table.$lo.
(localename-table.lo): New target.
(libgnuintl.h, libintl.h): Substitute also HAVE_NAMELESS_LOCALES.
* gettext-runtime/m4/intl.m4: Apply changes from gnulib:
(gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and 'getlocalename_l'.
Instead, invoke gt_INTL_SOLARIS. Set HAVE_NAMELESS_LOCALES.
* gettext-runtime/m4/intlsolaris.m4: New file, from gnulib.
* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Add it.
* gettext-tools/m4/Makefile.am (aclocal_DATA): Add intlsolaris.m4.
* gettext-tools/misc/gettextize.in (m4filelist): Add intlsolaris.m4.
* Makefile.am (distcheck-hook): Verify that intlsolaris.m4 is consistent with
gnulib.
* gettext-tools/doc/gettext.texi (aclocal): Add intlsolaris.m4 to the file list.
* PACKAGING: Add intlsolaris.m4 to the list of installed files.
* NEWS: Mention the change.
14 files changed:
Makefile.am
NEWS
PACKAGING
gettext-runtime/intl/Makefile.in
gettext-runtime/intl/libgnuintl.in.h
gettext-runtime/intl/localename-table.c [new file with mode: 0644]
gettext-runtime/intl/localename-table.h [new file with mode: 0644]
gettext-runtime/intl/localename.c
gettext-runtime/m4/Makefile.am
gettext-runtime/m4/intl.m4
gettext-runtime/m4/intlsolaris.m4 [new file with mode: 0644]
gettext-tools/doc/gettext.texi
gettext-tools/m4/Makefile.am
gettext-tools/misc/gettextize.in