diff options
author | Bruno Haible <bruno@clisp.org> | 2018-10-22 02:38:39 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2018-10-22 02:38:39 +0200 |
commit | de62ab01a4b868acadc33ea6edec95d279664aa7 (patch) | |
tree | c5be9bf0986a4cb81e4a79082be55db38ae8cffe /modules | |
parent | ff999a89d151ac2f43df80321e4ea88555bd81ec (diff) | |
download | gnulib-de62ab01a4b868acadc33ea6edec95d279664aa7.tar.gz |
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.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gettext | 1 | ||||
-rw-r--r-- | modules/localename | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/modules/gettext b/modules/gettext index 8c94e2d10c..15cf53b7a1 100644 --- a/modules/gettext +++ b/modules/gettext @@ -20,6 +20,7 @@ m4/intdiv0.m4 m4/intl.m4 m4/intldir.m4 m4/intlmacosx.m4 +m4/intlsolaris.m4 m4/intmax.m4 m4/inttypes_h.m4 m4/inttypes-pri.m4 diff --git a/modules/localename b/modules/localename index 29c43213de..cb848b5dcb 100644 --- a/modules/localename +++ b/modules/localename @@ -4,6 +4,8 @@ Return current locale's name, according to glibc naming conventions. Files: lib/localename.h lib/localename.c +lib/localename-table.h +lib/localename-table.c m4/localename.m4 m4/intlmacosx.m4 m4/intlsolaris.m4 @@ -22,7 +24,7 @@ gl_LOCALENAME gl_LOCALE_MODULE_INDICATOR([localename]) Makefile.am: -lib_SOURCES += localename.c +lib_SOURCES += localename.c localename-table.c Include: "localename.h" |