bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: localename: Add support for per-thread locales on Solaris 11.4


From: Bruno Haible
Subject: Re: localename: Add support for per-thread locales on Solaris 11.4
Date: Mon, 22 Oct 2018 02:53:07 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-137-generic; KDE/5.18.0; x86_64; ; )

A week ago, I wrote:

> 2018-10-14  Bruno Haible  <address@hidden>
> 
>       localename: Add support for per-thread locales on Solaris 11.4.

Integration into the libintl of GNU gettext requires some changes in
this code. In particular, the hash table that maps the locale_t object
to the list of locale category names must be defined in a separate
compilation unit, otherwise duplicate symbol conflicts could occur
when compiling a package with --disable-shared that uses both libintl
and the gnulib module 'localename'.

Currently this code does not really get installed by GNU gettext
on Solaris 11.4, because the gettext() implementation in Solaris libc
is good enough. But this might change at any moment: when a bug in
Solaris libc's gettext() is discovered that requires a workaround,
or when GNU gettext continues to extend the .mo file format.


2018-10-21  Bruno Haible  <address@hidden>

        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.

2018-10-21  Bruno Haible  <address@hidden>

        Small update from gettext.
        * m4/intl.m4: Update from gettext:
        - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
        mode on AIX.
        - 2018-01-02: Don't use -lc explicitly when linking with libtool.
        - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.

Attachment: 0001-Small-update-from-gettext.patch
Description: Text Data

Attachment: 0002-localename-Fine-tune-support-for-per-thread-locales-.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]