bug-gnulib
[Top][All Lists]
Advanced

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

Re: IBM z/OS compatibility issues - per-thread locale functions


From: Bruno Haible
Subject: Re: IBM z/OS compatibility issues - per-thread locale functions
Date: Sat, 14 Dec 2019 14:36:21 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-166-generic; KDE/5.18.0; x86_64; ; )

On Freitag, 13. Dezember 2019 15:33:42 CET Daniel Richard G. wrote:
> On Fri, 2019 Dec 13 05:32-05:00, Bruno Haible wrote:
> > 
> > This should fix it. Thanks for the feedback.
> 
> Arrrgh, not quite there yet  >_<
> 
> Tested Git 83710ffa. test-locale now builds, but test-duplocale still
> does not, failing in the same place. HAVE_WORKING_DUPLOCALE appears to
> be 1 (true).

Oops. The patch below should fix that (hopefully).

> Isn't it possible to get a final result of HAVE_DUPLOCALE=0,
> REPLACE_DUPLOCALE=0,

We have that result already, as you showed through
'grep -i locale config.status'.


2019-12-14  Bruno Haible  <address@hidden>

        locale, duplocale, localename: Fix last patch.
        Reported by Daniel Richard G. in
        <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
        * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
        Don't define if locale_t does not exist.

diff --git -i a/lib/locale.in.h b/lib/locale.in.h
index c0915a5..9e897a3 100644
--- a/lib/locale.in.h
+++ b/lib/locale.in.h
@@ -227,9 +227,11 @@ _GL_CXXALIAS_SYS (newlocale, locale_t,
 # if @HAVE_NEWLOCALE@
 _GL_CXXALIASWARN (newlocale);
 # endif
+# if @HAVE_NEWLOCALE@ || @REPLACE_NEWLOCALE@
 #  ifndef HAVE_WORKING_NEWLOCALE
 #   define HAVE_WORKING_NEWLOCALE 1
 #  endif
+# endif
 #elif defined GNULIB_POSIXCHECK
 # undef newlocale
 # if HAVE_RAW_DECL_NEWLOCALE
@@ -254,9 +256,11 @@ _GL_CXXALIAS_SYS (duplocale, locale_t, (locale_t locale));
 # if @HAVE_DUPLOCALE@
 _GL_CXXALIASWARN (duplocale);
 # endif
+# if @HAVE_DUPLOCALE@ || @REPLACE_DUPLOCALE@
 #  ifndef HAVE_WORKING_DUPLOCALE
 #   define HAVE_WORKING_DUPLOCALE 1
 #  endif
+# endif
 #elif defined GNULIB_POSIXCHECK
 # undef duplocale
 # if HAVE_RAW_DECL_DUPLOCALE




reply via email to

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