localename: Fine-tune support for per-thread locales on Solaris 11.4.
commitde62ab01a4b868acadc33ea6edec95d279664aa7
authorBruno Haible <bruno@clisp.org>
Mon, 22 Oct 2018 00:38:39 +0000 (22 02:38 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 22 Oct 2018 00:38:39 +0000 (22 02:38 +0200)
treec5be9bf0986a4cb81e4a79082be55db38ae8cffe
parentff999a89d151ac2f43df80321e4ea88555bd81ec
localename: Fine-tune support for per-thread locales on Solaris 11.4.

* lib/localename-table.h: New file, extracted from lib/localename.c.
* lib/localename-table.c: Likewise.
* lib/localename.c: Include localename-table.h.
(get_locale_t_name, newlocale, duplocale, freelocale): Invoke
locale_hash_function instead of pointer_hash.
* modules/localename (Files): Add lib/localename-table.h,
lib/localename-table.c.
(lib_SOURCES): Add localename-table.c.
* m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
for Solaris 11.4 locale system only on Solaris. Test for it
independently whether getlocalename_l exists.
* m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
HAVE_NAMELESS_LOCALES.
* modules/gettext (Files): Add m4/intlsolaris.m4.
ChangeLog
lib/localename-table.c [new file with mode: 0644]
lib/localename-table.h [new file with mode: 0644]
lib/localename.c
m4/intlsolaris.m4
modules/gettext
modules/localename