]> git.ipfire.org Git - thirdparty/gettext.git/log
thirdparty/gettext.git
2 years agoxgettext: In language C#, avoid stack overflow.
Bruno Haible [Mon, 6 Mar 2023 21:21:03 +0000 (22:21 +0100)] 
xgettext: In language C#, avoid stack overflow.

* gettext-tools/src/x-csharp.c (MAX_NESTING_DEPTH): New macro.
(paren_nesting_depth, brace_nesting_depth): New variables.
(extract_parenthesized): Increase and check paren_nesting_depth or
brace_nesting_depth before calling extract_parenthesized recursively.
(extract_csharp): Initialize paren_nesting_depth and brace_nesting_depth.
* gettext-tools/tests/xgettext-csharp-stackovfl-1: New file.
* gettext-tools/tests/xgettext-csharp-stackovfl-2: New file.
* gettext-tools/tests/xgettext-csharp-stackovfl-3: New file.
* gettext-tools/tests/xgettext-csharp-stackovfl-4: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.

2 years agoxgettext: In language Java, avoid stack overflow.
Bruno Haible [Mon, 6 Mar 2023 20:49:02 +0000 (21:49 +0100)] 
xgettext: In language Java, avoid stack overflow.

* gettext-tools/src/x-java.c (MAX_NESTING_DEPTH): New macro.
(paren_nesting_depth, brace_nesting_depth): New variables.
(extract_parenthesized): Increase and check paren_nesting_depth or
brace_nesting_depth before calling extract_parenthesized recursively.
(extract_java): Initialize paren_nesting_depth and brace_nesting_depth.
* gettext-tools/tests/xgettext-java-stackovfl-1: New file.
* gettext-tools/tests/xgettext-java-stackovfl-2: New file.
* gettext-tools/tests/xgettext-java-stackovfl-3: New file.
* gettext-tools/tests/xgettext-java-stackovfl-4: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.

2 years agoxgettext: In language Python, avoid stack overflow.
Bruno Haible [Mon, 6 Mar 2023 19:48:35 +0000 (20:48 +0100)] 
xgettext: In language Python, avoid stack overflow.

* gettext-tools/src/x-python.c (MAX_NESTING_DEPTH): New macro.
(paren_nesting_depth, bracket_nesting_depth): New variables.
(extract_balanced): Increase and check paren_nesting_depth or
bracket_nesting_depth before calling extract_balanced recursively.
(extract_python): Initialize paren_nesting_depth and bracket_nesting_depth.
* gettext-tools/tests/xgettext-python-stackovfl-1: New file.
* gettext-tools/tests/xgettext-python-stackovfl-2: New file.
* gettext-tools/tests/xgettext-python-stackovfl-3: New file.
* gettext-tools/tests/xgettext-python-stackovfl-4: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.

2 years agoxgettext: In language C, avoid stack overflow.
Bruno Haible [Mon, 6 Mar 2023 17:54:00 +0000 (18:54 +0100)] 
xgettext: In language C, avoid stack overflow.

* gettext-tools/src/x-c.c (MAX_NESTING_DEPTH): New macro.
(nesting_depth): New variable.
(extract_parenthesized): Increase and check nesting_depth before calling
extract_parenthesized recursively.
(extract_whole_file): Initialize nesting_depth.
* gettext-tools/tests/xgettext-c-stackovfl-1: New file.
* gettext-tools/tests/xgettext-c-stackovfl-2: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.

2 years agointl: Fix many warnings like "warning: "glthread_lock_init" redefined".
Bruno Haible [Mon, 6 Mar 2023 16:08:23 +0000 (17:08 +0100)] 
intl: Fix many warnings like "warning: "glthread_lock_init" redefined".

* gettext-runtime/intl/configure.ac: Move the renamings to the bottom of the
config.h file. Make the glthread*_lock* renamings conditional so that they
don't occur when these symbols are macros.

2 years agoFix potential NULL pointer dereference in ITS code
Daiki Ueno [Sun, 5 Mar 2023 01:25:16 +0000 (10:25 +0900)] 
Fix potential NULL pointer dereference in ITS code

Reported by Shashank in: <https://savannah.gnu.org/bugs/?63529> and
<https://savannah.gnu.org/bugs/?63530>.

* gettext-tools/src/locating-rule.c (get_attribute): Check return
value of xmlGetProp.
(document_locating_rule_match): Check return value of
xmlDocGetRootElement.
(locating_rule_list_add_from_file): Likewise.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
2 years agoDistribute the source code of csharpexec-test.exe.
Bruno Haible [Sun, 26 Feb 2023 10:41:18 +0000 (11:41 +0100)] 
Distribute the source code of csharpexec-test.exe.

Reported by Bastien Roucariès <rouca@debian.org>
via Santiago Vila <sanvila@debian.org>
in <https://lists.gnu.org/archive/html/bug-gettext/2023-02/msg00016.html>.

* gettext-tools/m4/csharpexec-test.cs: New file, extracted from pre-2018
versions of gnulib/m4/csharpcomp.m4.
* gettext-tools/m4/Makefile.am (EXTRA_DIST): Add it.

2 years agoFix a comment.
Bruno Haible [Sun, 19 Feb 2023 10:30:31 +0000 (11:30 +0100)] 
Fix a comment.

* gettext-runtime/intl/printf.c: Fix a typo in comment.

2 years agoAM_GNU_GETTEXT: Use new build-to-host.m4 from gnulib.
Bruno Haible [Sun, 19 Feb 2023 05:37:24 +0000 (06:37 +0100)] 
AM_GNU_GETTEXT: Use new build-to-host.m4 from gnulib.

* autogen.sh: Copy m4/build-to-host.m4 from gnulib.
* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Add build-to-host.m4.
* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): Simplify and fix bug on
Cygwin, by invoking gl_BUILD_TO_HOST.
* gettext-tools/m4/Makefile.am (aclocal_DATA): Add build-to-host.m4.
* gettext-tools/misc/gettextize.in (m4filelist): Add build-to-host.m4.
* Makefile.am (distcheck-hook): Check also build-to-host.m4.
* gettext-tools/doc/gettext.texi (aclocal): Mention also build-to-host.m4.
* PACKAGING: Mention build-to-host.m4.

2 years agoUpdate to the newest gnulib.
Bruno Haible [Sat, 18 Feb 2023 16:20:17 +0000 (17:20 +0100)] 
Update to the newest gnulib.

2 years agoImprove 'git diff' of *.texi and *.m4 files.
Bruno Haible [Fri, 17 Feb 2023 22:20:55 +0000 (23:20 +0100)] 
Improve 'git diff' of *.texi and *.m4 files.

2 years agolibtextstyle: Turn off hyperlinks on the Solaris console.
Bruno Haible [Mon, 13 Feb 2023 22:05:20 +0000 (23:05 +0100)] 
libtextstyle: Turn off hyperlinks on the Solaris console.

The Solaris 11 console prints garbage when a hyperlink is output.
Tested on Solaris 11.4/x86 and Solaris 11 OmniOS/x86.

* libtextstyle/gnulib-local/lib/term-ostream.oo.c (should_enable_hyperlinks):
Return false for the Solaris console.

2 years agobuild: Fix libgettexpo linking.
Bruno Haible [Mon, 13 Feb 2023 12:29:05 +0000 (13:29 +0100)] 
build: Fix libgettexpo linking.

* gettext-tools/libgettextpo/Makefile.am: Pass $(LTLIBUNISTRING) in
libgettextpo_la_LDFLAGS, not libgettextpo_la_LIBADD. This is needed per the
documentation
https://www.gnu.org/software/automake/manual/html_node/Libtool-Flags.html, and
also for consistency with how we handle the dependencies to libintl and
libiconv.

2 years agodoc: Assume the user has Autoconf ≥ 2.60.
Bruno Haible [Mon, 13 Feb 2023 10:48:12 +0000 (11:48 +0100)] 
doc: Assume the user has Autoconf ≥ 2.60.

* gettext-tools/doc/gettext.texi (src/Makefile): Remove obsolete advice.

2 years agoUpdate doc after recent AM_GNU_GETTEXT change.
Bruno Haible [Mon, 13 Feb 2023 10:45:52 +0000 (11:45 +0100)] 
Update doc after recent AM_GNU_GETTEXT change.

* gettext-tools/doc/gettext.texi (src/Makefile): Use $(localedir_c_make) instead
of $(localedir).

2 years agoFix "make distcheck" after gnulib changed.
Bruno Haible [Mon, 13 Feb 2023 09:27:41 +0000 (10:27 +0100)] 
Fix "make distcheck" after gnulib changed.

* gettext-runtime/m4/fcntl-o.m4: Trivial update from gnulib.
* gettext-runtime/m4/flexmember.m4: Likewise.
* gettext-runtime/m4/iconv.m4: Likewise.
* gettext-runtime/m4/intlmacosx.m4: Likewise.
* gettext-runtime/m4/inttypes_h.m4: Likewise.
* gettext-runtime/m4/nls.m4: Likewise.
* gettext-runtime/m4/progtest.m4: Likewise.
* gettext-runtime/m4/size_max.m4: Likewise.
* gettext-runtime/m4/stdint_h.m4: Likewise.
* gettext-runtime/m4/xsize.m4: Likewise.

2 years agobuild: Don't hint to --with-installed-csharp-dll when C# support is disabled.
Bruno Haible [Mon, 13 Feb 2023 00:31:53 +0000 (01:31 +0100)] 
build: Don't hint to --with-installed-csharp-dll when C# support is disabled.

When --disable-csharp was specified, gettext-tools/src/Makefile.am does not
produce msgunfmt.net.exe. Therefore it is irrelevant whether the condition
USE_INSTALLED_CSHARP_DLL evaluates to true or false. Thus the message
"WARNING: When building the gettext-tools package without building the entire
 gettext package, you need to pass the --with-installed-csharp-dll option to
 configure."
is pointless.

Reported by Ryan Schmidt in <https://savannah.gnu.org/bugs/?58668>.

* gettext-tools/configure.ac: Don't emit hint to use --with-installed-csharp-dll
when BUILDCSHARP is not 'yes'.

2 years agointl: Simplify function prefixes.
Bruno Haible [Sat, 11 Feb 2023 22:56:19 +0000 (23:56 +0100)] 
intl: Simplify function prefixes.

* gettext-runtime/intl/configure.ac: Remove macro definitions of
_nl_locale_name_canonicalize, _nl_locale_name_from_win32_LANGID,
_nl_locale_name_from_win32_LCID, _nl_locale_name_thread_unsafe,
_nl_locale_name_posix, _nl_locale_name_default.
* gettext-runtime/intl/gettextP.h: Update declarations.
* gettext-runtime/intl/langprefs.c: Likewise.
(_nl_language_preferences_win32_mui, _nl_language_preferences_win32_ME,
_nl_language_preferences_win32_95, _nl_language_preferences_default): Use
gl_ prefixed symbols instead.
* gettext-runtime/intl/dcigettext.c (DCIGETTEXT, guess_category_value):
Likewise.

2 years agointl: Remove most of the exported _nl_* symbols, also on AIX and Solaris.
Bruno Haible [Sat, 11 Feb 2023 22:21:47 +0000 (23:21 +0100)] 
intl: Remove most of the exported _nl_* symbols, also on AIX and Solaris.

* gettext-runtime/intl/configure.ac: Map most of the _nl_* symbols to
_libintl_* symbols, so that they are not exported from libintl.

2 years agoAM_GNU_GETTEXT: Define localedir_c and localedir_c_make.
Bruno Haible [Sat, 11 Feb 2023 16:17:05 +0000 (17:17 +0100)] 
AM_GNU_GETTEXT: Define localedir_c and localedir_c_make.

* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): Define and substitute
localedir_c and localedir_c_make.
* gettext-runtime/src/Makefile.am (AM_CPPFLAGS): Use $(localedir_c_make)
instead of $(localedir). This is useful in native Windows environments.
* gettext-runtime/intl/Makefile.am (AM_CPPFLAGS): Likewise.
* gettext-tools/src/Makefile.am (AM_CPPFLAGS): Likewise.
* gettext-tools/tests/Makefile.am (AM_CPPFLAGS): Likewise.
* gettext-tools/doc/gettext.texi (AM_GNU_GETTEXT): Small updates. Mention
localedir_c and localedir_c_make.
* NEWS: Mention the change.

2 years agoFix compilation errors with ISO C 23 compilers.
Bruno Haible [Thu, 9 Feb 2023 15:58:20 +0000 (16:58 +0100)] 
Fix compilation errors with ISO C 23 compilers.

* gettext-runtime/intl/dcigettext.c (getwd, getcwd): Assume a declaration in the
system header files.
* gettext-runtime/intl/gettextP.h (SWAP): Drop K&C compatibility.

2 years agomsggrep: Remove unused code.
Bruno Haible [Sat, 4 Feb 2023 00:12:09 +0000 (01:12 +0100)] 
msggrep: Remove unused code.

* gettext-tools/src/msggrep.c (nonintr_close, close): Remove.

2 years agoDocument that MSVC cannot be used to build shared libraries.
Bruno Haible [Sun, 12 Feb 2023 21:18:40 +0000 (22:18 +0100)] 
Document that MSVC cannot be used to build shared libraries.

Binaries crash when they are linked to intl-8.dll. Whereas binaries
don't crash when merely linked to iconv-2.dll.

I have debugged this problem for several hours, and think it is a
problem either in libtool or in the Microsoft linker.

* INSTALL.windows: Mention to use --disable-shared with MSVC.

2 years agolibtextstyle: Fix .gitignore.
Bruno Haible [Fri, 3 Feb 2023 15:46:52 +0000 (16:46 +0100)] 
libtextstyle: Fix .gitignore.

2 years agolibtextstyle: Fix compilation error on Android.
Bruno Haible [Mon, 2 Jan 2023 07:33:10 +0000 (08:33 +0100)] 
libtextstyle: Fix compilation error on Android.

* libtextstyle/gnulib-local/m4/libglib.m4 (gl_LIBGLIB): Test whether struct
lconv has a 'decimal_point' field.
* libtextstyle/gnulib-local/lib/glib/gstrfuncs.c (g_ascii_strtod,
g_ascii_formatd): If struct lconv does not have a 'decimal_point' field, use "."
instead.

2 years agoFix compilation error on Cygwin.
Bruno Haible [Fri, 10 Feb 2023 01:36:22 +0000 (02:36 +0100)] 
Fix compilation error on Cygwin.

The error occurred because Gnulib's error.h currently does not
and HAVE_ERROR=0. In this case we shouldn't force the creation of error.h.

* gettext-tools/configure.ac: Don't set ac_cv_lib_error_at_line=no. This reverts
a workaround from 2012-12-25.

2 years agoUpdate after gnulib changed.
Bruno Haible [Fri, 3 Feb 2023 12:36:32 +0000 (13:36 +0100)] 
Update after gnulib changed.

* gettext-runtime/intl/configure.ac: Test also REPLACE_TWALK.
* gettext-tools/src/po-xerror.c: Don't include "getprogname.h".
* gnulib-local/lib/xerror.c: Likewise.
* gnulib-local/lib/error-progname.c: Include <stdlib.h> instead of
getprogname.h.
* gnulib-local/lib/error.in.h.diff: Renamed from gnulib-local/lib/error.h.diff.
* gnulib-local/Makefile.am (EXTRA_DIST): Update.
* gnulib-local/modules/gettext-tools-misc (Makefile.am): Update comment.

2 years agoUpdate to the newest gnulib.
Bruno Haible [Fri, 3 Feb 2023 11:59:59 +0000 (12:59 +0100)] 
Update to the newest gnulib.

2 years agoUpdate .gitignore after build system changes in gettext-runtime/intl/.
Bruno Haible [Fri, 3 Feb 2023 15:53:13 +0000 (16:53 +0100)] 
Update .gitignore after build system changes in gettext-runtime/intl/.

2 years agointl: Fix generation of libgnuintl.h (regression from 2022-07-17).
Bruno Haible [Fri, 3 Feb 2023 22:44:07 +0000 (23:44 +0100)] 
intl: Fix generation of libgnuintl.h (regression from 2022-07-17).

* gettext-runtime/intl/Makefile.am (libgnuintl.h): Use a syntax that does not
require GNU sed.

2 years agoFix libintl exports after build system changes in gettext-runtime/intl/ (regression...
Bruno Haible [Sat, 11 Feb 2023 10:27:16 +0000 (11:27 +0100)] 
Fix libintl exports after build system changes in gettext-runtime/intl/ (regression 2021-06-20).

On several platforms, rpl_free was exported.
On AIX 7, also rpl_newlocale, rpl_duplocale, rpl_freelocale.

* gettext-runtime/intl/configure.ac: Map more rpl_* symbols to _libintl_*.

2 years agoUpdate after release 0.21.1 has been made.
Bruno Haible [Fri, 3 Feb 2023 11:50:58 +0000 (12:50 +0100)] 
Update after release 0.21.1 has been made.

* libtextstyle/NEWS: Update next version number.

2 years agomsgfmt: Fix -k/--keyword option handling.
Bruno Haible [Fri, 2 Dec 2022 01:52:15 +0000 (02:52 +0100)] 
msgfmt: Fix -k/--keyword option handling.

Reported by Daniel <daniel.rf710@gmail.com> in
<https://savannah.gnu.org/bugs/index.php?63455>.

* gettext-tools/src/msgfmt.c (long_options): Declare that --keyword takes an
optional argument.
(main): Recognize -k as an alternative to --keyword.
Ensure that desktop_keywords is initialized before use.
Don't set desktop_default_keywords to false when an option -kKWSPEC or
--keyword=KWSPEC is seen.
Don't destroy the desktop_keywords table too early.
Don't destroy the desktop_keywords table when the program is terminating anyway.

2 years agoIn 'trap' commands, prefer symbolic to numeric signal names.
Bruno Haible [Sat, 26 Nov 2022 16:58:32 +0000 (17:58 +0100)] 
In 'trap' commands, prefer symbolic to numeric signal names.

* libtextstyle/gnulib-local/tests/test-term-ostream-xterm.sh: Use symbolic
signal names.

2 years agoUpdate after gnulib changed.
Bruno Haible [Mon, 10 Oct 2022 09:27:45 +0000 (11:27 +0200)] 
Update after gnulib changed.

* gettext-runtime/m4/iconv.m4: Update from gnulib.

2 years agoUpdate release steps.
Bruno Haible [Sun, 9 Oct 2022 23:27:23 +0000 (01:27 +0200)] 
Update release steps.

2 years agoMerge from 0.21.x branch: Prepare for 0.21.1 release: Update examples.
Bruno Haible [Sun, 9 Oct 2022 23:26:08 +0000 (01:26 +0200)] 
Merge from 0.21.x branch: Prepare for 0.21.1 release: Update examples.

* gettext-tools/examples/hello-*/configure.{ac,in.in}: Reference gettext
version 0.21.1.

2 years agoMerge from 0.21.x branch: Prepare for 0.21.1 release: Update translations.
Bruno Haible [Sun, 9 Oct 2022 21:28:47 +0000 (23:28 +0200)] 
Merge from 0.21.x branch: Prepare for 0.21.1 release: Update translations.

* gettext-runtime/po/*.po: Update from TP.
* gettext-tools/po/*.po: Likewise.
* gettext-tools/examples/po/*.po: Likewise.
* gettext-tools/examples/po/LINGUAS: Add 'ka'.
* gettext-tools/examples/hello-*/po/LINGUAS: Likewise.
* gettext-tools/examples/Makefile.am (EXAMPLESPOFILES): Add ka.po.

2 years agoMerge from 0.21.x branch: Prepare for 0.21.1 release.
Bruno Haible [Sun, 9 Oct 2022 23:18:06 +0000 (01:18 +0200)] 
Merge from 0.21.x branch: Prepare for 0.21.1 release.

* gettext-runtime/doc/matrix.texi: Update from TP.
* gettext-runtime/doc/nls.texi (STATUS): Update.
* gettext-runtime/intl/libgnuintl.in.h (LIBINTL_VERSION): Bump.
* gettext-tools/libgettextpo/gettext-po.in.h (LIBGETTEXTPO_VERSION): Bump.
* libtextstyle/version.sh: Update VERSION_NUMBER, RELEASE_DATE.
* NEWS, gettext-runtime/NEWS: Update.
* libtextstyle/lib/Makefile.am (LTV_*): Bump to 1:2:1.
* gettext-runtime/intl/Makefile.am (LTV_*): Bump to 11:0:3.
* gettext-tools/libgettextpo/Makefile.am (LTV_*): Bump to 5:8:5.
* gettext-runtime/src/envsubst.c: Update copyright years of the --version output.
* gettext-runtime/src/gettext.c: Likewise.
* gettext-runtime/src/gettext.sh.in: Likewise.
* gettext-runtime/src/ngettext.c: Likewise.
* gettext-tools/misc/autopoint.in: Likewise.
* gettext-tools/misc/convert-archive.in: Likewise.
* gettext-tools/misc/gettextize.in: Likewise.
* gettext-tools/src/cldr-plurals.c: Likewise.
* gettext-tools/src/hostname.c: Likewise.
* gettext-tools/src/msgattrib.c: Likewise.
* gettext-tools/src/msgcat.c: Likewise.
* gettext-tools/src/msgcmp.c: Likewise.
* gettext-tools/src/msgcomm.c: Likewise.
* gettext-tools/src/msgconv.c: Likewise.
* gettext-tools/src/msgen.c: Likewise.
* gettext-tools/src/msgexec.c: Likewise.
* gettext-tools/src/msgfilter.c: Likewise.
* gettext-tools/src/msgfmt.c: Likewise.
* gettext-tools/src/msggrep.c: Likewise.
* gettext-tools/src/msginit.c: Likewise.
* gettext-tools/src/msgmerge.c: Likewise.
* gettext-tools/src/msgunfmt.c: Likewise.
* gettext-tools/src/msguniq.c: Likewise.
* gettext-tools/src/recode-sr-latin.c: Likewise.
* gettext-tools/src/urlget.c: Likewise.
* gettext-tools/src/xgettext.c: Likewise.
* gettext-tools/configure.ac (ARCHIVE_VERSION): Bump to 0.21.1.
* gettext-tools/misc/autopoint.in: Allow version 0.21.1.

2 years agobuild: Simplify.
Bruno Haible [Tue, 20 Sep 2022 22:12:38 +0000 (00:12 +0200)] 
build: Simplify.

This partially reverts the commit 2020-12-28 "Update after gnulib changed:
Fix link errors on native Windows."

* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC, GNULIB_MODULES_LIBGETTEXTPO): Remove
strdup-posix.
* gettext-tools/libgettextpo/Makefile.am (config.h): Don't define GNULIB_GETCWD.

2 years agoSupport compiling the examples on native Windows without -loldnames.
Bruno Haible [Fri, 16 Sep 2022 17:27:45 +0000 (19:27 +0200)] 
Support compiling the examples on native Windows without -loldnames.

* gettext-tools/examples/hello-c/configure.ac: Don't test for unistd.h.
* gettext-tools/examples/hello-c-gnome/configure.ac: Likewise.
* gettext-tools/examples/hello-c-gnome3/configure.ac: Likewise.
* gettext-tools/examples/hello-c++/configure.ac: Likewise.
* gettext-tools/examples/hello-c++-qt/configure.ac: Likewise.
* gettext-tools/examples/hello-c++-kde/configure.in.in: Likewise.
* gettext-tools/examples/hello-c++-gnome/configure.ac: Likewise.
* gettext-tools/examples/hello-c++-wxwidgets/configure.ac: Likewise.
* gettext-tools/examples/hello-objc/configure.ac: Likewise.
* gettext-tools/examples/hello-objc-gnome/configure.ac: Likewise.
* gettext-tools/examples/hello-c/hello.c: On native Windows, include <process.h>
and define getpid as an alias of _getpid. Otherwise, assume <unistd.h> exists.
* gettext-tools/examples/hello-c-gnome/hello.c: Likewise.
* gettext-tools/examples/hello-c-gnome3/hello.c: Likewise.
* gettext-tools/examples/hello-c++/hello.cc: Likewise.
* gettext-tools/examples/hello-c++-qt/hello.cc: Likewise.
* gettext-tools/examples/hello-c++-kde/hellowindow.cc: Likewise.
* gettext-tools/examples/hello-c++-gnome/hello.cc: Likewise.
* gettext-tools/examples/hello-c++-wxwidgets/hello.cc: Likewise.
* gettext-tools/examples/hello-objc/hello.m: Likewise.
* gettext-tools/examples/hello-objc-gnome/hello.m: Likewise.

2 years agoFix a test failure of autopoint-3.
Bruno Haible [Fri, 16 Sep 2022 17:03:47 +0000 (19:03 +0200)] 
Fix a test failure of autopoint-3.

Reported by Marvin Schmidt <marvin.schmidt1987@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gettext/2022-09/msg00001.html>.

* gettext-tools/tests/autopoint-3: Comment out the AC_CONFIG_HEADERS line
and don't invoke autoheader.

2 years agoFix an MSVC/clang test failure.
Bruno Haible [Sun, 25 Sep 2022 19:51:45 +0000 (21:51 +0200)] 
Fix an MSVC/clang test failure.

* gettext-tools/tests/lang-objc: On native Windows, ignore different end-of-line
convention in the output.

2 years agoFix a link error on MSVC/clang in --enable-shared mode.
Bruno Haible [Sun, 25 Sep 2022 15:32:07 +0000 (17:32 +0200)] 
Fix a link error on MSVC/clang in --enable-shared mode.

* gettext-runtime/intl/printf.c: Include libgnuintl.h. This ensures that the
LIBINTL_DLL_EXPORTED marker from the libintl_*printf function declarations is
seen when the functions get defined.
* gettext-runtime/intl/Makefile.am: Update comment.

2 years agoUpdate after gnulib changed: Fix link errors on MSVC.
Bruno Haible [Wed, 14 Sep 2022 10:47:30 +0000 (12:47 +0200)] 
Update after gnulib changed: Fix link errors on MSVC.

* gettext-runtime/configure.ac: Define DLL_VARIABLE to empty always.

2 years agoUpdate to the newest gnulib.
Bruno Haible [Tue, 13 Sep 2022 23:36:07 +0000 (01:36 +0200)] 
Update to the newest gnulib.

2 years agoUpdate after gnulib changed.
Bruno Haible [Tue, 13 Sep 2022 19:50:41 +0000 (21:50 +0200)] 
Update after gnulib changed.

* gettext-tools/po/POTFILES.in: Update.

2 years agobuild: Restore the ability to run "make check".
Bruno Haible [Tue, 13 Sep 2022 19:46:44 +0000 (21:46 +0200)] 
build: Restore the ability to run "make check".

* cfg.mk (gl_public_submodule_commit): Define to empty.

2 years agoUpdate after release 0.21.1 has been prepared on the branch.
Bruno Haible [Tue, 13 Sep 2022 19:39:32 +0000 (21:39 +0200)] 
Update after release 0.21.1 has been prepared on the branch.

* NEWS: Update.
* gettext-runtime/m4/gettext.m4: Bump release version and year.
* gettext-runtime/m4/intl.m4: Likewise.
* gettext-runtime/m4/po.m4: Bump year.

2 years agoAdd plural formula for Catalan.
Albert Astals Cid [Sat, 27 Aug 2022 22:01:36 +0000 (00:01 +0200)] 
Add plural formula for Catalan.

* gettext-tools/src/plural-table.c (plural_table): Add an entry for Catalan.

3 years agoFix typos in comments.
Bruno Haible [Mon, 18 Jul 2022 17:00:22 +0000 (19:00 +0200)] 
Fix typos in comments.

* gettext-tools/src/format-c-parse.h (format_parse_entrails): Fix typo in
comment.
* gettext-tools/src/format-gfc-internal.c (format_parse): Likewise.

3 years agoMove gnulib-tool invocation back from autopull.sh to autogen.sh.
Bruno Haible [Mon, 18 Jul 2022 16:56:46 +0000 (18:56 +0200)] 
Move gnulib-tool invocation back from autopull.sh to autogen.sh.

* autogen.sh: Revert most of last change. Improve comments.
* autopull.sh: Only call 'gitsub.sh pull', fetch archive.dir.tar, and recurse.
* libtextstyle/autogen.sh: Revert most of last change. Improve comments.
* libtextstyle/autopull.sh: Only call 'gitsub.sh pull', fetch texinfo.tex.
* libtextstyle/m4/init-package-version.m4: Revert last change.

3 years agoSplit autogen.sh into autopull.sh and autogen.sh.
Bruno Haible [Sun, 17 Jul 2022 14:50:33 +0000 (16:50 +0200)] 
Split autogen.sh into autopull.sh and autogen.sh.

* autopull.sh: New file, based on autogen.sh.
* autogen.sh: Remove code that was moved to autopull.sh. Remove --skip-gnulib
option.
* HACKING: Mention autopull.sh.
* libtextstyle/autopull.sh: New file, based on libtextstyle/autogen.sh.
* libtextstyle/autogen.sh: Remove code that was moved to
libtextstyle/autopull.sh. Remove --skip-gnulib option.
* libtextstyle/HACKING: Mention autopull.sh.
* libtextstyle/m4/init-package-version.m4: Update comment.

3 years agoFix "make distcheck" failure (regression from 2022-07-03).
Bruno Haible [Sun, 17 Jul 2022 10:30:11 +0000 (12:30 +0200)] 
Fix "make distcheck" failure (regression from 2022-07-03).

* gettext-runtime/intl/export.h: Add a copyright notice.
* gettext-runtime/intl/Makefile.am (libgnuintl.h): Eliminate this copyright
notice when including export.h.

3 years agodoc: Make an example multithread-safe.
Bruno Haible [Fri, 8 Jul 2022 17:26:40 +0000 (19:26 +0200)] 
doc: Make an example multithread-safe.

Reported by Vivien Kraus <vivien@planete-kraus.eu> in
<https://lists.gnu.org/archive/html/bug-gettext/2022-07/msg00015.html>.

* gettext-tools/doc/gettext.texi (Libraries): Make the example code
multithread-safe.

3 years agobuild: Fix link error for tstgettext.exe on mingw.
Bruno Haible [Sun, 3 Jul 2022 14:21:52 +0000 (16:21 +0200)] 
build: Fix link error for tstgettext.exe on mingw.

* gettext-runtime/intl/export.h: Treat mingw like MSVC. In static builds. don't
use __declspec(dllexport). In shared builds, use also __declspec(dllimport).

3 years agodoc: Clarify constraints for PO files.
Bruno Haible [Sun, 3 Jul 2022 09:16:27 +0000 (11:16 +0200)] 
doc: Clarify constraints for PO files.

* gettext-tools/doc/gettext.texi (PO Files): Mention that \u and \U escape
sequences are not allowed.

3 years agodoc: Clarify constraints for PO files.
Bruno Haible [Sun, 3 Jul 2022 09:15:39 +0000 (11:15 +0200)] 
doc: Clarify constraints for PO files.

Reported by Gábor Hojtsy <gabor.hojtsy@gmail.com> in
<https://savannah.gnu.org/bugs/?62677>.

* gettext-tools/doc/gettext.texi (PO Files): State uniqueness requirement.

3 years agoxgettext: Add test for last fix.
Bruno Haible [Sun, 26 Jun 2022 07:05:16 +0000 (09:05 +0200)] 
xgettext: Add test for last fix.

Reported by Jonathan Matthew <jonathan@d14n.org>
in <https://savannah.gnu.org/bugs/?62363>.

* gettext-tools/tests/xgettext-18: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.

3 years agoxgettext: Remove side effect of an extraction on later extractions.
Jonathan Matthew [Sun, 26 Jun 2022 07:04:48 +0000 (09:04 +0200)] 
xgettext: Remove side effect of an extraction on later extractions.

Reported in <https://savannah.gnu.org/bugs/?62363>.

* gettext-tools/src/xgettext.c (extract_from_file): Reset
current_formatstring_parser1/2/3 variables before returning.

3 years agoUpdate .gitignore after "gettext-runtime: Provide helper script to build against...
Bruno Haible [Sun, 26 Jun 2022 06:53:32 +0000 (08:53 +0200)] 
Update .gitignore after "gettext-runtime: Provide helper script to build against uninstalled binaries.".

3 years agodoc: change OpenOffice.org to LibreOffice
Sébastien Wilmet [Fri, 22 Apr 2022 17:48:25 +0000 (19:48 +0200)] 
doc: change OpenOffice.org to LibreOffice

* gettext-tools/doc/gettext.texi (System Installation): Mention LibreOffice
instead of OpenOffice.org.

3 years agointl: On native Windows, actually define the *wprintf functions.
Johannes Schindelin [Sat, 25 Jun 2022 20:32:49 +0000 (22:32 +0200)] 
intl: On native Windows, actually define the *wprintf functions.

In dcaf8c4d7 (Cygwin portability., 2003-09-17), the *wprintf() family of
functions in `gettext-runtime/intl/printf.c` were no longer guarded by
the constant `HAVE_WPRINTF`, but instead by `HAVE_FWPRINTF`.

This apparently worked even if the corresponding part in
`gettext-runtime/intl/libgnuintl.h.in` uses `HAVE_WPRINTF` to guard the
declarations of those functions.

However, in d84f20745 (Make sure that libintl.h declares the *wprintf
overrides on Windows., 2019-04-08), gettext introduced a change where it
would look for `wprintf()` instead of `fwprintf()`. As a consequence it
would no longer define the `HAVE_FWPRINTF` constant at all.

GCC apparently interprets `#if HAVE_FWPRINTF` as `#if 0` if the constant
has not even been defined.

This leads to the funny situation that previously, the *wprintf()
functions would be defined, but not be declared. Whereas now the
functions are not defined, but declared.

Also funny: Cygwin did not even export the `fwprintf()` function until
2009, as per Cygwin's 45e20e47ba (cygwin.din: Export wprintf,
fwprintf, swprintf, vwprintf, vfwprintf, vswprintf. [...] , 2009-03-06),
while the `wprintf()` function was exported already in 2003. So the
Cygwin portability patch from 2003 seems to have turned off all of the
*wprintf() functions in gettext.

Let's revert that "portability" patch, as it now only does harm and has
no benefit anymore.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
[Bruno's summary]
Thank you for the analysis and explanation, Johannes!

The commits dcaf8c4d7 and f5ca7696d (2003-09-17) introduced a test for
fwprintf rather than wprintf. This was designed as a workaround to a
Cygwin problem that existed from 2003 to 2009.

The commit d84f20745 (2019-04-08) switched back from testing fwprintf
to testing wprintf, but did so incompletely: I forgot to modify printf.c.
So, since then, the *wprintf functions are declared but not defined.

3 years agointl: Add special hack for GCC.
Bruno Haible [Tue, 21 Jun 2022 01:46:34 +0000 (03:46 +0200)] 
intl: Add special hack for GCC.

Based on the commit
https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=4a1493f0603262a7dc1114d9827353e9810e63dc
by Jakub Jelinek <jakub@redhat.com>.

* gettext-runtime/intl/configure.ac: Accept option --enable-host-shared.
Set PICFLAG.
* gettext-runtime/intl/Makefile.am (AM_CFLAGS): Add the PICFLAG.
* gnulib-local/modules/gettext-runtime-intl-misc (Makefile.am): Add the PICFLAG
to AM_CFLAGS.

3 years agogettext-runtime: Provide helper script to build against uninstalled binaries.
Bruno Haible [Tue, 21 Jun 2022 00:50:34 +0000 (02:50 +0200)] 
gettext-runtime: Provide helper script to build against uninstalled binaries.

Prompted by <https://gcc.gnu.org/pipermail/gcc/2022-June/238929.html>.

* gettext-runtime/uninstalled-config.sh.in: New file.
* gettext-runtime/configure.ac: New variable ENABLE_SHARED. Generate
uninstalled-config.sh at configure time.

3 years agoFix "make distcheck" failure.
Bruno Haible [Mon, 20 Jun 2022 07:31:51 +0000 (09:31 +0200)] 
Fix "make distcheck" failure.

* check-copyright-headers: Exempt the JOIN-GNU file.

3 years agoDon't check for java nor javac when --disable-java is specified.
Bruno Haible [Mon, 20 Jun 2022 06:56:18 +0000 (08:56 +0200)] 
Don't check for java nor javac when --disable-java is specified.

This avoid annoying dialogs on macOS when Java has not been installed so far.
Reported by Iain Sandoe <idsandoe@googlemail.com> in
<https://gcc.gnu.org/pipermail/gcc/2022-June/238929.html>.

* gettext-runtime/configure.ac: When JAVA_CHOICE is 'no', bypass the gt_JAVACOMP
and JAR tests.
* gettext-tools/configure.ac: When JAVA_CHOICE is 'no', bypass the gt_JAVAEXEC,
gt_JAVACOMP, and JAR tests.

3 years agoUpdate to the newest gnulib.
Bruno Haible [Mon, 20 Jun 2022 06:52:42 +0000 (08:52 +0200)] 
Update to the newest gnulib.

3 years agoUpdate ISO_3166 transformation script.
Bruno Haible [Mon, 20 Jun 2022 06:52:12 +0000 (08:52 +0200)] 
Update ISO_3166 transformation script.

* gettext-tools/doc/iso-3166.sed: Transform also 'ü'.

3 years agoUpdate after Turkey changed its name.
Bruno Haible [Fri, 3 Jun 2022 15:59:24 +0000 (17:59 +0200)] 
Update after Turkey changed its name.

* gettext-tools/doc/ISO_3166: Update country name.
* gettext-tools/doc/iso-3166.texi: Likewise.
* gettext-tools/doc/ISO_639-2: Update comments.
* gettext-runtime/intl/setlocale.c: Likewise.
* gettext-tools/src/msginit.c: Likewise.

3 years agoAdd GNU Project notice.
Bruno Haible [Sun, 22 May 2022 23:15:51 +0000 (01:15 +0200)] 
Add GNU Project notice.

* JOIN-GNU: New file. Inspired by a suggestion from José E. Marchesi
on the gnu-prog-discuss mailing list.
* README: Refer to it.
* Makefile.am (EXTRA_DIST): Add it.

3 years agoUpgrade to libtool 2.4.7.
Bruno Haible [Sun, 15 May 2022 22:00:04 +0000 (00:00 +0200)] 
Upgrade to libtool 2.4.7.

* m4/libtool.m4: Update from libtool-2.4.7, with modifications.
2017-10-21  Bruno Haible  <bruno@clisp.org>
Fix -export-symbols and -export-symbols-regex support on Solaris 11.3.
* m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): Adjust symcode for Solaris.
* m4/ltoptions.m4: Likewise.
* m4/ltsugar.m4: Likewise.
* m4/ltversion.m4: Likewise.
* m4/lt~obsolete.m4: Likewise.
* build-aux/ltmain.sh: Likewise.

3 years agoUpdate after gnulib changed.
Bruno Haible [Thu, 3 Feb 2022 18:38:57 +0000 (19:38 +0100)] 
Update after gnulib changed.

* libtextstyle/gnulib-local/lib/termcap.h: Remove file (moved to gnulib).
* libtextstyle/gnulib-local/lib/terminfo.h: Remove file (moved to gnulib).
* libtextstyle/gnulib-local/lib/tparm.c: Remove file (moved to gnulib).
* libtextstyle/gnulib-local/lib/tputs.c: Remove file (moved to gnulib).
* libtextstyle/gnulib-local/m4/termcap.m4: Remove file (moved to gnulib).
* libtextstyle/gnulib-local/m4/terminfo.m4: Remove file (moved to gnulib).
* libtextstyle/gnulib-local/m4/curses.m4: Remove file (moved to gnulib).
* libtextstyle/gnulib-local/modules/termcap: Remove file (moved to gnulib).
* libtextstyle/gnulib-local/modules/termcap-h: Remove file (moved to gnulib).
* libtextstyle/gnulib-local/modules/terminfo: Remove file (moved to gnulib).
* libtextstyle/gnulib-local/modules/terminfo-h: Remove file (moved to gnulib).
* libtextstyle/Makefile.am (EXTRA_DIST): Remove these files.

3 years agoUpdate to the newest gnulib.
Bruno Haible [Fri, 4 Feb 2022 00:34:44 +0000 (01:34 +0100)] 
Update to the newest gnulib.

3 years agolibtextstyle: Fix a comment.
Bruno Haible [Sun, 30 Jan 2022 20:19:38 +0000 (21:19 +0100)] 
libtextstyle: Fix a comment.

* libtextstyle/gnulib-local/lib/term-ostream.oo.c (term_ostream_create): Fix
typo in comment.

3 years agolibtextstyle: Consider setupterm return code.
Bruno Haible [Sun, 30 Jan 2022 17:46:21 +0000 (18:46 +0100)] 
libtextstyle: Consider setupterm return code.

* libtextstyle/gnulib-local/lib/term-ostream.oo.c (term_ostream_create): Don't
bother retrieving values if $TERM is an unknown terminal type.

3 years agolibtextstyle: Try harder to avoid buffer overflow.
Bruno Haible [Sun, 30 Jan 2022 10:21:45 +0000 (11:21 +0100)] 
libtextstyle: Try harder to avoid buffer overflow.

* libtextstyle/gnulib-local/lib/term-ostream.oo.c (term_ostream_create): Double
the size of termcapbuf and termentrybuf.

3 years agoUpdate after gnulib changed.
Bruno Haible [Mon, 3 Jan 2022 08:53:59 +0000 (09:53 +0100)] 
Update after gnulib changed.

3 years agoxgettext: Deprecate option '--sort-output'.
Bruno Haible [Sun, 2 Jan 2022 16:40:52 +0000 (17:40 +0100)] 
xgettext: Deprecate option '--sort-output'.

Suggested by Lauri Nurmi <lanurmi@iki.fi> in
<https://savannah.gnu.org/bugs/?61249>.

* gettext-tools/src/xgettext.c (main): Warn when option '--sort-output' is used.
(usage): Mark the option '--sort-output' deprecated.
* gettext-tools/doc/xgettext.texi: Likewise.
* NEWS: Mention it.

3 years agoNEWS: Mention the Unicode standard update (work done in gnulib).
Bruno Haible [Sun, 2 Jan 2022 16:27:02 +0000 (17:27 +0100)] 
NEWS: Mention the Unicode standard update (work done in gnulib).

3 years agoUpdate after gnulib changed.
Bruno Haible [Sun, 2 Jan 2022 14:43:41 +0000 (15:43 +0100)] 
Update after gnulib changed.

* gettext-tools/tests/msgcat-17: Update test for changed libunistring line
breaking behaviour.
* gettext-tools/tests/msgfilter-sr-latin-1: Likewise.
* gettext-tools/tests/msgmerge-11: Likewise.
* gettext-tools/tests/xgettext-python-1: Likewise.

3 years agoUpdate to the newest gnulib.
Bruno Haible [Sun, 2 Jan 2022 14:42:08 +0000 (15:42 +0100)] 
Update to the newest gnulib.

3 years agoFix lang-python-* test failures with Python 3.8.
Bruno Haible [Sun, 2 Jan 2022 14:39:59 +0000 (15:39 +0100)] 
Fix lang-python-* test failures with Python 3.8.

* gettext-tools/tests/lang-python-1: Use syntax that works also with Python 3.
* gettext-tools/tests/lang-python-2: Likewise.

3 years agoFix an interference between libintl.h and C++ (boost) header files.
Bruno Haible [Wed, 22 Dec 2021 12:00:02 +0000 (13:00 +0100)] 
Fix an interference between libintl.h and C++ (boost) header files.

Reported by Marc Jeanmougin <marc@jeanmougin.fr> in
<https://lists.gnu.org/archive/html/bug-gettext/2021-12/msg00027.html>.

* gettext-runtime/intl/libgnuintl.in.h (libintl_fprintf, libintl_vfprintf,
libintl_printf, libintl_vprintf, libintl_sprintf, libintl_vsprintf,
libintl_snprintf, libintl_vsnprintf, libintl_asprintf, libintl_vasprintf,
libintl_fwprintf, libintl_vfwprintf, libintl_wprintf, libintl_vwprintf,
libintl_swprintf, libintl_vswprintf, libintl_newlocale, libintl_duplocale,
libintl_freelocale, libintl_setlocale): Inject also into the C++ std namespace.

3 years agointl: Improve indentation of generated libintl.h file.
Bruno Haible [Wed, 22 Dec 2021 11:15:08 +0000 (12:15 +0100)] 
intl: Improve indentation of generated libintl.h file.

* gettext-runtime/intl/libgnuintl.in.h: Indent preprocessor directives.

3 years agoUpdate after gnulib changed.
Bruno Haible [Mon, 20 Dec 2021 10:47:40 +0000 (11:47 +0100)] 
Update after gnulib changed.

3 years agolibtextstyle: Clarify rationale for gl_INIT_PACKAGE.
Bruno Haible [Tue, 7 Dec 2021 20:13:43 +0000 (21:13 +0100)] 
libtextstyle: Clarify rationale for gl_INIT_PACKAGE.

* libtextstyle/m4/init-package-version.m4: Add more comments.

3 years agodoc: Document availability of Python brace format strings.
Bruno Haible [Tue, 7 Dec 2021 16:23:45 +0000 (17:23 +0100)] 
doc: Document availability of Python brace format strings.

* gettext-tools/doc/lang-python.texi (Python): Show an example of a Python brace
format string.

3 years agoAvoid a test failure of the intl-6 test on Cygwin.
Bruno Haible [Wed, 25 Aug 2021 18:50:34 +0000 (20:50 +0200)] 
Avoid a test failure of the intl-6 test on Cygwin.

* gettext-tools/tests/intl-6: On Cygwin, test only the LOCALE_FR_UTF8, not the
LOCALE_FR locale.

4 years agoautopoint: Fix structure of man page.
Bruno Haible [Sat, 21 Aug 2021 22:09:06 +0000 (00:09 +0200)] 
autopoint: Fix structure of man page.

Reported by Michio Matsuyama <michio.matsuyama@gmail.com> in
<https://savannah.gnu.org/bugs/?61065>.

* gettext-tools/misc/autopoint.in (func_version): Accept a boolean argument.
Adjust wording. Bump copyright year.
Accept an undocumented option '--version-without-config'.
* gettext-tools/man/Makefile.am ($(man_MAN1MISC)): When creating autopoint.1,
pass the option --version-without-config instead of --version to 'autopoint'.

4 years agoImprove DEPENDENCIES and HACKING files.
Bruno Haible [Sat, 21 Aug 2021 13:46:39 +0000 (15:46 +0200)] 
Improve DEPENDENCIES and HACKING files.

* DEPENDENCIES: Update mono runtime package name.
* HACKING: Add pre-built package names. Recommend TeX Live instead of teTeX.
* libtextstyle/HACKING: Likewise.

4 years agolibtextstyle: Make gl_INIT_PACKAGE work with Automake >= 1.16.4.
Bruno Haible [Sun, 8 Aug 2021 00:08:43 +0000 (02:08 +0200)] 
libtextstyle: Make gl_INIT_PACKAGE work with Automake >= 1.16.4.

Reported and analyzed by Nicole Mazzuca <mazzucan@outlook.com> in
<https://lists.gnu.org/archive/html/bug-libunistring/2021-08/msg00002.html>.

* m4/init-package-version.m4 (gl_INIT_PACKAGE): Use a new macro gl_INIT_EMPTY.
(gl_INIT_DUMMY): Expand to empty in two steps, via a new macro gl_INIT_DUMMY2.

4 years ago.gitignore: Ignore the generated config.cache files.
Bruno Haible [Sun, 25 Jul 2021 12:38:17 +0000 (14:38 +0200)] 
.gitignore: Ignore the generated config.cache files.

4 years agobuild: Move most of intl.m4 into gettext-runtime/intl/configure.ac, part 2.
Bruno Haible [Sun, 20 Jun 2021 20:35:07 +0000 (22:35 +0200)] 
build: Move most of intl.m4 into gettext-runtime/intl/configure.ac, part 2.

* gettext-runtime/intl/configure.ac: Invoke gt_GLIBC2.

4 years agolibgettextpo: Tidy up exported symbols.
Bruno Haible [Sun, 20 Jun 2021 20:33:32 +0000 (22:33 +0200)] 
libgettextpo: Tidy up exported symbols.

* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_LDFLAGS): Add an
-export-symbols-regex option.

4 years agolibtextstyle: Fix comment.
Bruno Haible [Sun, 20 Jun 2021 11:49:47 +0000 (13:49 +0200)] 
libtextstyle: Fix comment.

* libtextstyle/lib/Makefile.am: Fix outdated comment.

4 years agoImprove conflict resolution between gnulib and textstyle.h.
Bruno Haible [Sun, 20 Jun 2021 01:47:20 +0000 (03:47 +0200)] 
Improve conflict resolution between gnulib and textstyle.h.

* libtextstyle/lib/textstyle.h (libtextstyle_isatty): Don't override a Gnulib
override.

4 years agoImprove conflict resolution between gnulib and libintl.h.
Bruno Haible [Sun, 20 Jun 2021 01:47:17 +0000 (03:47 +0200)] 
Improve conflict resolution between gnulib and libintl.h.

* gettext-runtime/intl/libgnuintl.in.h (fprintf, vfprintf, printf, vprintf,
sprintf, vsprintf, snprintf, vsnprintf, asprintf, vasprintf): Use Gnulib-
provided macros to test more reliably whether Gnulib overrides these functions.

4 years agoUpdate after gnulib changed.
Bruno Haible [Sun, 20 Jun 2021 12:19:39 +0000 (14:19 +0200)] 
Update after gnulib changed.

Previously, different gnulib-tool invocations within the scope of the same
configure.ac interfered with each other (through the GNULIB_* indicator macros,
used in the generated .h files), and libgrep relied on it. Now, each gnulib-tool
invocation needs its own copy of the generated .h files, in particular locale.h.
Needed for the localeconv() override on native Windows.

* autogen.sh: When invoking gnulib-tool for libgrep, don't avoid 'locale' and
the other header file modules.
* gettext-tools/configure.ac: Set GL_GRGL_GNULIB_SETLOCALE_NULL to 1.

4 years agoUpdate after gnulib changed.
Bruno Haible [Sun, 20 Jun 2021 01:47:14 +0000 (03:47 +0200)] 
Update after gnulib changed.

* gettext-runtime/libasprintf/autosprintf.cc: Include <config.h>. This is
needed because of these new gnulib module dependencies:
  vasnprintf -> free-posix -> stdlib -> unistd,
and the generated unistd.h gets included indirectly by <string> on OpenBSD 6.7
and gives a #error "Please include config.h first."