texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: Include xlocale.h for newlocale and other symbols


From: Patrice Dumas
Subject: branch master updated: Include xlocale.h for newlocale and other symbols if found
Date: Mon, 10 Jun 2024 08:13:04 -0400

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 5efd627915 Include xlocale.h for newlocale and other symbols if found
5efd627915 is described below

commit 5efd627915bd05d4c265f111991d371e0b5cfd27
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Mon Jun 10 14:12:16 2024 +0200

    Include xlocale.h for newlocale and other symbols if found
    
    * tp/Texinfo/XS/configure.ac (AC_CHECK_HEADERS),
    tp/Texinfo/XS/main/manipulate_indices.c: test if xlocale.h exists, and
    if yes include it.  Needed on MacOs.  Report from Bruno.
---
 ChangeLog                               | 8 ++++++++
 tp/Texinfo/XS/configure.ac              | 2 ++
 tp/Texinfo/XS/main/manipulate_indices.c | 4 ++++
 3 files changed, 14 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index a35eec2432..ab389743ff 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-06-10  Patrice Dumas  <pertusus@free.fr>
+
+       Include xlocale.h for newlocale and other symbols if found
+
+       * tp/Texinfo/XS/configure.ac (AC_CHECK_HEADERS),
+       tp/Texinfo/XS/main/manipulate_indices.c: test if xlocale.h exists, and
+       if yes include it.  Needed on MacOs.  Report from Bruno.
+
 2024-06-10  Patrice Dumas  <pertusus@free.fr>
 
        Fix out-of-source build of pod2texi.texi
diff --git a/tp/Texinfo/XS/configure.ac b/tp/Texinfo/XS/configure.ac
index 4315272b77..7a65b0952b 100644
--- a/tp/Texinfo/XS/configure.ac
+++ b/tp/Texinfo/XS/configure.ac
@@ -153,6 +153,8 @@ GL_GNULIB_MDA_PUTENV=0
 AM_CONDITIONAL([HAVE_ICONV],
                [test "x$am_func_iconv" = "xyes"])
 
+AC_CHECK_HEADERS(xlocale.h)
+
 
 # Do not include Perl configuration values when outputting these variables,
 # as advised in the automake manual for CFLAGS and LDFLAGS, which could be
diff --git a/tp/Texinfo/XS/main/manipulate_indices.c 
b/tp/Texinfo/XS/main/manipulate_indices.c
index 9012a3545c..3f6872613b 100644
--- a/tp/Texinfo/XS/main/manipulate_indices.c
+++ b/tp/Texinfo/XS/main/manipulate_indices.c
@@ -18,6 +18,10 @@
 #include <string.h>
 #include <stdio.h>
 #include <locale.h>
+/* for locale_t, newlocale... on MacOs */
+#ifdef HAVE_XLOCALE_H
+ #include <xlocale.h>
+#endif
 #include <ctype.h>
 #include "unictype.h"
 #include "unistr.h"



reply via email to

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