]> git.ipfire.org Git - thirdparty/gettext.git/log
thirdparty/gettext.git
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.

3 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.

3 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.

3 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.

3 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.

3 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.

3 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.

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

3 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.

3 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.

3 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.

3 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.

4 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."

4 years agoUpdate to the newest gnulib.
Bruno Haible [Sun, 20 Jun 2021 01:44:25 +0000 (03:44 +0200)] 
Update to the newest gnulib.

* gnulib-local/lib/localename.c.diff: Remove file.
* gnulib-local/lib/localename-table.h.diff: Remove file.
* gnulib-local/lib/tsearch.c.diff: Remove file.
* gnulib-local/modules/tsearch.diff: Remove file.
* gnulib-local/Makefile.am (EXTRA_DIST): Remove them.
* libtextstyle/configure.ac: Update for changed naming convention of module
indicator variables.

4 years agobuild: Simplify further.
Bruno Haible [Sun, 20 Jun 2021 12:25:39 +0000 (14:25 +0200)] 
build: Simplify further.

* gettext-runtime/intl/Makefile.am: Assume BUILD_INCLUDED_LIBINTL is true.
* gettext-runtime/intl/configure.ac: Remove BUILD_INCLUDED_LIBINTL conditional.
* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): Don't set
BUILD_INCLUDED_LIBINTL.

4 years agobuild: Revert unneeded change.
Bruno Haible [Sun, 20 Jun 2021 14:06:04 +0000 (16:06 +0200)] 
build: Revert unneeded change.

* autogen.sh: Do the automake invocations bottom-up, as before.

4 years agointl: Assume strtoul exists.
Bruno Haible [Sun, 20 Jun 2021 01:43:54 +0000 (03:43 +0200)] 
intl: Assume strtoul exists.

* gettext-runtime/intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Assume
HAVE_STRTOUL to be 1.
* gettext-runtime/m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for strtoul.

4 years agointl: Assume strdup exists.
Bruno Haible [Sun, 20 Jun 2021 01:43:50 +0000 (03:43 +0200)] 
intl: Assume strdup exists.

* gettext-runtime/intl/bindtextdom.c (set_binding_values): Assume HAVE_STRDUP
to be 1.
* gettext-runtime/intl/finddomain.c (_nl_find_domain): Likewise.
* gettext-runtime/intl/textdomain.c (TEXTDOMAIN): Likewise.
* gettext-runtime/m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for strdup.

4 years agointl: Assume <limits.h> exists.
Bruno Haible [Sun, 20 Jun 2021 01:43:45 +0000 (03:43 +0200)] 
intl: Assume <limits.h> exists.

* gettext-runtime/intl/dcigettext.c: Include <limits.h> always.
* gettext-runtime/m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for limits.h.

4 years agobuild: Move most of intl.m4 into gettext-runtime/intl/configure.ac.
Bruno Haible [Sun, 20 Jun 2021 01:43:32 +0000 (03:43 +0200)] 
build: Move most of intl.m4 into gettext-runtime/intl/configure.ac.

* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): Don't invoke AM_INTL_SUBDIR.
* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR, gt_GL_ATTRIBUTE): Remove macros.
(gt_INTL_SUBDIR_CORE): Test for uselocale.
* gnulib-local/modules/gettext-runtime-intl-misc (configure.ac): Ensure
LOCALENAME_ENHANCE_LOCALE_FUNCS initialization.
* autogen.sh (GNULIB_MODULES_LIBINTL): Add lib-symbol-visibility, localename.
* gettext-runtime/intl/configure.ac: Set WINDRES. Invoke gt_INTL_SUBDIR_CORE.
Set HAVE_POSIX_PRINTF, HAVE_ASPRINTF, HAVE_SNPRINTF, HAVE_WPRINTF,
HAVE_NEWLOCALE. Test for features.h, _snprintf, _snwprintf.
Set ENHANCE_LOCALE_FUNCS, WOE32DLL.

4 years agobuild: Simplify the use of gnulib in libintl.
Bruno Haible [Sun, 20 Jun 2021 01:43:17 +0000 (03:43 +0200)] 
build: Simplify the use of gnulib in libintl.

* gnulib-local/lib/localename-table.h.diff: New file.
* gnulib-local/lib/localename.c.diff: New file.
* gnulib-local/lib/tsearch.c.diff: New file.
* gnulib-local/modules/gettext-runtime-intl-misc: New file, based on
gettext-runtime/intl/Makefile.am.
* gnulib-local/modules/tsearch.diff: New file.
* gnulib-local/Makefile.am (EXTRA_DIST): Add them.
* autogen.sh (GNULIB_MODULES_LIBINTL, GNULIB_SETLOCALE_DEPENDENCIES): New
variables.
Invoke gnulib-tool for the gettext-runtime/intl/ directory.
Update 'aclocal' invocation for the gettext-runtime/intl/ directory.
* gettext-runtime/intl/configure.ac (enable_relocatable): Set to yes always.
Invoke gl_EARLY and gl_INIT. Don't invoke gl_USE_SYSTEM_EXTENSIONS,
AM_PROG_CC_C_O, gl_COMMON, gl_RELOCATABLE_LIBRARY explicitly.
Define IN_LIBINTL through config.h.
Rename __libc* macros and symbols through config.h.
Invoke AC_CONFIG_FILES for gnulib-lib/Makefile.
* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Don't rename __libc* macros and
symbols here.
(gt_INTL_SUBDIR_CORE): Don't test for tsearch.
* gettext-runtime/intl/arg-nonnull.h: Remove file.
* gettext-runtime/intl/attribute.h: Remove file.
* gettext-runtime/intl/filename.h: Remove file.
* gettext-runtime/intl/flexmember.h: Remove file.
* gettext-runtime/intl/localcharset.h: Remove file.
* gettext-runtime/intl/localcharset.c: Remove file.
* gettext-runtime/intl/localename.c: Remove file.
* gettext-runtime/intl/localename-table.in.h: Remove file.
* gettext-runtime/intl/localename-table.c: Remove file.
* gettext-runtime/intl/lock.h: Remove file.
* gettext-runtime/intl/lock.c: Remove file.
* gettext-runtime/intl/printf-args.h: Remove file.
* gettext-runtime/intl/printf-args.c: Remove file.
* gettext-runtime/intl/printf-parse.h: Remove file.
* gettext-runtime/intl/printf-parse.c: Remove file.
* gettext-runtime/intl/relocatable.h: Remove file.
* gettext-runtime/intl/relocatable.c: Remove file.
* gettext-runtime/intl/setlocale-lock.c: Remove file.
* gettext-runtime/intl/setlocale_null.h: Remove file.
* gettext-runtime/intl/setlocale_null.c: Remove file.
* gettext-runtime/intl/thread-optim.h: Remove file.
* gettext-runtime/intl/threadlib.c: Remove file.
* gettext-runtime/intl/tsearch.h: Remove file.
* gettext-runtime/intl/tsearch.c: Remove file.
* gettext-runtime/intl/vasnprintf.c: Remove file.
* gettext-runtime/intl/verify.h: Remove file.
* gettext-runtime/intl/windows-initguard.h: Remove file.
* gettext-runtime/intl/windows-mutex.h: Remove file.
* gettext-runtime/intl/windows-mutex.c: Remove file.
* gettext-runtime/intl/windows-once.h: Remove file.
* gettext-runtime/intl/windows-once.c: Remove file.
* gettext-runtime/intl/windows-recmutex.h: Remove file.
* gettext-runtime/intl/windows-recmutex.c: Remove file.
* gettext-runtime/intl/windows-rwlock.h: Remove file.
* gettext-runtime/intl/windows-rwlock.c: Remove file.
* gettext-runtime/intl/xsize.h: Remove file.
* gettext-runtime/intl/xsize.c: Remove file.
* gettext-runtime/intl/Makefile.am (ACLOCAL_AMFLAGS): Reference gnulib-m4 in
this directory.
(SUBDIRS): Add gnulib-lib.
(AM_CPPFLAGS): Add -I statements for the gnulib-lib directory. Don't define
BUILDING_DLL, IN_LIBINTL here. Don't parametrize the 'relocatable-lib-lgpl'
module here.
(EXTRA_DIST, LIBINTLSOURCES): Remove the said files.
(localename-table.h): Remove rule.
(*.lo): Remove rules and dependencies for the said files.
(libintl_la_LIBADD, libintl_la_DEPENDENCIES, libgnuintl_la_LIBADD,
libgnuintl_la_DEPENDENCIES): Add gnulib-lib/libgnu.la.
(OTHER_LDFLAGS): Don't export _libintl_* symbols.
(EXTRA_DIST): Add gnulib-m4/gnulib-cache.m4.
* gettext-runtime/intl/gettextP.h: Include glthread/lock.h, not lock.h.
(gl_locale_name_canonicalize, gl_locale_name_from_win32_LANGID,
gl_locale_name_from_win32_LCID, gl_locale_name_thread_unsafe,
gl_locale_name_thread, gl_locale_name_posix, gl_locale_name_environ,
gl_locale_name_default, gl_locale_name): Remove macros.
(_nl_locale_name_posix, _nl_locale_name_environ, _nl_locale_name_default):
Remove declarations.
* gettext-runtime/intl/plural-exp.h (FREE_EXPRESSION, PLURAL_PARSE,
GERMANIC_PLURAL, EXTRACT_PLURAL_EXPRESSION): Prefix these libintl-private
symbols with _libintl_, not libintl_.
* gettext-runtime/intl/bindtextdom.c: Include glthread/lock.h, not lock.h.
* gettext-runtime/intl/finddomain.c: Likewise.
* gettext-runtime/intl/loadmsgcat.c: Likewise.
* gettext-runtime/intl/localealias.c: Likewise.
* gettext-runtime/intl/log.c: Likewise.
* gettext-runtime/intl/textdomain.c: Likewise.
* gettext-runtime/intl/dcigettext.c: Include localename.h. Include
glthread/lock.h, not lock.h.
Include <search.h> always; don't include tsearch.c.
* gettext-runtime/intl/printf.c: Don't define libintl_vasprintf here. Instead,
use _libintl_vasprintf from gnulib-lib/vasnprintf.c. Define _libintl_vasnwprintf
instead of libintl_vasnwprintf.
* gettext-runtime/intl/setlocale.c: Include <errno.h>, localename.h.
(gl_locale_name_canonicalize): New declaration.
* Makefile.am (distcheck-hook): Remove the file comparisons for files in
gettext-runtime/intl/.

4 years agobuild: Add a separate configure.ac in gettext-runtime/intl/.
Bruno Haible [Sun, 20 Jun 2021 01:42:49 +0000 (03:42 +0200)] 
build: Add a separate configure.ac in gettext-runtime/intl/.

* autogen.sh (GNULIB_MODULES_RUNTIME_OTHER): Remove bison. Instead, copy
bison.m4 explicitly.
Generate configure file also in gettext-runtime/intl/.
Do automake invocations top-down, not bottom-up.
* gettext-runtime/intl/Makefile.am (ACLOCAL_AMFLAGS, SUBDIRS): New variables.
* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): Allow 'here' as INTLSYMBOL
argument.
* gettext-runtime/intl/configure.ac: New file, based on
gettext-runtime/configure.ac.
* gettext-runtime/intl/AUTHORS: New file.
* gettext-runtime/intl/NEWS: New file.
* gettext-runtime/intl/README: New file.
* gettext-runtime/intl/ABOUT-NLS: New file, copied from
gettext-runtime/ABOUT-NLS.
* gettext-runtime/intl/INSTALL: New file, copied from gettext-runtime/INSTALL.
* gettext-runtime/configure.ac: Define WINDRES. Pass third argument to
AM_GNU_GETTEXT. Remove conditionals USE_INCLUDED_LIBINTL,
BUILD_INCLUDED_LIBINTL, PRELOADABLE_LIBINTL. Invoke AC_CONFIG_SUBDIRS([intl]).
Don't create intl/Makefile from here.
* gettext-tools/configure.ac: Define WINDRES. Redefine __libc_lock_*, for use
in localealias.c. Invoke gt_GLIBC2.

4 years agoAvoid lang-vala failure on Ubuntu 16.04 in 32-bit mode.
Bruno Haible [Sun, 20 Jun 2021 01:42:13 +0000 (03:42 +0200)] 
Avoid lang-vala failure on Ubuntu 16.04 in 32-bit mode.

* gettext-tools/tests/lang-vala: Skip the test if the valac invocation on a
trivial program fails.

4 years agobuild: Restore installation of preloadable_libintl.so (regression 2021-06-15).
Bruno Haible [Sun, 20 Jun 2021 01:42:04 +0000 (03:42 +0200)] 
build: Restore installation of preloadable_libintl.so (regression 2021-06-15).

* gettext-tools/configure.ac (USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL,
PRELOADABLE_LIBINTL): Remove unused conditionals.
* gettext-runtime/configure.ac (PRELOADABLE_LIBINTL): Define as before in
gettext-tools/configure.ac.
* PACKAGING: Update regarding preloadable_libintl.so.

4 years agolibtextstyle: Fix build in locales other than the C locale (regression 2021-04-07).
Bruno Haible [Sun, 20 Jun 2021 01:41:45 +0000 (03:41 +0200)] 
libtextstyle: Fix build in locales other than the C locale (regression 2021-04-07).

* libtextstyle/lib/Makefile.am (config.h): Invoke join-v-1 in the C locale.

4 years agolibtextstyle: Fix compilation error with cc on Solaris 10.
Bruno Haible [Sun, 20 Jun 2021 01:41:26 +0000 (03:41 +0200)] 
libtextstyle: Fix compilation error with cc on Solaris 10.

* gnulib-local/lib/libxml/timsort.h: Use 'inline' instead of '__inline'.

4 years agobuild: Simplify further.
Bruno Haible [Sun, 20 Jun 2021 01:41:04 +0000 (03:41 +0200)] 
build: Simplify further.

* autogen.sh: Don't create a directory gettext-tools/intl/ any more.

4 years agobuild: Simplify further.
Bruno Haible [Sun, 20 Jun 2021 01:40:56 +0000 (03:40 +0200)] 
build: Simplify further.

* gettext-tools/src/Makefile.am (msginit_SOURCES): Remove Solaris workaround
(no longer needed).

4 years agobuild: Simplify: Don't build libintl+libgnuintl a second time in gettext-tools.
Bruno Haible [Tue, 15 Jun 2021 10:49:11 +0000 (12:49 +0200)] 
build: Simplify: Don't build libintl+libgnuintl a second time in gettext-tools.

* PACKAGING: Document that gettext-tools cannot be built without
gettext-runtime.
* autogen.sh: Don't create gettext-tools/intl/Makefile.am.
* gettext-tools/Makefile.am (SUBDIRS): Remove 'intl'.
* gettext-runtime/intl/Makefile.am (dist-hook): Remove.
(install-data-local, uninstall-local, uninstall-sources): Moved ...
* gettext-tools/misc/Makefile.am (install-data-local, uninstall-local,
uninstall-sources): ... to here.
* gettext-runtime/configure.ac (PACKAGE_IS_GETTEXT_TOOLS): Remove conditional.
* gettext-tools/configure.ac: Add 3rd argument to AM_GNU_GETTEXT invocation.
(PACKAGE_IS_GETTEXT_TOOLS): Remove conditional.
Update reference to os2compat.h.
Don't create intl/Makefile from intl/Makefile.in.
* gettext-tools/gnulib-lib/Makefile.am (AM_CPPFLAGS): Use the built header files
in gettext-runtime/intl/.
* gettext-tools/libgrep/Makefile.am (AM_CPPFLAGS): Likewise.
* gettext-tools/src/Makefile.am (AM_CPPFLAGS): Likewise.
* gettext-tools/libgettextpo/Makefile.am (AM_CPPFLAGS): Likewise.
* gettext-tools/gnulib-tests/Makefile.am (AM_CPPFLAGS): Likewise.
* gettext-tools/tests/Makefile.am (AM_CPPFLAGS): Likewise.
(LDADD_yes, LDADD_no): Use the built libraries in gettext-runtime/intl/.
* gettext-tools/tests/lang-c: Use the built header files in gettext-runtime/intl/.
* gettext-tools/tests/lang-c++: Likewise.
* gettext-tools/tests/lang-objc: Likewise.

4 years agoFix build failure on AIX 7.
Bruno Haible [Tue, 15 Jun 2021 08:36:08 +0000 (10:36 +0200)] 
Fix build failure on AIX 7.

* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Require gl_LOCALE_H_DEFAULTS
before gt_INTL_THREAD_LOCALE_NAME.