2026-01-29  Bruno Haible  <bruno@clisp.org>

	examples: Use infrastructure from gettext version 1.0.
	* gettext-tools/examples/hello-*/configure.ac: Use AM_GNU_GETTEXT_VERSION with
	version 1.0.
	* gettext-tools/examples/hello-c++-kde/configure.in.in: Likewise.
	* gettext-tools/examples/hello-*/autogen.sh: Copy remove-potcdate.sed from the
	new location in the source tree. Copy also the no-op fetch-po.
	* gettext-tools/examples/hello-*/autoclean.sh: Remove also fetch-po.

2026-01-29  Bruno Haible  <bruno@clisp.org>

	Prepare for 1.0 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.
	* libtextstyle/version.sh: Update VERSION_NUMBER, RELEASE_DATE.
	* gettext-tools/libgettextpo/gettext-po.in.h (LIBGETTEXTPO_VERSION): Bump.
	* gettext-tools/wizard/po-templates/traditional/Makefile.in.in: Update Origin.
	* gettext-runtime/intl/Makefile.am (LTV_*): Bump to 12:6:4.
	* libtextstyle/lib/Makefile.am (LTV_*): Bump to 2:7:2.
	* gettext-tools/libgettextpo/Makefile.am (LTV_*): Bump to 6:0:6.
	* gettext-tools/autotools/autopoint.in: Accept version 1.0.
	* gettext-tools/configure.ac (ARCHIVE_VERSION): Bump to 1.0.
	* gettext-tools/autotools/archive.dir.tar: Regenerated.

2026-01-29  Bruno Haible  <bruno@clisp.org>

	Update translations from TP.

2026-01-29  Bruno Haible  <bruno@clisp.org>

	msginit: Don't backup when mergeing a PO file and --no-translator is given.
	* gettext-tools/src/msginit.c (main): Don't create a backup file if
	--no-translator is specified.

2026-01-29  Bruno Haible  <bruno@clisp.org>

	msginit: Fix handling of --properties-output when producing a merged PO file.
	* gettext-tools/src/msgl-merge.h (merge): Add definitions_file_syntax parameter.
	Rename input_syntax parameter to references_file_syntax.
	* gettext-tools/src/msgl-merge.c (merge): Likewise.
	* gettext-tools/src/msginit.c (main): New variable output_file_input_syntax.
	Fix merge() call.
	* gettext-tools/src/msgmerge.c (main): Update merge() call.

2026-01-28  Bruno Haible  <bruno@clisp.org>

	po: Distribute the fetch-po file.
	This is somewhat tricky, because it is also a phony Makefile target.

	* gettext-tools/wizard/po-templates/traditional/Makefile.in.in (dist2):
	Distribute 'fetch-po'.
	* gettext-tools/examples/po/Makefile.am (distdir1): Distribute 'fetch-po'.
	* gettext-tools/examples/hello-*/po/Makefile.am (distdir1): Likewise.

2026-01-28  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2026-01-28  Bruno Haible  <bruno@clisp.org>

	xgettext: PHP: Fix parsing of strings and heredocs with embedded expressions.
	Reported by Gert Jan Schoneveld <gertjan@facilityapps.com> in
	<https://lists.gnu.org/archive/html/bug-gettext/2025-08/msg00007.html>
	and by Benoit Waldmann <benoit.waldmann@siagilus.fr>
	at <https://savannah.gnu.org/bugs/index.php?item_id=67948>.

	* gettext-tools/src/x-php.c (enum token_type_ty): New enum values
	token_type_lbrace, token_type_rbrace.
	(struct php_extractor): New field brace_nesting_depth.
	(php_extractor_init_rest): Initialize it.
	(extract_balanced): Forward-declare.
	(process_dquote_or_heredoc): Change handling of embedded expressions.
	(phase4_get): Recognize token_type_lbrace, token_type_rbrace.
	(extract_balanced): Recurse also for token_type_lbrace.
	(extract_php_input): Remove function.
	(extract_php): Inline it here.
	* gettext-tools/tests/xgettext-php-1: Add more tests of embedded expressions.

2026-01-28  Bruno Haible  <bruno@clisp.org>

	Update "Written by ..." lines in --version output.
	* gettext-tools/src/msgfmt.c (main): Add me and Daiki Ueno as co-authors.
	* gettext-runtime/src/ngettext.c (main): Add me as co-author.
	* gettext-tools/src/msgmerge.c (main): Likewise.
	* gettext-tools/src/msgunfmt.c (main): Likewise.
	* gettext-tools/src/xgettext.c (main): Likewise.
	* gettext-tools/wizard/gettextize.in (func_version): Likewise. Terminate the
	'Written by' line with a '.'.
	* gettext-tools/autotools/autopoint.in (func_version): Terminate the
	'Written by' line with a '.'.
	* gettext-tools/autotools/convert-archive.in (func_version): Likewise.
	* gettext-tools/misc/po-fetch.in (func_version): Likewise.
	* gettext-runtime/src/gettext.sh.in (func_version): Likewise.
	* libtextstyle/gnulib-local/build-aux/moopp (func_version): Likewise.

2026-01-27  Bruno Haible  <bruno@clisp.org>

	po-mode: Prepare for inclusion in GNU ELPA.
	Suggested by Stefan Monnier <monnier@iro.umontreal.ca> in
	<https://lists.gnu.org/archive/html/bug-gettext/2026-01/msg00086.html>.

	* gettext-tools/emacs/po-mode.el: Add meta-information field 'Version:',
	required by ELPA. Move meta-information after the copyright and license notice.
	(po-mode-version-string): Move definition.
	* gettext-tools/emacs/po-compat.el: Move meta-information after the copyright
	and license notice. Convert the file to UTF-8 encoding.

2026-01-27  Bruno Haible  <bruno@clisp.org>

	Update "Written by ..." lines and authorship notices in source files.

2026-01-26  Bruno Haible  <bruno@clisp.org>

	Update email address in copyright notices.

2026-01-26  Bruno Haible  <bruno@clisp.org>

	Use the common comment style.

2026-01-25  Bruno Haible  <bruno@clisp.org>

	Fix a small memory leak in libgettextpo.
	Reported by <gemmaro.dev@gmail.com> at
	<https://savannah.gnu.org/bugs/index.php?item_id=67892>
	and by Albert Astals Cid <aacid@kde.org> in
	<https://lists.gnu.org/archive/html/bug-gettext/2026-01/msg00071.html>.

	* gettext-tools/src/read-po-lex.h: Include str-list.h.
	(lex_start): Add arena parameter.
	* gettext-tools/src/read-po-lex.c (lex_start): Add arena parameter. Add the
	heap-allocated file_name to the arena.
	* gettext-tools/src/read-catalog-abstract.h: Include str-list.h.
	(struct catalog_input_format): Add arena parameter to parse() method.
	(catalog_reader_parse): Add arena parameter.
	* gettext-tools/src/read-properties.c (properties_parse): Add arena parameter.
	* gettext-tools/src/read-stringtable.c (stringtable_parse): Add arena parameter.
	* gettext-tools/src/read-po.c (po_parse): Add arena parameter. Update lex_start
	call.
	* gettext-tools/src/read-catalog-abstract.c (catalog_reader_parse): Add arena
	parameter. Update parse() method call.
	* gettext-tools/src/read-catalog.h: Include str-list.h.
	(read_catalog_stream): Add arena parameter.
	* gettext-tools/src/read-catalog.c (read_catalog_stream): Add arena parameter.
	Update catalog_reader_parse call.
	* gettext-tools/src/read-catalog-file.c: Include str-list.h.
	(read_catalog_file): Update read_catalog_stream call.
	* gettext-tools/src/read-csharp.c: Include str-list.h.
	(execute_and_read_po_output): Update read_catalog_stream call.
	* gettext-tools/src/read-java.c: Include str-list.h.
	(execute_and_read_po_output): Update read_catalog_stream call.
	* gettext-tools/src/read-resources.c: Include str-list.h.
	(execute_and_read_po_output): Update read_catalog_stream call.
	* gettext-tools/src/read-tcl.c: Include str-list.h.
	(msgdomain_read_tcl): Update read_catalog_stream call.
	* gettext-tools/libgettextpo/gettext-po.c: Include str-list.h.
	(struct po_file): Add field 'arena'.
	(po_file_create): Initialize it.
	(po_file_read): Likewise. Update read_catalog_stream call.
	(po_file_free): Destroy the arena.
	* gettext-tools/src/msgfmt.c (read_catalog_file_msgfmt): Update
	catalog_reader_parse call.
	* gettext-tools/src/x-po.c: Include str-list.h.
	(extract): Update catalog_reader_parse call.
	* gettext-tools/src/xgettext.c (read_exclusion_file): Update
	catalog_reader_parse call.

2026-01-25  Bruno Haible  <bruno@clisp.org>

	doc: Explain translation projects.
	* gettext-tools/doc/gettext.texi (Interfacing with the Translators): New
	section.

2026-01-25  Bruno Haible  <bruno@clisp.org>

	Fix warnings with gcc 15 and glibc 2.43.
	* libtextstyle/gnulib-local/lib/glib/gstrfuncs.in.h (g_strstr_len): Change
	return type to 'const gchar *'.
	* libtextstyle/gnulib-local/lib/glib/gstrfuncs.c (g_strstr_len): Likewise.
	* libtextstyle/gnulib-local/lib/libcroco/cr-rgb.c (cr_rgb_set_from_name): Change
	type of 'result'.
	* gettext-tools/src/cldr-plurals.c (extract_rules): Cast the sb_xcontents_c
	result to 'char *'.

2026-01-17  Bruno Haible  <bruno@clisp.org>

	Fix some -Wzero-as-null-pointer-constant warnings.
	* gnulib-local/lib/backupfile.c (max_backup_version, backup_args, get_version):
	Write NULL instead of 0.
	* gettext-tools/src/x-go.c (add_to_hash_table): Likewise.

2026-01-15  Bruno Haible  <bruno@clisp.org>

	build: Fix "make installcheck" on MSVC.
	Reported by Kirill Makurin <maiddaisuki@outlook.com> in
	<https://lists.gnu.org/archive/html/bug-gettext/2026-01/msg00042.html>.

	* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): New variable
	INTL_WINDOWS_LIBS. Add it to LIBINTL and LTLIBINTL.
	* gettext-runtime/configure.ac (INSTALLED_LIBINTL): Add $INTL_WINDOWS_LIBS.
	* gettext-tools/configure.ac (INSTALLED_LIBINTL): Likewise.
	* libtextstyle/configure.ac (INSTALLED_LIBTEXTSTYLE): New variable.
	* libtextstyle/install-tests/Makefile.am (installcheck-local): Link with
	$INSTALLED_LIBTEXTSTYLE instead of -ltextstyle.

2026-01-13  Bruno Haible  <bruno@clisp.org>

	Prepare for 1.0-pre2 prerelease.
	* gettext-runtime/src/envsubst.c (main): Update copyright year in --version
	output.
	* gettext-runtime/src/gettext.c (main): Likewise.
	* gettext-runtime/src/gettext.sh.in (func_version): Likewise.
	* gettext-runtime/src/ngettext.c (main): Likewise.
	* gettext-runtime/src/printf_gettext.c (main): Likewise.
	* gettext-runtime/src/printf_ngettext.c (main): Likewise.
	* gettext-tools/src/cldr-plurals.c (main): Likewise.
	* gettext-tools/src/hostname.c (main): Likewise.
	* gettext-tools/src/msgattrib.c (main): Likewise.
	* gettext-tools/src/msgcat.c (main): Likewise.
	* gettext-tools/src/msgcmp.c (main): Likewise.
	* gettext-tools/src/msgcomm.c (main): Likewise.
	* gettext-tools/src/msgconv.c (main): Likewise.
	* gettext-tools/src/msgen.c (main): Likewise.
	* gettext-tools/src/msgexec.c (main): Likewise.
	* gettext-tools/src/msgfilter.c (main): Likewise.
	* gettext-tools/src/msgfmt.c (main): Likewise.
	* gettext-tools/src/msggrep.c (main): Likewise.
	* gettext-tools/src/msginit.c (main): Likewise.
	* gettext-tools/src/msgmerge.c (main): Likewise.
	* gettext-tools/src/msgpre.c (main): Likewise.
	* gettext-tools/src/msgunfmt.c (main): Likewise.
	* gettext-tools/src/msguniq.c (main): Likewise.
	* gettext-tools/src/recode-sr-latin.c (main): Likewise.
	* gettext-tools/src/spit.c (main): Likewise.
	* gettext-tools/src/spit.py.in (main): Likewise.
	* gettext-tools/src/urlget.c (main): Likewise.
	* gettext-tools/src/xgettext.c (main): Likewise.
	* gettext-tools/autotools/convert-archive.in (func_version): Likewise.
	* gettext-tools/autotools/autopoint.in (func_version): Likewise.
	* gettext-tools/wizard/gettextize.in (func_version): Likewise.

2026-01-13  Michele Locati  <michele@locati.it>

	cldr-plurals: Fix parsing of plurals.xml from CLDR 38 or newer.
	Reported by Michele Locati at <https://savannah.gnu.org/bugs/?66378>.

	* gettext-tools/src/cldr-plural-exp.c (eval_relation): Accept operands 'c', 'e'.
	* gettext-tools/src/cldr-plural.y (yylex): Likewise.
	* gettext-tools/src/cldr-plurals.c (extract_rules): Test for type='cardinal'.
	(get_XcY_end, force_spaces, remove_XcY, remove_empty_examples): New functions.
	(main): Invoke force_spaces, remove_XcY, remove_empty_examples.
	* gettext-tools/tests/cldr-plurals-1: Add more tests.
	* AUTHORS: Add Michele Locati.

2026-01-12  Bruno Haible  <bruno@clisp.org>

	Document a libcurl requirement.
	Reported by Michele Locati <michele@locati.it> in
	<https://lists.gnu.org/archive/html/bug-gettext/2026-01/msg00029.html>.

	* DEPENDENCIES: Mention special requirements of libcurl on Windows.

2026-01-11  Bruno Haible  <bruno@clisp.org>

	Improve support for clang on native Windows.
	* gettext-tools/src/write-mo.c (roundup): Treat clang like GCC.

2026-01-11  Bruno Haible  <bruno@clisp.org>

	Improve support for clang on native Windows.
	* gettext-runtime/intl/libgnuintl.in.h (_INTL_REDIRECT_ASM): Treat clang like
	GCC.

2026-01-11  Bruno Haible  <bruno@clisp.org>

	Improve support for clang on native Windows.
	Reported by Kirill Makurin <maiddaisuki@outlook.com> in
	<https://lists.gnu.org/archive/html/bug-gettext/2026-01/msg00021.html>.

	* libtextstyle/gnulib-local/lib/ostream.oo.h (ostream_printf, ostream_vprintf):
	Treat clang like GCC.
	* gettext-runtime/libasprintf/vasprintf.h (__attribute__, __format__,
	__printf__): Likewise.
	* gettext-runtime/libasprintf/autosprintf.in.h (_AUTOSPRINTF_ATTRIBUTE_FORMAT):
	Likewise.
	* gettext-tools/src/format.h (formatstring_error_logger_t): Likewise.
	* gettext-tools/src/if-error.h (if_error, if_verror): Likewise.
	* gettext-tools/src/msgl-check.c (formatstring_error_logger): Likewise.
	* gettext-tools/src/msgl-merge.c (silent_error_logger): Likewise.
	* gettext-tools/src/po-error.h (__attribute__, __format__, __printf__, po_error,
	po_error_at_line): Likewise.
	* gettext-tools/src/read-po-lex.h (__attribute__, __format__, __printf__):
	Likewise.
	* gettext-tools/src/xg-check.c (formatstring_error_logger): Likewise.
	* gettext-tools/libgettextpo/gettext-po.in.h (struct po_error_handler):
	Likewise.

2026-01-10  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Assume a working <stdbool.h>.
	* libtextstyle/lib/textstyle.h: Include <stdbool.h> instead of
	<textstyle/stdbool.h>.
	* libtextstyle/lib/Makefile.am (nobase_nodist_include_HEADERS): Don't add
	textstyle/stdbool.h.
	(textstyle/stdbool.h): Remove rule.
	(BUILT_SOURCES, MOSTLYCLEANFILES, CLEANFILES): Update accordingly.
	(EXTRA_DIST): Remove stdbool.mini.h.
	* libtextstyle/lib/stdbool.mini.h: Remove file.
	* gettext-tools/src/Makefile.am (textstyle/stdbool.h): Remove target.
	(BUILT_SOURCES, MOSTLYCLEANFILES): Remove textstyle/stdbool.h.

2026-01-10  Bruno Haible  <bruno@clisp.org>

	xgettext: Allow inhibiting the warnings about URLs and email addresses.
	Reported at <https://savannah.gnu.org/bugs/?67672>.

	* gettext-tools/src/message.h (enum syntax_check_type): Add sc_url, sc_email.
	(NSYNTAXCHECKS): Increase by 2.
	* gettext-tools/src/message.c (syntax_check_name): Update.
	* gettext-tools/src/xgettext.h (default_syntax_check): Add comment.
	* gettext-tools/src/xgettext.c (default_syntax_check): Add initializer.
	(main): Recognize --no-check option.
	(usage): Document --no-check option.
	* gettext-tools/src/xg-message.c (decide_syntax_check): Assume that
	default_syntax_check[i] != undecided.
	* gettext-tools/src/xg-check.c (syntax_check_function): Remove the second
	argument.
	(string_has_ascii_ellipsis): New function, extracted from
	syntax_check_ellipsis_unicode.
	(message_has_ascii_ellipsis): New function.
	(syntax_check_ellipsis_unicode): Remove the second argument. Simplify. Emit only
	a single error for both msgid and msgid_plural.
	(string_has_space_ellipsis): New function, extracted from
	syntax_check_space_ellipsis.
	(message_has_space_ellipsis): New function.
	(syntax_check_space_ellipsis): Remove the second argument. Simplify. Emit only
	a single error for both msgid and msgid_plural.
	(syntax_check_quote_unicode): Remove the second argument.
	(syntax_check_bullet_unicode_string): New function, extracted from
	syntax_check_bullet_unicode.
	(syntax_check_bullet_unicode): Remove the second argument. Simplify.
	(string_has_url): Don't recognize 'mailto:' URLs.
	(syntax_check_url, syntax_check_email): New functions, extracted from
	url_check_message.
	(url_check_message): Remove function.
	(sc_funcs): Add syntax_check_url, syntax_check_email.
	(syntax_check_message): Simplify.
	(xgettext_check_message_list): Don't invoke url_check_message.
	* gettext-tools/tests/xgettext-14: Update after xg-check.c changesd.
	* gettext-tools/tests/xgettext-20: Add more testcases.
	* gettext-tools/doc/xgettext.texi: Document the --no-check option.
	* gettext-tools/doc/gettext.texi: Bump copyright year.
	* NEWS: Mention the change.

2026-01-10  Bruno Haible  <bruno@clisp.org>

	Document libjson-c version needed with MSVC.
	* DEPENDENCIES (libjson-c): Add note regarding MSVC.

2026-01-08  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Fix compilation error on platforms without working iconv.
	* libtextstyle/gnulib-local/lib/iconv-ostream.oo.c (iconv_ostream::flush): Add
	second parameter.

2026-01-07  Bruno Haible  <bruno@clisp.org>

	build: Fix build failure in VPATH builds outside of the source tree.
	* build-aux/jar-cf: Unset CDPATH. Run 'git log' from $top_srcdir, not from the
	current directory.

2026-01-02  Bruno Haible  <bruno@clisp.org>

	po-mode: Tweak.
	* gettext-tools/emacs/po-mode.el: Require Emacs >= 23, like before.
	(po-mode-version-string): Bump to 2.32.

2026-01-02  gemmaro  <gemmaro.dev@gmail.com>

	po-mode: Add po-subedit-mode-hook.
	Reported by <KAction@gnu.org> at
	<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890295>.

	* gettext-tools/emacs/po-mode.el (po-subedit-mode-hook): Add the
	customize variable.

2026-01-02  gemmaro  <gemmaro.dev@gmail.com>

	po-mode: Use define-derived-mode for po-subedit-mode.
	* gettext-tools/emacs/po-mode.el (po-subedit-mode): Define as derived
	mode from text mode using define-derived-mode.
	(po-subedit-mode-syntax-table, po-mode-abbrev-table): Remove these
	variables, as define-derived-mode creates them automatically.
	(po-edit-string): Use po-subedit-mode instead of text-mode.  Remove
	local abbrev table, keymap, syntax table, and hook invocation, since
	define-derived-mode handles these automatically.  Move easy-menu
	definition to the define-derived-mode body.
	(Package-Requires): Add minimum Emacs version requirement. The
	define-derived-mode was probably introduced in Emacs 19.23, and commit
	7797a29e9 dropped support for Emacs versions before 23.

2025-12-31  Collin Funk  <collin.funk1@gmail.com>

	msgfmt: Don't overflow the stack with large values for --alignment.
	Reported by <maxtodeath@gmail.com> at <https://savannah.gnu.org/bugs/?67743>.

	* gettext-tools/src/write-mo.c (write_table): Use xmalloca instead of
	alloca to allocate the buffer to fill with NUL bytes.

2025-12-31  Bruno Haible  <bruno@clisp.org>

	doc: Mention the issue of LLM licenses.
	* gettext-tools/doc/gettext.texi (Installing an LLM): Discuss LLM license and
	size.

2025-12-31  Bruno Haible  <bruno@clisp.org>

	po-fetch: Clarify the directory.
	Reported by Simon Josefsson in
	<https://lists.gnu.org/archive/html/bug-gettext/2025-12/msg00030.html>.

	* gettext-tools/misc/po-fetch.in (func_usage): Mention the output files
	location.
	* gettext-tools/doc/po-fetch.texi: Likewise.

2025-12-31  Bruno Haible  <bruno@clisp.org>

	Document the relation between fetch-po and version control.
	Reported by Simon Josefsson in
	<https://lists.gnu.org/archive/html/bug-gettext/2025-12/msg00030.html>.

	* gettext-tools/doc/gettext.texi (po/fetch-po): Add a reference.
	(Translations under Version Control): Remove subsection.
	(PO Template File under Version Control?): New subsection.
	(Translations under Version Control?): New subsection.

2025-12-31  Bruno Haible  <bruno@clisp.org>

	build: Avoid link error on native Windows with --enable-shared.
	Reported by Michele Locati <michele@locati.it> in
	<https://lists.gnu.org/archive/html/bug-gettext/2025-12/msg00038.html>.

	* gettext-tools/src/country-table.h (country_table, country_table_size): Remove
	LIBGETTEXTSRC_DLL_VARIABLE annotation.

2025-12-31  Bruno Haible  <bruno@clisp.org>

	po-fetch: Add man page.
	Reported by Simon Josefsson in
	<https://lists.gnu.org/archive/html/bug-gettext/2025-12/msg00030.html>.

	* gettext-tools/man/po-fetch.x: New file.
	* gettext-tools/man/po-fetch.1.diff: New file.
	* gettext-tools/man/Makefile.am (man_aux): Add po-fetch.x.
	(man_MAN1MISC): New variable.
	(man_MAN1): Include it.
	(man_HTML): Add po-fetch.1.html.
	($(man_MAN1MISC)): New rule.
	(po-fetch.1, po-fetch.1.html): State dependencies.
	* PACKAGING: Update.

2025-12-31  Bruno Haible  <bruno@clisp.org>

	build: Fix generation of man pages on native Windows.
	* gettext-tools/man/Makefile.am ($(man_MAN1WIZARD), $(man_MAN1AUTOTOOLS)): Write
	$${progname}, not $${progname}$(EXEEXT).

2025-12-30  Bruno Haible  <bruno@clisp.org>

	build: Reject libjson-c versions older than 0.13.
	Reported by Michele Locati <michele@locati.it> in
	<https://lists.gnu.org/archive/html/bug-gettext/2025-12/msg00036.html>.

	* DEPENDENCIES: Require libjson-c >= 0.13.
	* gettext-tools/configure.ac (LIBJSON_C): Reject libjson-c versions older than
	0.13.

2025-12-30  Bruno Haible  <bruno@clisp.org>

	Fix "make dist" error when BUILT_SPIT_IN_C is false.
	* gettext-tools/src/Makefile.am (noinst_SCRIPTS): Add 'spit'.
	(spit): New rule.
	(BUILT_SOURCES, MOSTLYCLEANFILES): Add it.

2025-12-29  Bruno Haible  <bruno@clisp.org>

	Start preparing for 1.0 release.
	* gettext-runtime/m4/gettext.m4: Bump version.

2025-12-29  Bruno Haible  <bruno@clisp.org>

	New program 'msgpre'.
	* gettext-tools/src/msgpre.c: New file, based on gettext-tools/src/msgfilter.c.
	* gettext-tools/src/FILES: Describe msgpre.c.
	* gettext-tools/src/Makefile.am (bin_PROGRAMS): Add msgpre.
	(msgpre_SOURCES, msgpre_LDADD, msgpre_DEPENDENCIES, msgpre_CPPFLAGS,
	msgpre_LDFLAGS): New variables.
	* gettext-tools/po/POTFILES.in: Add msgpre.c.
	* gettext-tools/man/msgpre.x: New file.
	* gettext-tools/man/Makefile.am (man_aux): Add msgpre.x.
	(man_MAN1SRC): Add msgpre.1.
	(man_HTML): Add msgpre.1.html.
	(msgpre.1, msgpre.1.html): Add dependencies.
	* gettext-tools/doc/gettext.texi (msgpre Invocation): New section.
	* gettext-tools/doc/msgpre.texi: New file.
	* gettext-tools/doc/Makefile.am (gettext_TEXINFOS): Add it.
	* gettext-tools/Makefile.am (programs-for-distdir): Create msgpre.
	(distdir1, gen-man1): Update for the msgpre.1 manual page.
	* NEWS: Mention the new program.

2025-12-28  Bruno Haible  <bruno@clisp.org>

	Whitespace tweaks.
	* gettext-tools/src/msgfilter.c: Fix indentation.
	* gettext-tools/src/*.c: GNU coding style.
	* gettext-tools/tests/*.c: Likewise.

2025-12-28  Bruno Haible  <bruno@clisp.org>

	New program 'spit'.
	* gettext-tools/machine-translation/README: New file.
	* gettext-tools/machine-translation/prototype/README: New file.
	* gettext-tools/machine-translation/prototype/OllamaSpit.java: New file.
	* gettext-tools/machine-translation/prototype/ollama-spit.c: New file.
	* gettext-tools/machine-translation/prototype/ollama-spit.go: New file.
	* gettext-tools/machine-translation/prototype/ollama-spit.py: New file.
	* gettext-tools/machine-translation/prototype/ollama-spit.sh: New file.
	* gettext-tools/configure.ac (INCJSON_C, LIBJSON_C, INCCURL, LIBCURL): New
	variables.
	(BUILD_SPIT_IN_C): New conditional.
	(AC_CONFIG_FILES): Add src/spit.py.
	* gettext-tools/src/country-table.h: New file.
	* gettext-tools/src/country-table.c: New file.
	* gettext-tools/src/spit.c: New file.
	* gettext-tools/src/spit.py.in: New file.
	* gettext-tools/src/FILES: Mention the new files.
	* gettext-tools/src/Makefile.am (bin_PROGRAMS): Conditionally add 'spit'.
	(noinst_SCRIPTS): New variable.
	(noinst_HEADERS): Add country-table.h.
	(spit_SOURCES, spit_CFLAGS, spit_LDADD, spit_DEPENDENCIES, spit_CPPFLAGS,
	spit_LDFLAGS): New variables.
	(install-exec-local): Conditionally install spit.py.
	(installdirs-local, uninstall-local): Update accordingly.
	(DISTCLEANFILES): Add spit.py.
	* gettext-tools/po/POTFILES.in: Add spit.c.
	* gettext-tools/man/spit.x: New file.
	* gettext-tools/man/Makefile.am (man_aux): Add spit.x.
	(man_MAN1SRC): Add spit.1.
	(man_HTML): Add spit.1.html.
	(spit.1, spit.1.html): Add dependencies.
	* gettext-tools/doc/gettext.texi (Pretranslating): New chapter.
	* gettext-tools/doc/spit.texi: New file.
	* gettext-tools/doc/Makefile.am (gettext_TEXINFOS): Add it.
	* DEPENDENCIES: Update URLs for libxml2. Add libjson-c, libcurl, Python, the
	Python module 'requests'.
	* PACKAGING: Mention the 'spit' program and its manual page.
	* NEWS: Mention the change.

2025-12-26  Bruno Haible  <bruno@clisp.org>

	Update ISO 3166 country codes list.
	* gettext-tools/doc/ISO_3166: Update to match current Wikipedia.
	* gettext-tools/doc/iso-3166.texi: Likewise.
	* gettext-tools/src/msginit.c (catalogname_for_locale): Likewise.

2025-12-22  Bruno Haible  <bruno@clisp.org>

	Fix compilation error with MSVC 14 (regression 2025-12-19).
	* gettext-tools/src/msgl-merge.c (match_domain): Move variable declaration out
	of an OpenMP 'for' loop. Reduce scope of local variables.

2025-12-22  Bruno Haible  <bruno@clisp.org>

	Fix compilation errors with older C compilers (regression 2025-12-19).
	* gnulib-local/lib/xerror.c (multiline_internal): Add a semicolon between
	a label and a declaration.
	* gettext-tools/src/write-po.c (wrap): Likewise.
	* gettext-tools/src/format-go.c (format_parse): Likewise.

2025-12-19  Bruno Haible  <bruno@clisp.org>

	Simplify code.
	* gettext-tools/src/its.c (_its_encode_special_chars,
	_its_encode_special_chars_for_merge): Remove unnecessary memory store.

2025-12-19  Bruno Haible  <bruno@clisp.org>

	Update file list.
	* gettext-tools/src/FILES: Update.

2025-12-19  Bruno Haible  <bruno@clisp.org>

	Modernize coding style: Reduce scope of local variables.
	* HACKING (Coding Style): New section, copied from gnulib/HACKING.
	* gettext-runtime/src/envsubst.c: Reduce scope of local variables.
	* gettext-runtime/src/escapes.h: Likewise.
	* gettext-runtime/src/gettext.c: Likewise.
	* gettext-runtime/src/ngettext.c: Likewise.
	* gettext-runtime/src/printf-command.c: Likewise.
	* gettext-runtime/src/printf_gettext.c: Likewise.
	* gettext-runtime/src/printf_ngettext.c: Likewise.
	* gnulib-local/lib/addext.c: Likewise.
	* gnulib-local/lib/backupfile.c: Likewise.
	* gnulib-local/lib/gettext.h: Likewise.
	* gnulib-local/lib/markup.c: Likewise.
	* gnulib-local/lib/xerror.c: Likewise.
	* libtextstyle/gnulib-local/lib/file-ostream.oo.c: Likewise.
	* libtextstyle/gnulib-local/lib/html-ostream.oo.c: Likewise.
	* libtextstyle/gnulib-local/lib/html-styled-ostream.oo.c: Likewise.
	* libtextstyle/gnulib-local/lib/iconv-ostream.oo.c: Likewise.
	* libtextstyle/gnulib-local/lib/memory-ostream.oo.c: Likewise.
	* libtextstyle/gnulib-local/lib/noop-styled-ostream.oo.c: Likewise.
	* libtextstyle/gnulib-local/lib/ostream.oo.c: Likewise.
	* libtextstyle/gnulib-local/lib/term-ostream.oo.c: Likewise.
	* libtextstyle/gnulib-local/lib/term-styled-ostream.oo.c: Likewise.
	* libtextstyle/lib/color.c: Likewise.
	* libtextstyle/lib/misc.c: Likewise.
	* gettext-tools/src/cldr-plural-exp.c: Likewise.
	* gettext-tools/src/cldr-plurals.c: Likewise.
	* gettext-tools/src/file-list.c: Likewise.
	* gettext-tools/src/filter-quote.c: Likewise.
	* gettext-tools/src/format-awk.c: Likewise.
	* gettext-tools/src/format-boost.c: Likewise.
	* gettext-tools/src/format-c++-brace.c: Likewise.
	* gettext-tools/src/format-c.c: Likewise.
	* gettext-tools/src/format-c-parse.h: Likewise.
	* gettext-tools/src/format-csharp.c: Likewise.
	* gettext-tools/src/format-d.c: Likewise.
	* gettext-tools/src/format-elisp.c: Likewise.
	* gettext-tools/src/format-gcc-internal.c: Likewise.
	* gettext-tools/src/format-gfc-internal.c: Likewise.
	* gettext-tools/src/format-go.c: Likewise.
	* gettext-tools/src/format-java-printf.c: Likewise.
	* gettext-tools/src/format-java.c: Likewise.
	* gettext-tools/src/format-javascript.c: Likewise.
	* gettext-tools/src/format-kde-kuit.c: Likewise.
	* gettext-tools/src/format-kde.c: Likewise.
	* gettext-tools/src/format-librep.c: Likewise.
	* gettext-tools/src/format-lisp.c: Likewise.
	* gettext-tools/src/format-lua.c: Likewise.
	* gettext-tools/src/format-modula2.c: Likewise.
	* gettext-tools/src/format-ocaml.c: Likewise.
	* gettext-tools/src/format-pascal.c: Likewise.
	* gettext-tools/src/format-perl-brace.c: Likewise.
	* gettext-tools/src/format-perl.c: Likewise.
	* gettext-tools/src/format-php.c: Likewise.
	* gettext-tools/src/format-python-brace.c: Likewise.
	* gettext-tools/src/format-python.c: Likewise.
	* gettext-tools/src/format-qt-plural.c: Likewise.
	* gettext-tools/src/format-qt.c: Likewise.
	* gettext-tools/src/format-ruby.c: Likewise.
	* gettext-tools/src/format-rust.c: Likewise.
	* gettext-tools/src/format-scheme.c: Likewise.
	* gettext-tools/src/format-sh-printf.c: Likewise.
	* gettext-tools/src/format-sh.c: Likewise.
	* gettext-tools/src/format-smalltalk.c: Likewise.
	* gettext-tools/src/format-tcl.c: Likewise.
	* gettext-tools/src/format.c: Likewise.
	* gettext-tools/src/hostname.c: Likewise.
	* gettext-tools/src/if-error.c: Likewise.
	* gettext-tools/src/its.c: Likewise.
	* gettext-tools/src/locating-rules.c: Likewise.
	* gettext-tools/src/message.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/msgl-ascii.c: Likewise.
	* gettext-tools/src/msgl-cat.c: Likewise.
	* gettext-tools/src/msgl-charset.c: Likewise.
	* gettext-tools/src/msgl-check.c: Likewise.
	* gettext-tools/src/msgl-english.c: Likewise.
	* gettext-tools/src/msgl-equal.c: Likewise.
	* gettext-tools/src/msgl-fsearch.c: Likewise.
	* gettext-tools/src/msgl-header.c: Likewise.
	* gettext-tools/src/msgl-iconv.c: Likewise.
	* gettext-tools/src/msgl-merge.c: Likewise.
	* gettext-tools/src/msgl-ofn.c: Likewise.
	* gettext-tools/src/msgmerge.c: Likewise.
	* gettext-tools/src/msgunfmt.c: Likewise.
	* gettext-tools/src/msguniq.c: Likewise.
	* gettext-tools/src/open-catalog.c: Likewise.
	* gettext-tools/src/plural-count.c: Likewise.
	* gettext-tools/src/po-charset.c: Likewise.
	* gettext-tools/src/po-time.c: Likewise.
	* gettext-tools/src/read-catalog.c: Likewise.
	* gettext-tools/src/read-catalog-abstract.c: Likewise.
	* gettext-tools/src/read-catalog-file.c: Likewise.
	* gettext-tools/src/read-catalog-special.c: Likewise.
	* gettext-tools/src/read-csharp.c: Likewise.
	* gettext-tools/src/read-desktop.c: Likewise.
	* gettext-tools/src/read-java.c: Likewise.
	* gettext-tools/src/read-mo.c: Likewise.
	* gettext-tools/src/read-po-lex.c: Likewise.
	* gettext-tools/src/read-properties.c: Likewise.
	* gettext-tools/src/read-resources.c: Likewise.
	* gettext-tools/src/read-stringtable.c: Likewise.
	* gettext-tools/src/read-tcl.c: Likewise.
	* gettext-tools/src/recode-sr-latin.c: Likewise.
	* gettext-tools/src/search-path.c: Likewise.
	* gettext-tools/src/str-list.c: Likewise.
	* gettext-tools/src/urlget.c: Likewise.
	* gettext-tools/src/write-catalog.c: Likewise.
	* gettext-tools/src/write-csharp.c: Likewise.
	* gettext-tools/src/write-desktop.c: Likewise.
	* gettext-tools/src/write-java.c: Likewise.
	* gettext-tools/src/write-mo.c: Likewise.
	* gettext-tools/src/write-po.c: Likewise.
	* gettext-tools/src/write-properties.c: Likewise.
	* gettext-tools/src/write-qt.c: Likewise.
	* gettext-tools/src/write-resources.c: Likewise.
	* gettext-tools/src/write-stringtable.c: Likewise.
	* gettext-tools/src/write-tcl.c: Likewise.
	* gettext-tools/src/write-xml.c: Likewise.
	* gettext-tools/src/x-awk.c: Likewise.
	* gettext-tools/src/x-c.c: Likewise.
	* gettext-tools/src/x-csharp.c: Likewise.
	* gettext-tools/src/x-d.c: Likewise.
	* gettext-tools/src/x-desktop.c: Likewise.
	* gettext-tools/src/x-elisp.c: Likewise.
	* gettext-tools/src/x-go.c: Likewise.
	* gettext-tools/src/x-java.c: Likewise.
	* gettext-tools/src/x-javascript.c: Likewise.
	* gettext-tools/src/x-librep.c: Likewise.
	* gettext-tools/src/x-lisp.c: Likewise.
	* gettext-tools/src/x-lua.c: Likewise.
	* gettext-tools/src/x-modula2.c: Likewise.
	* gettext-tools/src/x-ocaml.c: Likewise.
	* gettext-tools/src/x-perl.c: Likewise.
	* gettext-tools/src/x-php.c: Likewise.
	* gettext-tools/src/x-po.c: Likewise.
	* gettext-tools/src/x-python.c: Likewise.
	* gettext-tools/src/x-rst.c: Likewise.
	* gettext-tools/src/x-ruby.c: Likewise.
	* gettext-tools/src/x-rust.c: Likewise.
	* gettext-tools/src/x-scheme.c: Likewise.
	* gettext-tools/src/x-sh.c: Likewise.
	* gettext-tools/src/x-smalltalk.c: Likewise.
	* gettext-tools/src/x-tcl.c: Likewise.
	* gettext-tools/src/x-typescript-impl.h: Likewise.
	* gettext-tools/src/x-vala.c: Likewise.
	* gettext-tools/src/x-ycp.c: Likewise.
	* gettext-tools/src/xerror-handler.c: Likewise.
	* gettext-tools/src/xg-arglist-callshape.c: Likewise.
	* gettext-tools/src/xg-arglist-context.c: Likewise.
	* gettext-tools/src/xg-arglist-parser.c: Likewise.
	* gettext-tools/src/xg-check.c: Likewise.
	* gettext-tools/src/xg-encoding.c: Likewise.
	* gettext-tools/src/xg-message.c: Likewise.
	* gettext-tools/src/xg-mixed-string.c: Likewise.
	* gettext-tools/src/xgettext.c: Likewise.

2025-12-12  Bruno Haible  <bruno@clisp.org>

	xgettext: Optimize vc-mtime usage.
	* gettext-tools/src/xgettext.c (extract_from_xml_file): Don't augment
	files_for_vc_mtime twice.

2025-12-12  Bruno Haible  <bruno@clisp.org>

	Modernize coding style: Avoid 'goto' statements where possible.
	* gettext-tools/src/msgfmt.c (get_languages): Use if/else instead of 'goto'.

2025-12-12  Bruno Haible  <bruno@clisp.org>

	Modernize coding style: Avoid 'continue;' statements where possible.
	* gnulib-local/lib/backupfile.c (max_backup_version): Use if/else instead of
	'continue;'.
	* gnulib-local/lib/markup.c (emit_start_element): Likewise.

2025-12-11  Bruno Haible  <bruno@clisp.org>

	Modernize coding style: Avoid 'continue;' statements where possible.
	* gettext-tools/src/cldr-plurals.c (extract_rules): Use if/else instead of
	'continue;'.
	* gettext-tools/src/msgfmt.c (msgfmt_operand_list_add_from_directory): Likewise.
	* gettext-tools/src/read-po-lex.c (po_gram_lex): Likewise.
	* gettext-tools/src/sentence.c (sentence_end): Likewise.
	* gettext-tools/src/x-awk.c (extract_parenthesized): Use 'break;' instead of
	'continue;'.
	* gettext-tools/src/x-c.c (extract_parenthesized): Likewise.
	* gettext-tools/src/x-csharp.c (extract_parenthesized): Likewise.
	* gettext-tools/src/x-java.c (extract_parenthesized): Likewise.
	* gettext-tools/src/x-javascript.c (extract_balanced): Likewise.
	* gettext-tools/src/x-lua.c (extract_balanced): Likewise.
	* gettext-tools/src/x-modula2.c (extract_parenthesized): Likewise.
	* gettext-tools/src/x-php.c (extract_balanced): Likewise.
	* gettext-tools/src/x-python.c (extract_balanced): Likewise.
	* gettext-tools/src/x-vala.c (extract_balanced): Likewise.
	* gettext-tools/src/x-ycp.c (extract_parenthesized): Likewise.

2025-12-01  Bruno Haible  <bruno@clisp.org>

	tests: Remove a left-over debugging trace.
	* gettext-tools/tests/xgettext-20: Remove a 'set -x' statement.

2025-11-11  Bruno Haible  <bruno@clisp.org>

	libasprintf: Document need to use g++ option -Wall.
	* gettext-runtime/libasprintf/autosprintf.texi (Using autosprintf): Expand text.
	(Source code changes, Build system changes): New nodes.

2025-11-05  Bruno Haible  <bruno@clisp.org>

	autopoint: Diagnose multiple invocations of AM_GNU_GETTEXT_VERSION.
	Reported by Santiago Vila in
	<https://lists.gnu.org/archive/html/bug-gettext/2025-11/msg00001.html>.

	* gettext-tools/autotools/autopoint.in: Report an error if "$xreq" or "$xver"
	consists of more than one line.

2025-10-24  Bruno Haible  <bruno@clisp.org>

	Update translations from TP.
	* gettext-runtime/po/*.po: Update from TP.
	* gettext-tools/po/*.po: Update from TP.
	* gettext-tools/examples/po/*.po: Update from TP.

2025-10-24  Bruno Haible  <bruno@clisp.org>

	build: Add scripts for fetching the PO files.
	* gettext-runtime/po/fetch-po: New file.
	* gettext-tools/po/fetch-po: New file.
	* gettext-tools/examples/po/fetch-po: New file.
	* check-copyright-headers (func_check_file): Don't complain about the LINGUAS
	files, that will now have more than 10 lines.

2025-10-24  Bruno Haible  <bruno@clisp.org>

	po: Add customizable 'fetch-po' script.
	* gettext-tools/wizard/po-templates/traditional/fetch-po: New file.
	* gettext-tools/wizard/Makefile.am (po_SCRIPTS): New variable.
	(EXTRA_DIST): Add the po_SCRIPTS.
	* gettext-tools/wizard/gettextize.in: Copy but don't overwrite po/fetch-po.
	* gettext-tools/wizard/po-templates/traditional/Makefile.in.in (fetch-po): New
	target.
	* gettext-tools/examples/po/Makefile.am (fetch-po): New target.
	* gettext-tools/examples/hello-*/po/Makefile.am (fetch-po): New target.
	* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile (fetch-po): New
	target.
	* gettext-tools/doc/gettext.texi (po/fetch-po): New subsection.
	(po/LINGUAS): Explain how it related to the 'fetch-po' script.
	(Release Management): Document how to fetch the PO files before a release.
	* NEWS: Mention the change.

2025-10-21  Bruno Haible  <bruno@clisp.org>

	New program 'po-fetch'.
	* gettext-tools/misc/po-fetch.in: New file.
	* gettext-tools/misc/Makefile.am: New file.
	* gettext-tools/configure.ac: Add AC_CONFIG_FILES invocations for the misc/
	directory.
	* gettext-tools/Makefile.am (SUBDIRS): Add misc.
	(EXTRA_DIST): Remove misc/disclaim-translations.txt.
	(pkgdata_DATA): Remove variable.
	* gettext-tools/doc/po-fetch.texi: New file.
	* gettext-tools/doc/Makefile.am (gettext_TEXINFOS): Add it.
	* gettext-tools/doc/gettext.texi (po-fetch): Add global menu entry.
	(po-fetch Invocation): New section.
	* PACKAGING: Mention the installed 'po-fetch' program.
	* NEWS: Mention 'po-fetch'.

2025-10-19  Bruno Haible  <bruno@clisp.org>

	build: Remove duplicate file from version control.
	* gettext-tools/examples/po/remove-potcdate.sed: Remove file.
	* autogen.sh: Copy remove-potcdate.sed to
	gettext-tools/examples/po/remove-potcdate.sed.

2025-10-19  Bruno Haible  <bruno@clisp.org>

	build: Distribute one more file.
	* gettext-runtime/install-tests/Makefile.am (EXTRA_DIST): Add itest.pot.

2025-10-19  Bruno Haible  <bruno@clisp.org>

	build: Distribute all tree-sitter patches.
	* gettext-tools/Makefile.am (EXTRA_DIST): Add
	build-aux/tree-sitter-d-optimization-bug.diff, added on 2025-05-03.

2025-10-18  Bruno Haible  <bruno@clisp.org>

	New directory gettext-tools/wizard/po-templates/traditional/.
	* gettext-tools/wizard/po-templates/traditional/*: New files, moved here from
	gettext-runtime/po/.
	* gettext-tools/wizard/po-templates/traditional/Makefile.in.in (install-data,
	installdirs-data, uninstall-data, dist2): Remove special code for the
	'gettext-tools' package.
	* gettext-tools/wizard/po-templates/traditional/Makevars.template: Moved here
	from gettext-tools/po/.
	* autogen.sh: Copy the contents of the gettext-runtime/po/ and gettext-tools/po/
	directories from gettext-tools/wizard/po-templates/traditional/.
	* gettext-tools/wizard/Makefile.am (pkgdatadir, podir): New variables.
	(po_DATA): Add po-templates/traditional/*.
	(EXTRA_DIST): Likewise.
	(uninstall-sources): Also remove $(podir)/Makevars.
	* Makefile.am (distcheck-hook): Update.

2025-10-17  Bruno Haible  <bruno@clisp.org>

	doc: Mention how to localize other data formats.
	* gettext-tools/doc/gettext.texi (Data Formats): Mention po4a. Describe how to
	localize LibreOffice documents.

2025-10-14  Bruno Haible  <bruno@clisp.org>

	po: Don't msgmerge the PO files through Makefile.in.in.
	* gettext-runtime/po/Makefile.in.in (MSGMERGE_UPDATE): Remove variable.
	(UPDATEPOFILES): Remove variable.
	(POFILESDEPS*): Remove variables.
	(.SUFFIXES): Add '.gpo'. Remove '.po-update'.
	(.po.gpo): New rule.
	($(POFILES)): Remove dependencies. Don't invoke MSGMERGE_UPDATE.
	(mostlyclean): Add *.gpo.
	(update-po): Don't make $(UPDATEPOFILES).
	(.nop.po-update): Remove rule.
	* gettext-runtime/po/Makevars (PO_DEPENDS_ON_POT): Remove variable.
	* gettext-tools/po/Makevars (PO_DEPENDS_ON_POT): Likewise.
	* gettext-tools/po/Makevars.template (PO_DEPENDS_ON_POT): Likewise.
	* gettext-tools/examples/hello-c/po/Makevars (PO_DEPENDS_ON_POT): Likewise.
	* gettext-tools/examples/hello-c-gnome2/po/Makevars (PO_DEPENDS_ON_POT):
	Likewise.
	* gettext-tools/examples/hello-c-gnome3/po/Makevars (PO_DEPENDS_ON_POT):
	Likewise.
	* gettext-tools/examples/hello-c-http/po/Makevars (PO_DEPENDS_ON_POT): Likewise.
	* gettext-tools/examples/hello-c++/po/Makevars (PO_DEPENDS_ON_POT): Likewise.
	* gettext-tools/examples/hello-c++20/po/Makevars (PO_DEPENDS_ON_POT): Likewise.
	* gettext-tools/examples/hello-c++-gnome2/po/Makevars (PO_DEPENDS_ON_POT):
	Likewise.
	* gettext-tools/examples/hello-c++-gnome3/po/Makevars (PO_DEPENDS_ON_POT):
	Likewise.
	* gettext-tools/examples/hello-c++-kde/po/Makevars (PO_DEPENDS_ON_POT):
	Likewise.
	* gettext-tools/examples/hello-objc/po/Makevars (PO_DEPENDS_ON_POT): Likewise.
	* gettext-tools/examples/hello-objc-gnome2/po/Makevars (PO_DEPENDS_ON_POT):
	Likewise.
	* gettext-tools/examples/hello-c++-wxwidgets/po/Makefile.am (MSGMERGE_UPDATE):
	Remove variable.
	(UPDATEPOFILES): Remove variable.
	(.SUFFIXES): Add '.gpo'. Remove '.po-update'.
	(.po.gpo): New rule.
	($(POFILES)): Remove dependencies. Don't invoke MSGMERGE_UPDATE.
	(MOSTLYCLEANFILES): Add *.gpo.
	(update-po): Don't make $(UPDATEPOFILES).
	(.nop.po-update): Remove rule.
	* gettext-tools/examples/hello-python/po/Makefile.am: Likewise.
	* gettext-tools/examples/hello-guile/po/Makefile.am: Likewise.
	* gettext-tools/examples/hello-clisp/po/Makefile.am: Likewise.
	* gettext-tools/examples/hello-librep/po/Makefile.am: Likewise.
	* gettext-tools/examples/hello-rust/po/Makefile.am: Likewise.
	* gettext-tools/examples/hello-go/po/Makefile.am: Likewise.
	* gettext-tools/examples/hello-go-http/po/Makefile.am: Likewise.
	* gettext-tools/examples/hello-ruby/po/Makefile.am: Likewise.
	* gettext-tools/examples/hello-sh/po/Makefile.am: Likewise.
	* gettext-tools/examples/hello-gawk/po/Makefile.am: Likewise.
	* gettext-tools/examples/hello-pascal/po/Makefile.am: Likewise.
	* gettext-tools/examples/hello-modula2/po/Makefile.am: Likewise.
	* gettext-tools/examples/hello-d/po/Makefile.am: Likewise.
	* gettext-tools/examples/hello-ocaml/po/Makefile.am: Likewise.
	* gettext-tools/examples/hello-smalltalk/po/Makefile.am: Likewise.
	* gettext-tools/examples/hello-perl/po/Makefile.am: Likewise.
	* gettext-tools/examples/hello-php/po/Makefile.am: Likewise.
	* gettext-tools/examples/hello-ycp/po/Makefile.am: Likewise.
	* gettext-tools/examples/hello-c++-qt/po/Makefile.am: Likewise.
	* gettext-tools/examples/hello-java/po/Makefile.am: Likewise.
	* gettext-tools/examples/hello-java-awt/po/Makefile.am: Likewise.
	* gettext-tools/examples/hello-java-swing/po/Makefile.am: Likewise.
	* gettext-tools/examples/hello-java-qtjambi/po/Makefile.am: Likewise.
	* gettext-tools/examples/hello-csharp/po/Makefile.am (MSGMERGE_UPDATE): Remove
	variable.
	(UPDATEPOFILES): Remove variable.
	(RESOURCESDLLFILES): Change emitted commands to use an intermediate .gpo file.
	(.SUFFIXES): Add '.gpo'. Remove '.po-update'.
	(.po.gpo): New rule.
	($(POFILES)): Remove dependencies. Don't invoke MSGMERGE_UPDATE.
	(MOSTLYCLEANFILES): Add *.gpo.
	(update-po): Don't make $(UPDATEPOFILES).
	(.nop.po-update): Remove rule.
	* gettext-tools/examples/hello-csharp-forms/po/Makefile.am: Likewise.
	* gettext-tools/examples/hello-tcl/po/Makefile.am (MSGMERGE_UPDATE): Remove
	variable.
	(UPDATEPOFILES): Remove variable.
	(MSGFILES): Change emitted commands to use an intermediate .gpo file.
	(.SUFFIXES): Add '.gpo'. Remove '.po-update'.
	(.po.gpo): New rule.
	($(POFILES)): Remove dependencies. Don't invoke MSGMERGE_UPDATE.
	(MOSTLYCLEANFILES): Add *.gpo.
	(update-po): Don't make $(UPDATEPOFILES).
	(.nop.po-update): Remove rule.
	* gettext-tools/examples/hello-tcl-tk/po/Makefile.am: Likewise.
	* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile (MSGMERGE_UPDATE):
	Remove variable.
	(UPDATEPOFILES): Remove variable.
	(.SUFFIXES): Add '.gpo'. Remove '.po-update'.
	($(POFILES)): Remove dependencies. Don't invoke MSGMERGE_UPDATE.
	(update-po): Don't make $(UPDATEPOFILES).
	(.nop.po-update): Remove rule.
	* gettext-tools/examples/po/Makefile.am (MSGMERGE_OPTIONS): Add
	--no-fuzzy-matching --quiet.
	(MSGMERGE_UPDATE): Remove variable.
	(UPDATEPOFILES): Remove variable.
	(GPOFILES): New variable.
	(.SUFFIXES): Add '.gpo'. Remove '.nop', '.po-update'.
	(.po.gpo): New rule.
	($(POFILES)): Remove rule.
	(DISTCLEANFILES): New variable.
	(update-po): Don't make $(UPDATEPOFILES). Make the small PO files.
	(.nop.po-update): Remove rule.
	* gettext-tools/examples/po/mmsmallpo.sh: Use $language.gpo instead of
	$language.po.
	* gettext-tools/doc/gettext.texi (Translations under Version Control): Remove
	documentation of PO_DEPENDS_ON_POT.
	(Release Management): Update wording.
	* Admin/release-steps: Don't msgmerge the PO files from translationproject.org.
	* NEWS: Mention the change.

2025-10-13  Bruno Haible  <bruno@clisp.org>

	examples: Fix hello-tcl* examples (regression 2024-12-06).
	* gettext-tools/examples/hello-tcl*/po/Makefile.am (CATALOGS): Use suffix .msg,
	not .gmo.

2025-10-12  Bruno Haible  <bruno@clisp.org>

	check-examples: Update comments.
	* gettext-tools/examples/check-examples: Update comments.

2025-10-12  Bruno Haible  <bruno@clisp.org>

	examples: Improve error message when there is a mistake in a PO file.
	* gettext-tools/examples/hello-*/po/Makefile.am (.po.gmo): Use suffix .gpo
	instead of .1po.
	* gettext-tools/examples/hello-java*/po/Makefile.am (update-properties,
	update-classes): Likewise.
	* gettext-tools/examples/hello-c++-qt/po/Makefile.am (.po.qm): Likewise.
	* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile ($(STRINGSFILES)):
	Likewise.

2025-10-12  Bruno Haible  <bruno@clisp.org>

	xgettext: Rust: Recognize 'gettextrs::gettext' invocations like 'gettext' invocations.
	Reported by Schmiddiii <gnu-savannah@schmidhuberj.de>
	at <https://savannah.gnu.org/bugs/?67601>.

	* gettext-tools/src/x-rust.c (ts_symbol_scoped_identifier): New variable.
	(extract_from_function_call): Accept a scoped_identifier as first argument.
	(extract_from_node): Allow a scoped_identifier as callee.
	(extract_rust): Initialize ts_symbol_scoped_identifier.
	* gettext-tools/tests/xgettext-rust-1: Add another test case.
	* gettext-tools/tests/xgettext-rust-6: Likewise.
	* NEWS: Mention the fix.

2025-10-12  Bruno Haible  <bruno@clisp.org>

	po: Improve error message when there is a mistake in a PO file.
	* gettext-runtime/po/Makefile.in.in (.po.gmo): Use suffix .gpo instead of .1po.

2025-10-12  Bruno Haible  <bruno@clisp.org>

	po: Simplify.
	* gettext-runtime/po/Makefile.in.in (.NOEXPORT): Remove workaround for versions
	of GNU make from before 1993.

2025-10-12  Bruno Haible  <bruno@clisp.org>

	build: Move more code into libgettextsrc.
	* gettext-tools/src/lang-table.h (language_table, language_table_size,
	language_variant_table, language_variant_table_size): Mark as
	LIBGETTEXTSRC_DLL_VARIABLE.
	* gettext-tools/src/Makefile.am (libgettextsrc_la_SOURCES): Add msgl-fsearch.c,
	lang-table.c, plural-count.c.
	(msgmerge_SOURCES): Remove msgl-fsearch.c, lang-table.c, plural-count.c.
	(msginit_SOURCES): Likewise.
	* gettext-tools/src/FILES: Update.

2025-10-12  Bruno Haible  <bruno@clisp.org>

	msginit: Produce a merged PO file instead of failing.
	* gettext-tools/src/msginit.c: Include <omp.h>, msgl-merge.h, backupfile.h,
	copy-file.h.
	(catalogname): Remove variable.
	(main): When the PO file already exists, create a backup file, then merge the
	two files.
	(usage): Say what happens if the output file already exists.
	(struct header_entry_field): New type.
	(fresh_fields): Renamed from fields.
	(NFIELDS): Remove macro.
	(FRESH_FIELDS_LAST_TRANSLATOR): Renamed from FIELD_LAST_TRANSLATOR.
	(update_fields): New variable.
	(UPDATE_FIELDS_LAST_TRANSLATOR): New macro.
	(fill_header): Add 'fresh' parameter. Allocate field_value array on the heap.
	* gettext-tools/src/Makefile.am (msginit_SOURCES): Add msgl-fsearch.c,
	msgl-merge.c.
	(msginit_CFLAGS, msginit_CXXFLAGS): Link with the OpenMP flags.
	* gettext-tools/doc/msginit.texi: Say what happens if the output file already
	exists.
	* gettext-tools/doc/gettext.texi (Creating): Change title. Mention that msginit
	can also be used when continuing an existing translation.
	* NEWS: Mention the improvement.

2025-10-12  Bruno Haible  <bruno@clisp.org>

	Refactor: Librarify the core of msgmerge.
	* gettext-tools/src/msgl-merge.h: New file, based on
	gettext-tools/src/msgmerge.c.
	* gettext-tools/src/msgl-merge.c: New file, based on
	gettext-tools/src/msgmerge.c.
	* gettext-tools/src/msgmerge.c: Include msgl-merge.h. Simplify includes.
	Remove definitions that are moved to msgl-merge.c.
	* gettext-tools/src/FILES: Update.
	* gettext-tools/src/Makefile.am (noinst_HEADERS): Add msgl-merge.h.
	(msgmerge_SOURCES): Add msgl-merge.c.
	* gettext-tools/po/POTFILES.in: Add src/msgl-merge.c.

2025-10-12  Bruno Haible  <bruno@clisp.org>

	OCaml: Tweak documentation.
	* gettext-tools/doc/lang-ocaml.texi: Add note regarding format strings.

2025-10-07  Bruno Haible  <bruno@clisp.org>

	Fix failure of lang-javascript on macOS 15.

2025-10-05  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.

2025-10-05  Bruno Haible  <bruno@clisp.org>

	Refactor: New subdirectory gettext-tools/wizard/, part 2.

2025-10-05  Bruno Haible  <bruno@clisp.org>

	Refactor: New subdirectory gettext-tools/autotools/.
	* gettext-tools/Makefile.am (SUBDIRS): Add autotools. Remove misc.
	(distdir2): Update.
	* gettext-tools/autotools/Makefile.am: Renamed from
	gettext-tools/misc/Makefile.am.
	* gettext-tools/autotools/archive.dir.tar: Renamed from
	gettext-tools/misc/archive.dir.tar.
	* gettext-tools/autotools/add-to-archive: Renamed from
	gettext-tools/misc/add-to-archive.
	* gettext-tools/autotools/cvsuser.c: Renamed from gettext-tools/misc/cvsuser.c.
	* gettext-tools/autotools/convert-archive.in: Renamed from
	gettext-tools/misc/convert-archive.in.
	* gettext-tools/autotools/autopoint.in: Renamed from
	gettext-tools/misc/autopoint.in.
	* gettext-tools/configure.ac: Update AC_CONFIG_FILES invocations.
	* gettext-tools/man/Makefile.am (man_MAN1AUTOTOOLS): Renamed from man_MAN1MISC.
	($(man_MAN1AUTOTOOLS)): Renamed from $(man_MAN1MISC).
	(autopoint.1): Update.
	* gettext-tools/examples/po/Makefile.am (USE_BUILT_PROGS): Update.
	* gettext-tools/tests/autopoint-1: Update.
	* gettext-tools/tests/autopoint-2: Likewise.
	* gettext-tools/tests/autopoint-3: Likewise.
	* check-copyright-headers (func_check_file): Update.

2025-10-05  Bruno Haible  <bruno@clisp.org>

	Put archive.dir.tar under version control, part 2.
	* gettext-tools/misc/Makefile.am ($(srcdir)/archive.dir.tar): Remove rule.

2025-10-05  Bruno Haible  <bruno@clisp.org>

	Refactor: New subdirectory gettext-tools/wizard/.
	* gettext-tools/configure.ac: Invoke AC_CONFIG_FILES for wizard/Makefile,
	wizard/gettextize, instead of for misc/gettextize.
	* gettext-tools/Makefile.am (SUBDIRS): Add wizard.
	(distdir2): Recurse into wizard/.
	* gettext-tools/wizard/Makefile.am: New file, based on
	gettext-tools/misc/Makefile.am.
	* gettext-tools/wizard/gettextize.in: Renamed from
	gettext-tools/misc/gettextize.in.
	* gettext-tools/misc/Makefile.am (bin_SCRIPTS, DISTCLEANFILES): Remove
	gettextize.
	(install-data-local, uninstall-local, uninstall-sources): Remove rules.
	* gettext-tools/man/Makefile.am (man_MAN1WIZARD): New variable.
	(man_MAN1MISC): Remove gettextize.1.
	($(man_MAN1WIZARD)): New rule.
	(gettextize.1): Update.
	($(man_MAN1MISC)): Simplify.

2025-10-02  Bruno Haible  <bruno@clisp.org>

	Restore syntax highlighting in Emacs 30 or newer.
	Reported by Sab Pyrope <sab.pyrope@gmail.com> in
	<https://lists.gnu.org/archive/html/bug-gettext/2025-03/msg00017.html>
	and by Julien Palard <julien@palard.fr> in
	<https://lists.gnu.org/archive/html/bug-gettext/2025-10/msg00000.html>.

	It's a regression in Emacs 30, in commit
	17e26cf57e18c5df2172a7049591d89fc53b3fb6 .

	* gettext-tools/emacs/HACKING: Document how to bisect Emacs regressions.
	* gettext-tools/emacs/po-mode.el (po-mode-version-string): Bump to 2.31.
	(po-mode): Invoke run-mode-hooks instead of run-hooks.
	* NEWS: Mention the fix.

2025-10-01  Bruno Haible  <bruno@clisp.org>

	xgettext: Java: Remove unjustified warning "'}' found where ')' was expected".
	Reported by Alexander Hubmann-Haidvogel <ahubmann@gmail.com> in
	<https://lists.gnu.org/archive/html/bug-gettext/2025-09/msg00000.html>
	and by Bjoern Voigt <bjoernv@arcor.de> in
	<https://lists.gnu.org/archive/html/bug-gettext/2025-09/msg00023.html>.

	* gettext-tools/src/x-java.c (extract_parenthesized): When a semicolon is seen
	inside braces, start a new argparser instead of returning.
	* gettext-tools/tests/xgettext-java-1: Add test cases with inner classes.

2025-09-30  Bruno Haible  <bruno@clisp.org>

	tests: Increase debuggability.
	* gettext-tools/tests/xgettext-python-9: Show the warnings in the log when
	failing.

2025-09-30  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Add API for the workflow flags and the sticky flags.
	Reported by Alexander Potashev <aspotashev@gmail.com>
	at <https://savannah.gnu.org/bugs/?67470>.

	* gettext-tools/src/message.h (format_flag, not_format_p): New declarations.
	* gettext-tools/src/message.c (format_flag): New variable.
	(not_format_p): New function.
	* gettext-tools/src/write-po.c (make_format_description_string): Add comments.
	(significant_format_p): Likewise.
	* gettext-tools/libgettextpo/gettext-po.in.h (po_flag_iterator_t): New type.
	(po_message_has_workflow_flag, po_message_set_workflow_flag,
	po_message_workflow_flags_iterator): New declarations.
	(po_message_has_sticky_flag, po_message_set_sticky_flag,
	po_message_sticky_flags_iterator): New declarations.
	(po_flag_iterator_free, po_flag_next): New declarations.
	* gettext-tools/libgettextpo/gettext-po.c (struct po_flag_iterator): New type.
	(po_message_has_workflow_flag, po_message_set_workflow_flag,
	po_message_workflow_flags_iterator): New functions.
	(po_message_get_format): Simplify by using not_format_p.
	(po_message_has_sticky_flag, po_message_set_sticky_flag,
	po_message_sticky_flags_iterator): New functions.
	(po_flag_iterator_free, po_flag_next): New functions.
	* gettext-tools/tests/gettextpo-1-prg.c (main): Add more test cases.
	* gettext-tools/doc/gettext.texi (po_message_t API): Document the new functions.
	(po_flag_iterator_t API): New subsection.
	* NEWS: Mention the new functions.

2025-09-27  Bruno Haible  <bruno@clisp.org>

	libgettextpo: New function po_message_get_format.
	Reported by Alexander Potashev <aspotashev@gmail.com> in
	<https://savannah.gnu.org/bugs/?67485>.

	* gettext-tools/libgettextpo/gettext-po.in.h (po_message_get_format): New
	declaration.
	* gettext-tools/libgettextpo/gettext-po.c (po_message_get_format): New function.
	* gettext-tools/tests/gettextpo-1-prg.c (main): Test the return value of
	po_message_get_format. Add a test case of po_message_set_format with value -1.
	* gettext-tools/doc/gettext.texi (po_message_t API): Document
	po_message_get_format.
	* NEWS: Mention the change.

2025-09-22  Bruno Haible  <bruno@clisp.org>

	Upgrade to libtool 2.6.0.
	* m4/libtool.m4: Update from libtool-2.6.0.
	* m4/ltoptions.m4: Likewise.
	* m4/ltsugar.m4: Likewise.
	* m4/ltversion.m4: Likewise.
	* m4/lt~obsolete.m4: Likewise.
	* build-aux/ltmain.sh: Likewise.

2025-09-14  Bruno Haible  <bruno@clisp.org>

	gettext.h: Avoid warning with gcc < 4.2.
	Reported by Orgad Shaneh <orgads@gmail.com> in
	<https://lists.gnu.org/archive/html/bug-gnulib/2025-09/msg00183.html>.

	* gnulib-local/lib/gettext.h (gettext, dgettext, dcgettext): Don't use attribute
	__gnu_inline__ with gcc < 4.2.

2025-09-14  Bruno Haible  <bruno@clisp.org>

	lang-javascript: Avoid failure on macOS 13..15.
	* gettext-tools/tests/lang-javascript: On macOS, test only in the UTF-8 locale.

2025-09-14  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gettext-tools/libgrep/gnulib-lib/Makefile.am (AM_CPPFLAGS): Add -I option,
	so that libintl.h gets found during the compilation of regex.c.

2025-09-08  Bruno Haible  <bruno@clisp.org>

	Put archive.dir.tar under version control.
	This helps reducing CI failures when alpha.gnu.org is not responding.
	It also simplifies the branch handling when a bug-fix release is made
	on the maintenance branch of an older release.

	* gettext-tools/misc/archive.dir.tar: New file.
	* autopull.sh: Don't fetch it from alpha.gnu.org any more.

2025-09-08  Bruno Haible  <bruno@clisp.org>

	build: Make CI's git hostname rewriting rules apply.
	* .gitmodules: Canonicalize savannah host name.

2025-09-04  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* libtextstyle/tests/Makefile.am (AM_CFLAGS): Initialize.
	* gettext-tools/gnulib-tests/Makefile.am (AM_CFLAGS): Initialize.

2025-09-04  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2025-08-24  Bruno Haible  <bruno@clisp.org>

	doc: Update table of programming languages.
	* gettext-tools/doc/gettext.texi (List of Programming Languages): Update table
	in comments.

2025-08-13  Bruno Haible  <bruno@clisp.org>

	its: Improve libxml error handling.
	When there is a non-fatal error, the previous code would just print a message
	to stderr and continue the operation, without affecting the exit code.

	* gettext-tools/src/its.c: Include <setjmp.h>, <stdarg.h>.
	(xml_error_exit): New variable.
	(structured_error): Longjmp to xml_error_exit.
	(generic_error): New function.
	(its_rule_list_add_from_file, its_rule_list_add_from_string,
	its_rule_list_extract, its_merge_context_merge, its_merge_context_alloc,
	its_merge_context_write): Invoke also xmlSetGenericErrorFunc. Use setjmp to
	abort the operation when a non-fatal error occurs.

2025-08-11  Bruno Haible  <bruno@clisp.org>

	its: Fix error handling.
	* gettext-tools/src/its.c (structured_error, its_rule_list_add_from_file,
	its_rule_list_add_from_string, its_rule_list_extract, its_merge_context_alloc):
	Swap error() arguments.

2025-08-10  Bruno Haible  <bruno@clisp.org>

	Rely more on Gnulib.
	* gettext-tools/src/write-java.c (S_*): Remove macros, relying on gnulib module
	sys_stat-h.
	* gettext-tools/src/write-csharp.c (S_*): Likewise.

2025-08-10  Bruno Haible  <bruno@clisp.org>

	Use standard way of including <config.h>.
	* gettext-runtime/src/*.c: Include <config.h> unconditionally.
	* gettext-runtime/libasprintf/lib-asprintf.h: Likewise.
	* libtextstyle/lib/color.c: Likewise.
	* gnulib-local/lib/markup.c: Likewise.
	* gettext-tools/src/*.y: Likewise.
	* gettext-tools/src/*.c: Likewise.
	* gettext-tools/libgrep/*.c: Likewise.
	* gettext-tools/libgettextpo/*.c: Likewise.
	* gettext-tools/tests/*.c: Likewise.

2025-08-05  Bruno Haible  <bruno@clisp.org>

	INSTALL: Tweak wording.
	* INSTALL: Fix a copy-and-paste mistake.

2025-08-05  Bruno Haible  <bruno@clisp.org>

	build: Make autogen.sh more reliable.
	* autogen.sh: Fail if gnulib-tool fails.

2025-08-05  Bruno Haible  <bruno@clisp.org>

	tests: Fix a lang-go failure.
	* gettext-tools/tests/lang-go: Add workaround against
	"go: GOPROXY list is not the empty string, but contains no entries" error.

2025-08-05  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gettext-tools/tests/Makefile.am (TESTS_ENVIRONMENT): Define top_builddir,
	consistently with Gnulib.
	* gettext-tools/tests/init-env.in (top_builddir): Remove definition here.

2025-08-05  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2025-08-03  Bruno Haible  <bruno@clisp.org>

	intl-java: Remove an unused variable.
	Reported by Coverity.

	* gettext-runtime/intl-java/gnu/gettext/GettextResource.java (ngettextnull):
	Remove an unused variable.

2025-08-03  Bruno Haible  <bruno@clisp.org>

	libcroco: Fix double-free and free-after-use bug.
	Reported by Coverity.

	* libtextstyle/gnulib-local/lib/libcroco/cr-sel-eng.c
	(cr_sel_eng_unregister_pseudo_class_sel_handler): Don't access or free 'elem'
	after it has been freed. Remove always-NULL variable.

2025-08-03  Bruno Haible  <bruno@clisp.org>

	intl: Fix a small memory leak.
	Reported by Coverity.

	* gettext-runtime/intl/loadmsgcat.c (_nl_load_domain): Free
	sysdep_segment_values before 'goto invalid'.

2025-08-03  Bruno Haible  <bruno@clisp.org>

	examples: Fix a compiler warning.
	* gettext-tools/examples/hello-objc-gnustep/Hello.m (Hello): Remove an unused
	variable.

2025-08-01  Bruno Haible  <bruno@clisp.org>

	gettext.m4: Fix build on Cygwin with gcc 13 or newer.
	This gcc version links with -lintl -liconv by default, making it appear as if
	gettext() et al. were defined in libc. But GNU gettext still needs to build a
	new libintl.

	* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): On Cygwin, set
	USE_INCLUDED_LIBINTL=yes regardless of the gcc version.

2025-08-01  Bruno Haible  <bruno@clisp.org>

	gettext.m4: Modernize.
	* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): Rename configure option
	--with-included-gettext to --with-included-libintl. Rename cache
	variable nls_cv_force_use_gnu_gettext to gt_cv_force_use_gnu_libintl.
	Rename cache variable nls_cv_use_gnu_gettext to gt_cv_use_gnu_libintl.

2025-07-30  Bruno Haible  <bruno@clisp.org>

	tests: Fix a lang-java failure on native Windows with MSVC.
	* gettext-tools/tests/lang-java: On native Windows, don't test the UTF-8 locale.

2025-07-28  Bruno Haible  <bruno@clisp.org>

	hostname: Fix a small memory leak.
	Reported by Coverity.

	* gettext-tools/src/hostname.c (print_hostname): Free hostname before returning.

2025-07-28  Bruno Haible  <bruno@clisp.org>

	Fix a small memory leak.
	Reported by Coverity.

	* gettext-tools/src/format-python.c (format_parse): Free name before returning.

2025-07-28  Bruno Haible  <bruno@clisp.org>

	examples: Add hello-ocaml example.
	* gettext-tools/examples/hello-ocaml/INSTALL: New file.
	* gettext-tools/examples/hello-ocaml/autogen.sh: New file.
	* gettext-tools/examples/hello-ocaml/autoclean.sh: New file.
	* gettext-tools/examples/hello-ocaml/dune.in: New file.
	* gettext-tools/examples/hello-ocaml/dune-project.in: New file.
	* gettext-tools/examples/hello-ocaml/hello.ml.in: New file.
	* gettext-tools/examples/hello-ocaml/Makefile.am: New file.
	* gettext-tools/examples/hello-ocaml/configure.ac: New file.
	* gettext-tools/examples/hello-ocaml/m4/Makefile.am: New file.
	* gettext-tools/examples/hello-ocaml/po/LINGUAS: New file.
	* gettext-tools/examples/hello-ocaml/po/Makefile.am: New file.
	* gettext-tools/examples/Makefile.am (EXAMPLESFILES, EXAMPLESDIRS): Add
	hello-ocaml.
	* gettext-tools/examples/po/Makefile.am (POTFILES, SMALLPOTS): Update for
	hello-ocaml.
	(hello-ocaml.pot): New target.
	(SMALLPOFILES_FOR_lang): Update for hello-ocaml.
	($(srcdir)/../hello-ocaml/po/$(LL).po): New rule.
	* gettext-tools/examples/check-examples (func_check__hello_ocaml): New function.
	* gettext-tools/examples/README: Mention hello-ocaml.
	* gettext-tools/doc/lang-ocaml.texi: Likewise.
	* NEWS: Likewise.

2025-07-28  Bruno Haible  <bruno@clisp.org>

	OCaml support: Add a unit test.
	* gettext-tools/tests/lang-ocaml: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.
	* HACKING: Document dependencies for lang-ocaml.

2025-07-28  Bruno Haible  <bruno@clisp.org>

	OCaml support: Add OCaml support in the tools.
	This implements several improvements, compared to
	"ocaml-gettext --action extract ...":
	  - Comments are extracted.
	  - '#, ocaml-format' annotation on f_ arguments.
	  - Recognizes concatenated strings, such as ("abc" ^ "def").
	  - Supports (s_ "").

	* autopull.sh: Check out tree-sitter-ocaml. Set TREE_SITTER_OCAML_VERSION.
	* gettext-tools/build-aux/tree-sitter-ocaml-portability.diff: New file.
	* gettext-tools/configure.ac: Set TREE_SITTER_OCAML_VERSION.
	* gettext-tools/Makefile.am (EXTRA_DIST): Add the tree-sitter-ocaml source code
	and patch.
	* gettext-tools/doc/gettext.texi (PO Files): Mention ocaml-format.
	(Translators for other Languages): New subsection "OCaml Format Strings".
	* gettext-tools/doc/lang-ocaml.texi: Mention all the supported *gettext
	functions. Mention format strings with positions.
	* gettext-tools/doc/xgettext.texi: Document the OCaml support in more places.
	* gettext-tools/src/message.h (format_ocaml): New enum value.
	(NFORMATS): Increment.
	* gettext-tools/src/message.c (format_language, format_language_pretty): Add an
	entry for format_ocaml.
	* gettext-tools/src/format-ocaml.c: New file, based on
	gettext-tools/src/format-awk.c.
	* gettext-tools/src/format.h (formatstring_ocaml): New declaration.
	* gettext-tools/src/format.c (formatstring_parsers): Add formatstring_ocaml.
	* gettext-tools/src/x-ocaml.h (SCANNERS_OCAML): Reference flag_table_ocaml and
	formatstring_ocaml.
	(extract_ocaml): Declare with first argument of type 'FILE *'.
	* gettext-tools/src/x-ocaml.c: Completely rewritten.
	* gettext-tools/src/xgettext.c (flag_table_ocaml): New variable.
	(usage): Document the OCaml support in more places.
	(xgettext_record_flag): Support format_ocaml.
	* gettext-tools/src/FILES: Mention format-ocaml.c.
	* gettext-tools/src/Makefile.am (FORMAT_SOURCE): Add format-ocaml.c.
	(LIBXGETTEXTTS): Add libxgettextts5.a.
	(libxgettextts5_a_*): New variables.
	* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES): Add
	format-ocaml.c.
	* gettext-tools/po/POTFILES.in: Add src/format-ocaml.c.
	* gettext-tools/tests/format-ocaml-1: New file.
	* gettext-tools/tests/format-ocaml-2: New file.
	* gettext-tools/tests/xgettext-ocaml-1: New file.
	* gettext-tools/tests/xgettext-ocaml-2: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add the new tests.
	* NEWS: Mention the OCaml support.

2025-07-27  Bruno Haible  <bruno@clisp.org>

	Refactor: Simplify.
	* gettext-tools/src/format-python-brace.c (parse_named_field,
	parse_numeric_field, parse_directive, parse_upto): Remove 'translated'
	parameter.
	(format_parse): Update.

2025-07-27  Bruno Haible  <bruno@clisp.org>

	Fix typos in comments.
	* gettext-tools/src/format-lua.c: Fix typos in comments.
	* gettext-tools/src/format-d.c: Likewise.

2025-07-23  Bruno Haible  <bruno@clisp.org>

	OCaml support: Add OCaml support in xgettext.
	* gettext-tools/doc/lang-ocaml.texi: New file.
	* gettext-tools/doc/Makefile.am (gettext_TEXINFOS): Add it.
	* gettext-tools/doc/gettext.texi (No string concatenation): Mention string
	concatenation in OCaml.
	(List of Programming Languages): Include lang-ocaml.texi.
	* gettext-tools/doc/xgettext.texi: Document the -L OCaml option.
	* gettext-tools/src/x-ocaml.h: New file.
	* gettext-tools/src/x-ocaml.c: New file.
	* gettext-tools/src/xgettext.c: Include x-ocaml.h.
	(flag_table_ocaml): New variable.
	(main): Invoke init_flag_table_ocaml, x_ocaml_extract_all, x_ocaml_keyword.
	(usage): Document the -L OCaml option.
	(language_to_extractor, extension_to_language): Support OCaml.
	* gettext-tools/src/FILES: Mention x-ocaml.h, x-ocaml.c.
	* gettext-tools/src/Makefile.am (noinst_HEADERS): Add x-ocaml.h.
	(xgettext_SOURCES): Add x-ocaml.c.
	* gettext-tools/po/POTFILES.in: Add src/x-ocaml.c.

2025-07-22  Bruno Haible  <bruno@clisp.org>

	tests: Fix a lang-java failure on native Windows.
	* gettext-tools/tests/lang-java: On native Windows, convert newlines in the
	output before comparing.

2025-07-22  Bruno Haible  <bruno@clisp.org>

	tests: Recognize the *-*-windows* config triplets introduced on 2023-06-26.
	* gettext-tools/tests/init-env.in: Treat windows* as equivalent to mingw*.
	* gettext-tools/tests/intl-7: Likewise.
	* gettext-tools/tests/lang-c: Likewise.
	* gettext-tools/tests/lang-c++: Likewise.
	* gettext-tools/tests/lang-c++-boost: Likewise.
	* gettext-tools/tests/lang-c++20: Likewise.
	* gettext-tools/tests/lang-c++26: Likewise.
	* gettext-tools/tests/lang-d: Likewise.
	* gettext-tools/tests/lang-modula2: Likewise.
	* gettext-tools/tests/lang-objc: Likewise.
	* gettext-tools/tests/msgfilter-8: Likewise.

2025-07-21  Bruno Haible  <bruno@clisp.org>

	tests: Fix a lang-java failure on native Windows.
	* gettext-tools/tests/init-env.in (CLASSPATH_SEPARATOR): New variable.
	* gettext-tools/tests/lang-java: Use it instead of hardcoding ':'.

2025-07-21  Bruno Haible  <bruno@clisp.org>

	Fix typos.
	Reported by <Jens.Schleusener@fossies.org>.

	* gettext-tools/libgrep/m-regex.c: Fix typo in comments.
	* gettext-tools/misc/autopoint.in: Likewise.
	* gettext-tools/misc/gettextize.in: Likewise.
	* gettext-tools/src/format-python-brace.c: Likewise.
	* gettext-tools/src/gnu/gettext/DumpResource.java: Likewise.
	* gettext-tools/src/its.h: Likewise.
	* gettext-tools/src/locating-rules.h: Likewise.
	* gettext-tools/src/msgmerge.c: Likewise.
	* gettext-tools/src/read-catalog-abstract.h: Likewise.
	* gettext-tools/src/read-catalog-abstract.c: Likewise.
	* gettext-tools/src/read-catalog.h: Likewise.
	* gettext-tools/src/read-properties.c: Likewise.
	* gettext-tools/src/write-java.c: Likewise.
	* gettext-tools/src/write-mo.c: Likewise.
	* gettext-tools/src/x-d.c: Likewise.
	* gettext-tools/src/x-scheme.c: Likewise.
	* gettext-tools/src/x-sh.c: Likewise.
	* gettext-tools/emacs/po-mode.el: Fix typos in help and comments.
	* gettext-tools/doc/gettext.texi: Fix typos.
	* NEWS: Fix typos.

2025-07-21  Bruno Haible  <bruno@clisp.org>

	examples: Reenable checking of hello-c-gnome3 and hello-c++-gnome3.
	* gettext-tools/examples/check-examples (func_check__hello_c_gnome3,
	func_check__hello_cxx_gnome3): Reenable most checks.

2025-07-20  Bruno Haible  <bruno@clisp.org>

	examples: Make 'check-example' more maintainable.
	Some examples require specific sets of environment variables.
	E.g. hello-go requires a PATH which uses GCC 13 or 14, not GCC 15,
	due to <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119098>.

	* gettext-tools/examples/check-examples: Rewrite to use one top-level function
	per sample, instead of one top-level function for each check.

2025-07-19  Bruno Haible  <bruno@clisp.org>

	Update release steps.

2025-07-19  Bruno Haible  <bruno@clisp.org>

	examples: Use infrastructure from gettext version 0.26.
	* gettext-tools/examples/hello-*/configure.ac: Use AM_GNU_GETTEXT_VERSION with
	version 0.26.
	* gettext-tools/examples/hello-c++-kde/configure.in.in: Likewise.

2025-07-19  Bruno Haible  <bruno@clisp.org>

	Update translations from TP.
	* gettext-runtime/po/*.po: Update from TP.
	* gettext-tools/po/*.po: Update from TP.
	* gettext-tools/examples/po/*.po: Update from TP.

2025-07-19  Bruno Haible  <bruno@clisp.org>

	Prepare for 0.26 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.
	* libtextstyle/version.sh: Update VERSION_NUMBER, RELEASE_DATE.
	* gettext-tools/libgettextpo/gettext-po.in.h (LIBGETTEXTPO_VERSION): Bump.
	* gettext-runtime/po/Makefile.in.in: Update Origin.
	* gettext-runtime/intl/Makefile.am (LTV_*): Bump to 12:5:4.
	* libtextstyle/lib/Makefile.am (LTV_*): Bump to 2:6:2.
	* gettext-tools/libgettextpo/Makefile.am (LTV_*): Bump to 5:15:5.
	* gettext-tools/misc/autopoint.in: Likewise. Accept version 0.26.
	* gettext-tools/configure.ac (ARCHIVE_VERSION): Bump to 0.26.

2025-07-19  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2025-07-19  Bruno Haible  <bruno@clisp.org>

	xgettext: JavaScript: Add one more test.
	Reported by <fiurgeist@gmail.com>
	at <https://savannah.gnu.org/bugs/index.php?67337>.

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

2025-07-18  Bruno Haible  <bruno@clisp.org>

	msginit: Fix encoding of second title line, part 2.
	Reported by Matilin Torre <watilin@protonmail.com> in
	<https://lists.gnu.org/archive/html/bug-gettext/2025-07/msg00024.html>.

	To reproduce the problem:
	$ LC_ALL=de_DE.ISO-8859-1 msginit -l fr_FR.ISO-8859-1 -i some_utf-8.pot -o fr.po

	* gettext-tools/src/msginit.c (output_charset): New variable.
	(content_type): Use output_charset.
	(get_title): Use output_charset instead of ignoring was_utf8.
	(fill_header): Initialize output_charset. Moved logic from content_type()
	to here.

2025-07-18  Bruno Haible  <bruno@clisp.org>

	msginit: Fix encoding of second title line, part 1.
	Reported by Matilin Torre <watilin@protonmail.com> in
	<https://lists.gnu.org/archive/html/bug-gettext/2025-07/msg00024.html>.

	* gettext-tools/src/msginit.c: Include xstriconv.h.
	(get_title): Don't set OUTPUT_CHARSET; this does not work any more since 2005,
	when an optimization was made in dcigettext.c. Instead, use xstr_iconv().

2025-07-12  Bruno Haible  <bruno@clisp.org>

	msgfmt: Verify that .mo files are reproducible across GNU gettext versions.
	* gettext-tools/tests/msgfmt-21: New file.
	* gettext-tools/tests/testdata/mf-21.mo: New generated file.
	* gettext-tools/tests/Makefile.am (TESTS): Add msgfmt-21.
	(EXTRA_DIST): Add testdata/mf-21.mo.

2025-07-12  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2025-07-09  Bruno Haible  <bruno@clisp.org>

	build: On mingw, avoid link dependency from xgettext.exe to libstdc++.
	Reported by Michele Locati <michele@locati.it> in
	<https://lists.gnu.org/archive/html/bug-gettext/2024-10/msg00007.html>.

	* gettext-tools/src/Makefile.am (xgettext_CXXFLAGS): New variable.

2025-07-09  Bruno Haible  <bruno@clisp.org>

	build: Use a more understandable directory name for ITS data files.
	Reported by Santiago Vila <sanvila@debian.org>.

	* gettext-tools/configure.ac (PACKAGE_SUFFIX): Use PACKAGE_VERSION, not
	ARCHIVE_VERSION.

2025-07-08  Bruno Haible  <bruno@clisp.org>

	build: Update .gitignore files.

2025-07-08  Bruno Haible  <bruno@clisp.org>

	build: Remove autosprintf_all.html upon "make maintainer-clean".
	* gettext-runtime/libasprintf/Makefile.am (MAINTAINERCLEANFILES): New variable.

2025-07-07  Bruno Haible  <bruno@clisp.org>

	tests: Fix suggested valgrind invocation.
	A while ago, valgrind exited with exit code != 0 when it encountered an error.
	This is apparently not the case any more.

	* gettext-tools/tests/Makefile.am (CHECKER): Add --error-exitcode option.

2025-07-07  Bruno Haible  <bruno@clisp.org>

	xgettext: Perl: Add unit test for bug.
	* gettext-tools/tests/xgettext-perl-11: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2025-07-07  Bruno Haible  <bruno@clisp.org>

	xgettext: Perl: Fix a memory leak (regression 2003-06-27).
	* gettext-tools/src/x-perl.c (phase2_getc): Free the result of
	from_current_source_encoding.

2025-07-07  Bruno Haible  <bruno@clisp.org>

	xgettext: Perl: Fix bug with comment lines longer than 1024 (regr. 2024-09-26).
	Reported by Alyssa Ross <hi@alyssa.is> in
	<https://lists.gnu.org/archive/html/bug-gettext/2025-07/msg00009.html>.

	* gettext-tools/src/x-perl.c (phase2_getc): Move the sb_free call until after
	the savable_comment_add call.

2025-07-04  Bruno Haible  <bruno@clisp.org>

	doc: More precisions about POSIX printf portability.
	* gettext-tools/doc/lang-sh.texi (The printf approach): Add more details.
	Based on info given by Jörg Schilling in 2020.

2025-07-04  Bruno Haible  <bruno@clisp.org>

	Prepare for prerelease.
	* gettext-tools/po/POTFILES.in: Update file list.

2025-07-04  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2025-07-04  Bruno Haible  <bruno@clisp.org>

	xgettext: Warn when a message contains an URL or email address.
	Reported by Arsen Arsenović <arsen@aarsen.me>
	at <https://savannah.gnu.org/bugs/?67000>.

	* gettext-tools/src/xg-check.c: Include c-strstr.h.
	(SIZEOF): New macro.
	(string_has_url, message_has_url, string_has_email, message_has_email,
	url_check_message): New functions.
	(xgettext_check_message_list): Invoke url_check_message.
	* gettext-tools/tests/xgettext-20: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.
	* NEWS: Mention the change.

2025-07-03  Bruno Haible  <bruno@clisp.org>

	msgcat, msgen, xgettext: Tweak processing order.
	* gettext-tools/src/msgcat.c (main): Sort the list of messages as the last
	processing step before writing the PO file.
	* gettext-tools/src/msgen.c (main): Likewise.
	* gettext-tools/src/xgettext.c (main): Likewise.

2025-07-03  Bruno Haible  <bruno@clisp.org>

	xgettext: Check msgid and msgid_plural for compatibility as format strings.
	* gettext-tools/src/if-error.h: Include <stdarg.h>.
	(if_verror): New declaration.
	* gettext-tools/src/if-error.c (if_verror): New function, extracted from
	if_error.
	(if_error): Invoke it.
	* gettext-tools/src/xg-check.h (xgettext_check_message_list): Renamed from
	syntax_check_message_list.
	* gettext-tools/src/xg-check.c: Include format.h, if-error.h.
	(struct formatstring_error_logger_locals): New type.
	(formatstring_error_logger, format_check_message): New functions.
	(xgettext_check_message_list): Renamed from syntax_check_message_list. Invoke
	also format_check_message.
	* gettext-tools/src/xgettext.c (main): Invoke xgettext_check_message_list
	instead of syntax_check_message_list.
	* gettext-tools/tests/xgettext-19: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.
	* NEWS: Mention the change.

2025-07-03  Bruno Haible  <bruno@clisp.org>

	Lisp, Scheme support: Fix format string checking.
	* gettext-tools/src/format-lisp.c (format_check): Allow missing arguments if
	!equality.
	* gettext-tools/src/format-scheme.c (format_check): Likewise.

2025-07-03  Bruno Haible  <bruno@clisp.org>

	Lua support: Fix format string checking.
	* gettext-tools/src/format-lua.c (format_check): Allow missing arguments if
	!equality. Report all argument type mismatches at once.

2025-07-03  Bruno Haible  <bruno@clisp.org>

	tests: Strengthen tests.
	* gettext-tools/tests/lang-bash: Invoke msgfmt with option '-c'.
	* gettext-tools/tests/lang-c: Likewise.
	* gettext-tools/tests/lang-c++: Likewise.
	* gettext-tools/tests/lang-c++20: Likewise.
	* gettext-tools/tests/lang-c++26: Likewise.
	* gettext-tools/tests/lang-c++-boost: Likewise.
	* gettext-tools/tests/lang-clisp: Likewise.
	* gettext-tools/tests/lang-csharp: Likewise.
	* gettext-tools/tests/lang-d: Likewise.
	* gettext-tools/tests/lang-elisp: Likewise.
	* gettext-tools/tests/lang-gawk: Likewise.
	* gettext-tools/tests/lang-go: Likewise.
	* gettext-tools/tests/lang-guile: Likewise.
	* gettext-tools/tests/lang-java: Likewise.
	* gettext-tools/tests/lang-javascript: Likewise.
	* gettext-tools/tests/lang-librep: Likewise.
	* gettext-tools/tests/lang-lua: Likewise.
	* gettext-tools/tests/lang-modula2: Likewise.
	* gettext-tools/tests/lang-objc: Likewise.
	* gettext-tools/tests/lang-pascal: Likewise.
	* gettext-tools/tests/lang-perl-1: Likewise.
	* gettext-tools/tests/lang-perl-2: Likewise.
	* gettext-tools/tests/lang-php: Likewise.
	* gettext-tools/tests/lang-python-1: Likewise.
	* gettext-tools/tests/lang-python-2: Likewise.
	* gettext-tools/tests/lang-ruby: Likewise.
	* gettext-tools/tests/lang-rust: Likewise.
	* gettext-tools/tests/lang-sh-1: Likewise.
	* gettext-tools/tests/lang-sh-2: Likewise.
	* gettext-tools/tests/lang-sh-3: Likewise.
	* gettext-tools/tests/lang-smalltalk: Likewise.
	* gettext-tools/tests/lang-tcl: Likewise.
	* gettext-tools/tests/lang-vala: Likewise.

2025-07-03  Bruno Haible  <bruno@clisp.org>

	Python: Fix compilation error (regression 2025-06-24).
	* gettext-tools/src/format-python-brace.c (parse_directive): Pass NULL, not
	false.

2025-07-03  Bruno Haible  <bruno@clisp.org>

	Modula-2 support: Fix possible crash during format string checking.
	* gettext-tools/src/format-modula2.c (format_check): Fix error message. Fix loop
	bound.

2025-07-03  Bruno Haible  <bruno@clisp.org>

	xgettext: Fix bug with syntax-checks on messages from Perl source code.
	* gettext-tools/src/x-perl.c (extract_perl): Don't free logical_file_name,
	because it is referenced by the 'pos' field of the returned messages, and
	xg-check.c accesses and prints it.

2025-07-03  Bruno Haible  <bruno@clisp.org>

	xgettext: Fix handling of syntax-checks with multi-domain POT files.
	* gettext-tools/src/xgettext.c (main): Consider the total number of errors.

2025-07-03  Bruno Haible  <bruno@clisp.org>

	msggrep: Add new options -W and -S.
	Reported at <https://savannah.gnu.org/bugs/?40489>.

	* gettext-tools/src/msggrep.c (workflow_flags, sticky_flags): New variables.
	(main): Initialize them. Handle the options -W and -S.
	(usage): Document the -W and -S options.
	(is_message_selected_no_invert): Return true if one of the specified workflow
	flags or one of the specified sticky flags is set.
	* gettext-tools/tests/msggrep-12: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.
	* gettext-tools/doc/msggrep.texi: Document the -W and -S options.
	* NEWS: Mention the change.

2025-07-03  Bruno Haible  <bruno@clisp.org>

	msggrep: Finish documenting the -X option (left-over from 2006-03-17).
	* gettext-tools/doc/msggrep.texi: Mention the -X option in the summary.

2025-07-02  Bruno Haible  <bruno@clisp.org>

	Update NEWS after 0.25.1 release.
	* NEWS: Mention 0.25.1 release.

2025-07-02  Bruno Haible  <bruno@clisp.org>

	Merge from 0.25.x branch: Prepare for 0.25.1 release.
	* gettext-tools/misc/autopoint.in: Accept versions 0.23.2, 0.24.2, 0.25.1.
	* gettext-tools/configure.ac (ARCHIVE_VERSION): Bump to 0.25.1.
	* NEWS: Update.

2025-07-01  Bruno Haible  <bruno@clisp.org>

	autopoint: Don't fail if no gettext version is specified, part 2.
	* gettext-tools/misc/autopoint.in (func_trace_sed): Recognize also macro calls
	without arguments.
	* gettext-tools/tests/autopoint-1: Remove unneeded parentheses in macro call.

2025-07-01  Bruno Haible  <bruno@clisp.org>

	autopoint: Update unit test, part 2.
	* gettext-tools/tests/autopoint-1: Remove debugging trace.

2025-07-01  Bruno Haible  <bruno@clisp.org>

	autopoint: Update unit test.
	* gettext-tools/tests/autopoint-1: Update for new autopoint behaviour.

2025-07-01  Bruno Haible  <bruno@clisp.org>

	Fix an autoreconf failure in packages that only need AM_NLS.
	Rationale: https://lists.gnu.org/archive/html/bug-gettext/2025-06/msg00009.html

	* gettext-tools/m4/Makefile.am (aclocaldir, aclocal_DATA): New variables.
	* PACKAGING: Update.

2025-07-01  Bruno Haible  <bruno@clisp.org>

	autopoint: Don't fail if no gettext version is specified.
	Rationale: https://lists.gnu.org/archive/html/bug-gettext/2025-06/msg00009.html

	* gettext-tools/misc/autopoint.in: Instead of failing with "Missing version",
	use version 0.23.1. Set omitintl=yes if there is no AM_GNU_GETTEXT invocation.

2025-06-30  Bruno Haible  <bruno@clisp.org>

	Support reading PO files with '#=' lines.
	* gettext-tools/src/read-catalog-abstract.c
	(catalog_reader_seen_generic_comment): Treat '=' like ','.
	* gettext-tools/src/read-catalog.c (default_comment_special): Allow several
	calls to this method to make side effects on dcatr.
	* gettext-tools/src/read-catalog-special.h: Update comment.
	* gettext-tools/src/read-catalog-special.c: Likewise.
	* gettext-tools/tests/msgcat-24: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2025-06-30  Bruno Haible  <bruno@clisp.org>

	doc: Document the short-term PO file format evolution.
	* gettext-tools/doc/gettext.texi (PO File Format Evolution): New section.

2025-06-30  Bruno Haible  <bruno@clisp.org>

	doc: Structure the "PO Files" chapter.
	* gettext-tools/doc (PO Files): Split into sections. Introduce workflow flags
	and sticky flags. Mention the 'no-wrap' flag.

2025-06-30  Bruno Haible  <bruno@clisp.org>

	Simplify code: The syntax-check flags are only used inside xgettext.
	* gettext-tools/src/message.h: Improve comments regarding do_syntax_check.
	* gettext-tools/src/msgl-cat.c (catenate_msgdomain_list): Don't manipulate
	do_syntax_check field.
	* gettext-tools/src/msgmerge.c (message_merge): Likewise.
	* gettext-tools/src/read-catalog-special.h (parse_comment_special): Change 'scp'
	parameter to a pointer.
	* gettext-tools/src/read-catalog-special.c (parse_comment_special): Support a
	null 'scp' argument.
	* gettext-tools/src/read-catalog.h (DEFAULT_CATALOG_READER_TY): Remove
	do_syntax_check field.
	* gettext-tools/src/read-catalog.c (default_constructor,
	default_copy_comment_state, default_reset_comment_state,
	default_comment_special): Don't reference do_syntax_check field.

2025-06-29  Bruno Haible  <bruno@clisp.org>

	examples: Extend the hello-sh example, part 2.
	* gettext-tools/examples/hello-sh/hello-2.sh: New file, based on
	gettext-tools/examples/hello-sh/hello-1.sh.
	* gettext-tools/examples/hello-sh/hello-3.sh: New file, based on
	gettext-tools/examples/hello-sh/hello-2.sh.

2025-06-29  Bruno Haible  <bruno@clisp.org>

	Tweak last commit.
	* gettext-tools/src/msgcmp.c (main): Tweak whitespace.

2025-06-28  Bruno Haible  <bruno@clisp.org>

	Refactor: Use gnulib's 'options' module.
	* autogen.sh (GNULIB_MODULES_RUNTIME_FOR_SRC, GNULIB_MODULES_TOOLS_FOR_SRC): Add
	'options'. Remove 'getopt-gnu'.
	* gettext-runtime/src/envsubst.c: Include options.h instead of <getopt.h>.
	(long_options): Remove variable.
	(main): Define options array here. Call start_options, get_next_option instead
	of getopt_long().
	* gettext-runtime/src/gettext.c: Likewise.
	* gettext-runtime/src/ngettext.c: Likewise.
	* gettext-runtime/src/printf_gettext.c: Likewise.
	* gettext-runtime/src/printf_ngettext.c: 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/tests/tstgettext.c: Likewise.
	* gettext-tools/tests/tstngettext.c: Likewise.

2025-06-28  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2025-06-28  Bruno Haible  <bruno@clisp.org>

	Adhere to GNU Coding Style.
	* gettext-runtime/src/envsubst.c (main): Use common 'switch' indentation.
	* gettext-tools/src/hostname.c (main): Likewise.
	* gettext-tools/src/recode-sr-latin.c (main): Likewise.
	* gettext-tools/src/urlget.c (main): Likewise.
	* gettext-tools/tests/tstgettext.c (main): Likewise.
	* gettext-tools/tests/tstngettext.c (main): Likewise.

2025-06-28  Bruno Haible  <bruno@clisp.org>

	xgettext: Remove undocumented no-op option '-W'.
	This was a regression from 2015-01-29.

	* gettext-tools/src/xgettext.c (main): Remove short option '-W'.

2025-06-28  Bruno Haible  <bruno@clisp.org>

	msgconv, msgen, msgfilter, msggrep, msgmerge: The option '-n' takes no argument.
	This was a regression from 2014-03-24.

	* gettext-tools/src/msgconv.c (main): Change "n:" to "n" in getopt_long
	argument.
	* gettext-tools/src/msgen.c (main): Likewise.
	* gettext-tools/src/msgfilter.c (main): Likewise.
	* gettext-tools/src/msggrep.c (main): Likewise.
	* gettext-tools/src/msgmerge.c (main): Likewise.

2025-06-27  Bruno Haible  <bruno@clisp.org>

	Shell: Document two more approaches.
	* gettext-tools/doc/lang-sh.texi (sh): Tweaks.
	(sh - Three approaches): New subsubsection.
	(The gettext.sh approach): New subsubsection, incorporating the "gettext.sh"
	subsubsection.
	(The printf approach, The printf_gettext approach): New subsubsections.
	(Preparing for gettext.sh): Renamed from "Preparing Shell Scripts".
	(Preparing for printf, Preparing for printf_gettext): New subsubsections.
	* gettext-tools/doc/gettext.texi: Update detailed node list.
	* NEWS: Mention the change.

2025-06-27  Bruno Haible  <bruno@clisp.org>

	examples: Extend the hello-sh example.
	* gettext-tools/examples/hello-sh/hello-1.sh: Renamed from
	gettext-tools/examples/hello-sh/hello.sh.
	* gettext-tools/examples/hello-sh/hello-2.sh: New file, based on
	gettext-tools/examples/hello-sh/hello-1.sh.
	* gettext-tools/examples/hello-sh/hello-3.sh: New file, based on
	gettext-tools/examples/hello-sh/hello-2.sh.
	* gettext-tools/examples/hello-sh/configure.ac: Update AC_CONFIG_SRCDIR
	invocation and AC_CONFIG_FILES invocations.
	* gettext-tools/examples/hello-sh/Makefile.am (bin_SCRIPTS): Remove hello.
	Add hello-1, hello-2, hello-3.
	* gettext-tools/examples/hello-sh/po/Makefile.am (POTFILES): Remove hello.sh.
	Add hello-1.sh, hello-2.sh, hello-3.sh.
	* gettext-tools/examples/po/Makefile.am (POTFILES): Update accordingly.
	* gettext-tools/examples/Makefile.am (EXAMPLESFILES): Update file list.

2025-06-27  Bruno Haible  <bruno@clisp.org>

	Shell: Add another unit test.
	* gettext-tools/tests/lang-sh-3: New file, based on
	gettext-tools/tests/lang-sh-2.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2025-06-27  Bruno Haible  <bruno@clisp.org>

	build: Use module 'kwset' from gnulib.
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_LIBGREP): Add kwset.
	(GNULIB_MODULES_TOOLS_FOR_SRC_COMMON_DEPENDENCIES): Update.
	* gettext-tools/libgrep/m-fgrep.c (Fcompile, Fexecute): Update for changed kwset
	API.
	* gettext-tools/libgrep/kwset.h: Remove file.
	* gettext-tools/libgrep/kwset.c: Remove file.
	* gettext-tools/libgrep/Makefile.am (libgrep_a_SOURCES): Remove kwset.h,
	kwset.c.

2025-06-26  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2025-06-26  Bruno Haible  <bruno@clisp.org>

	build: Update regarding current gnulib.
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC_COMMON_DEPENDENCIES): Update.

2025-06-25  Bruno Haible  <bruno@clisp.org>

	build: Fix "make distcheck" failure.
	* gettext-runtime/man/*.x: Add copyright and license header.

2025-06-25  Bruno Haible  <bruno@clisp.org>

	xgettext: Shell: Recognize printf_gettext, printf_ngettext invocations.
	* gettext-tools/src/x-sh.c (init_keywords, init_flag_table_sh): Add knowledge
	about printf_gettext and printf_ngettext.
	(read_command): Recognize '-c' option of printf_gettext and printf_ngettext.
	* gettext-tools/tests/xgettext-sh-1: Add test cases with printf_gettext and
	printf_ngettext.
	* gettext-tools/doc/xgettext.texi: Document it.

2025-06-25  Bruno Haible  <bruno@clisp.org>

	gettext-runtime: New programs 'printf_gettext', 'printf_ngettext'.
	* autogen.sh (GNULIB_MODULES_RUNTIME_FOR_SRC): Add c-ctype, c-strtold,
	fzprintf-posix, mbrtoc32, mbszero, quote, stdint-h, strtoimax, strtold,
	strtoumax, xstrtold.
	* gettext-runtime/src/printf-command.h: New file.
	* gettext-runtime/src/printf-command.c: New file.
	* gettext-runtime/src/printf_gettext.c: New file.
	* gettext-runtime/src/Makefile.am (bin_PROGRAMS): Add printf_gettext,
	printf_ngettext.
	(noinst_LIBRARIES, libgrtsrc_a_SOURCES): New variables.
	(printf_gettext_SOURCES, printf_gettext_CFLAGS, printf_gettext_LDFLAGS): New
	variables.
	(printf_ngettext_SOURCES, printf_ngettext_CFLAGS, printf_ngettext_LDFLAGS): New
	variables.
	(LDADD): Add libgrtsrc.a.
	* gettext-runtime/po/POTFILES.in: Add src/printf-command.c,
	src/printf_gettext.c, src/printf_ngettext.c.
	* gettext-runtime/man/printf_gettext.x: New file.
	* gettext-runtime/man/printf_ngettext.x: New file.
	* gettext-runtime/man/Makefile.am (man_aux): Add printf_gettext.x,
	printf_ngettext.x.
	(man_MAN1GEN): Add printf_gettext.1, printf_ngettext.1.
	(man_MAN1IN): Add printf_gettext.1.in, printf_ngettext.1.in.
	(man_HTML1GEN): Add printf_gettext.1.html, printf_ngettext.1.html.
	(man_HTML1IN): Add printf_gettext.1.html.in, printf_ngettext.1.html.in.
	(printf_gettext.1, rintf_ngettext.1, printf_gettext.1.in, printf_ngettext.1.in):
	Add dependencies.
	(printf_gettext.1.html, printf_ngettext.1.html, printf_gettext.1.html.in,
	printf_ngettext.1.html.in): Likewise.
	* gettext-runtime/Makefile.am (distdir1): Depend on man/printf_gettext.1 and
	man/printf_ngettext.1.
	(man/printf_gettext.1, man/printf_ngettext.1): Depend on gen-man1.
	(gen-man1): Make src/printf_gettext, src/printf_ngettext and printf_gettext.1,
	printf_ngettext.1.
	* gettext-runtime/doc/rt-printf_gettext.texi: New file.
	* gettext-runtime/doc/rt-printf_ngettext.texi: New file.
	* gettext-runtime/doc/Makefile.am (EXTRA_DIST): Add them.
	* gettext-tools/doc/lang-sh.texi (printf_gettext Invocation,
	printf_ngettext Invocation): New subsubsections.
	* gettext-tools/doc/gettext.texi (@direntry): Add printf_gettext, .
	* gettext-tools/doc/Makefile.am (gettext_TEXINFOS): Add rt-printf_gettext.texi,
	rt-printf_ngettext.texi.
	* gettext-runtime/NEWS: Mention the new programs.
	* NEWS: Likewise.
	* PACKAGING: Add the printf_gettext and printf_ngettext programs and their
	documentation.

2025-06-25  Bruno Haible  <bruno@clisp.org>

	gettext-runtime: Improve --help output.
	* gettext-runtime/src/gettext.c (usage): Add section title
	"Options and arguments".
	* gettext-runtime/src/ngettext.c (usage): Likewise.
	* gettext-runtime/doc/rt-gettext.texi: Add section titles
	"Options and arguments" and "Informative output".
	* gettext-runtime/doc/rt-ngettext.texi: Likewise.

2025-06-24  Bruno Haible  <bruno@clisp.org>

	C++: Add another unit test.
	* gettext-tools/tests/lang-c++-boost: New file, based on
	gettext-tools/tests/lang-c++26.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.
	* gettext-tools/doc/lang-c.texi: Mention how to use C++ with the Boost library.
	* HACKING: Mention the Boost library.

2025-06-24  Bruno Haible  <bruno@clisp.org>

	Shell: Add another unit test.
	* gettext-tools/tests/lang-sh-1: Renamed from gettext-tools/tests/lang-sh.
	* gettext-tools/tests/lang-sh-2: New file, based on
	gettext-tools/tests/lang-sh-1.
	* gettext-tools/tests/Makefile.am (TESTS): Remove lang-sh. Add lang-sh-1,
	lang-sh-2.

2025-06-24  Bruno Haible  <bruno@clisp.org>

	Python: Add another unit test.
	* gettext-tools/tests/lang-python-2: New file, based on
	gettext-tools/tests/lang-python-1.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2025-06-24  Bruno Haible  <bruno@clisp.org>

	Python: Update python-brace-format, assuming Python >= 3.1.
	* gettext-tools/src/format-python-brace.c (struct toplevel_counters): New type.
	(parse_directive): Take a 'struct toplevel_counters *' parameter. Allow empty
	argument names at the top-level. But reject format strings with both absolute
	argument numbers and unnamed arguments at the top-level.
	(parse_upto): Take a 'struct toplevel_counters *' parameter.
	(format_parse): Pass a 'struct toplevel_counters *' to parse_upto.
	* gettext-tools/tests/format-python-brace-1: Update.
	* gettext-tools/tests/format-python-brace-2: Add another test case.
	* gettext-tools/doc/lang-python.texi: Add more examples of formatting with
	positions.

2025-06-24  Bruno Haible  <bruno@clisp.org>

	Python: Fix bug in python-brace-format.
	* gettext-tools/src/format-python-brace.c (parse_directive): The name ends
	before ':', not before '}'.

2025-06-24  Bruno Haible  <bruno@clisp.org>

	Python: Remove an obsolete unit test.
	Python versions < 2.3 are irrelevant nowadays.

	* gettext-tools/tests/lang-python-1: Renamed from
	gettext-tools/tests/lang-python-2.
	* gettext-tools/tests/Makefile.am (TESTS): Remove lang-python-2.

2025-06-23  Bruno Haible  <bruno@clisp.org>

	Support format strings longer than 2 GiB on 64-bit platforms.
	* gettext-tools/configure.ac: In config.h, define GCD_WORD_T.
	* gettext-tools/src/format-invalid.h: In format strings, use %zu instead of %u.
	* gettext-tools/src/format-awk.c: Use size_t instead of 'unsigned int'. In
	format strings, use %zu instead of %u.
	* gettext-tools/src/format-boost.c: Likewise.
	* gettext-tools/src/format-c.c: Likewise.
	* gettext-tools/src/format-c-parse.h: Likewise.
	* gettext-tools/src/format-c++-brace.c: Likewise.
	* gettext-tools/src/format-csharp.c: Likewise.
	* gettext-tools/src/format-d.c: Likewise.
	* gettext-tools/src/format-elisp.c: Likewise.
	* gettext-tools/src/format-gcc-internal.c: Likewise.
	* gettext-tools/src/format-gfc-internal.c: Likewise.
	* gettext-tools/src/format-go.c: Likewise.
	* gettext-tools/src/format-java.c: Likewise.
	* gettext-tools/src/format-java-printf.c: Likewise.
	* gettext-tools/src/format-javascript.c: Likewise.
	* gettext-tools/src/format-kde.c: Likewise.
	* gettext-tools/src/format-kde-kuit.c: Likewise.
	* gettext-tools/src/format-librep.c: Likewise.
	* gettext-tools/src/format-lisp.c: Likewise.
	* gettext-tools/src/format-lua.c: Likewise.
	* gettext-tools/src/format-modula2.c: Likewise.
	* gettext-tools/src/format-pascal.c: Likewise.
	* gettext-tools/src/format-perl.c: Likewise.
	* gettext-tools/src/format-perl-brace.c: Likewise.
	* gettext-tools/src/format-php.c: Likewise.
	* gettext-tools/src/format-python.c: Likewise.
	* gettext-tools/src/format-python-brace.c: Likewise.
	* gettext-tools/src/format-qt.c: Likewise.
	* gettext-tools/src/format-qt-plural.c: Likewise.
	* gettext-tools/src/format-ruby.c: Likewise.
	* gettext-tools/src/format-rust.c: Likewise.
	* gettext-tools/src/format-scheme.c: Likewise.
	* gettext-tools/src/format-sh.c: Likewise.
	* gettext-tools/src/format-sh-printf.c: Likewise.
	* gettext-tools/src/format-smalltalk.c: Likewise.
	* gettext-tools/src/format-tcl.c: Likewise.
	* gettext-tools/src/format.h (get_python_format_unnamed_arg_count): Return
	size_t instead of 'unsigned int'.

2025-06-23  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2025-06-23  Bruno Haible  <bruno@clisp.org>

	gettext-runtime: Fix --help output in relocatable installations.
	* gettext-runtime/src/gettext.c (usage): Show the relocated LOCALEDIR.
	* gettext-runtime/src/ngettext.c (usage): Likewise.

2025-06-23  Bruno Haible  <bruno@clisp.org>

	Adhere to GNU Coding Style.
	* gettext-runtime/src/gettext.c (usage): Add space after 'printf'.
	* gettext-runtime/src/ngettext.c (usage): Likewise.
	* gettext-runtime/src/envsubst.c (usage): Likewise.

2025-06-23  Bruno Haible  <bruno@clisp.org>

	Add support for Shell printf format strings, part 3.
	* gettext-tools/src/format-invalid.h (INVALID_FLAG_FOR): New macro.
	* gettext-tools/src/format-java-printf.c (INVALID_FLAG_FOR): Remove macro.
	* gettext-tools/src/format-sh-printf.c (format_parse): Reject format strings
	with invalid flag+specifier combinations.
	* gettext-tools/tests/format-sh-printf-1: Add more test cases.
	* gettext-tools/doc/gettext.texi (sh-format): Mention the ' flag.

2025-06-23  Bruno Haible  <bruno@clisp.org>

	Add support for Shell printf format strings, part 2.
	* gettext-tools/po/POTFILES.in: Add src/format-sh-printf.c.
	* gettext-tools/tests/format-sh-printf-1: Use 'printf' instead of 'echo',
	because 'echo' processes escape sequences on macOS, OpenBSD, Solaris.

2025-06-22  Bruno Haible  <bruno@clisp.org>

	Add support for Shell printf format strings.
	* gettext-tools/src/message.h (enum format_type): Add format_sh_printf.
	(NFORMATS): Increment.
	* gettext-tools/src/message.c (format_language, format_language_pretty): Add an
	entry for format_sh_printf.
	* gettext-tools/src/format.h (formatstring_sh_printf): New declaration.
	* gettext-tools/src/format.c (formatstring_parsers): Add an entry for
	format_sh_printf.
	* gettext-tools/src/format-sh-printf.c: New file, based on
	gettext-tools/src/format-awk.c.
	* gettext-tools/src/FILES: Mention it.
	* gettext-tools/src/x-sh.h (SCANNERS_SH): Use formatstring_sh_printf as
	secondary format string type.
	* gettext-tools/src/xgettext.c (xgettext_record_flag): Update accordingly.
	* gettext-tools/src/x-sh.c (init_flag_table_sh): Register gettext, ngettext with
	flag 'pass-sh-printf-format'. Register 'printf' with flag 'sh-printf-format'.
	* gettext-tools/src/Makefile.am (FORMAT_SOURCE): Add format-sh-printf.c.
	* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES): Likewise.
	* gettext-tools/doc/gettext.texi (PO Files): Mention sh-printf-format.
	(sh-format): Document also the sh-printf-format strings.
	* gettext-tools/doc/lang-sh.texi (sh): Mention the coreutils 'printf' command.
	* gettext-tools/tests/xgettext-sh-1: Add a test case with a printf invocation.
	* gettext-tools/tests/format-sh-printf-1: New file, based on
	gettext-tools/tests/format-awk-1.
	* gettext-tools/tests/format-sh-printf-2: New file, based on
	gettext-tools/tests/format-awk-2.
	* gettext-tools/tests/Makefile.am (TESTS): Add them.
	* NEWS: Mention the change.

2025-06-22  Bruno Haible  <bruno@clisp.org>

	tcl-format: Accept null precision.
	Proof that it's valid:
	$ tclsh
	puts [format "%.f" 3.1415926535]

	* gettext-tools/src/format-tcl.c: Fix comment regarding the precision.
	* gettext-tools/tests/format-tcl-1: Add a test case with null precision.

2025-06-22  Bruno Haible  <bruno@clisp.org>

	rust-format: Reject null precision.
	* gettext-tools/tests/format-rust-1: Add more test cases with null precision.

2025-06-22  Bruno Haible  <bruno@clisp.org>

	ruby-format: Accept null precision.
	Proof that it's valid:
	$ ruby
	puts "%.f" % 3.1415926535

	* gettext-tools/src/format-ruby.c: Clarify comment regarding the precision.
	* gettext-tools/tests/format-ruby-1: Add test cases with null precision.

2025-06-22  Bruno Haible  <bruno@clisp.org>

	python-brace-format: Reject null precision.
	Proof that it's invalid:
	$ python
	print("{value:.}".format(value = 3.141592535))

	* gettext-tools/tests/format-python-brace-1: Add another test case with null
	precision.

2025-06-22  Bruno Haible  <bruno@clisp.org>

	python-format: Accept null precision.
	Proof that it's valid:
	$ python
	print("%(value).f" % { 'value': 3.1415926535 })

	* gettext-tools/src/format-python.c: Fix comment regarding the precision.
	* gettext-tools/tests/format-python-1: Add a test case with null precision.

2025-06-22  Bruno Haible  <bruno@clisp.org>

	php-format: Reject null precision.
	Rationale: The handling of null precision in php is buggy,
	cf. <https://github.com/php/php-src/issues/18897>.

	* gettext-tools/src/format-php.c: Fix comment regarding the precision.
	* gettext-tools/tests/format-php-1: Add a test case with null precision.

2025-06-22  Bruno Haible  <bruno@clisp.org>

	perl-format: Accept null precision.
	Proof that it's valid:
	$ perl
	printf "%.f", 3.1415926535

	* gettext-tools/src/format-perl.c: Clarify comment regarding the precision.
	* gettext-tools/tests/format-perl-1: Add a test case with null precision.

2025-06-22  Bruno Haible  <bruno@clisp.org>

	pascal-format: Accept null precision.
	Proof that it's valid:
	------------------------- foo.pp -------------------------
	program foo;
	uses sysutils;
	begin
	  writeln(format('%.f', [3.1415926535]));
	end.
	----------------------------------------------------------

	* gettext-tools/src/format-pascal.c: Fix comment regarding the precision.
	(format_parse): Accept a null precision after '.'.
	* gettext-tools/tests/format-pascal-1: Add a test case with null precision.

2025-06-22  Bruno Haible  <bruno@clisp.org>

	lua-format: Accept null precision. Limit width and precision to two digits.
	Proof that it's valid:
	$ lua
	print(string.format("%.f", 3.1415926535))

	* gettext-tools/src/format-lua.c: Fix comment regarding the width and the
	precision.
	(format_parse): Recognize at most two digits for the width. Recognize at most
	two digits for the precision.
	* gettext-tools/tests/format-lua-1: Add test cases with large width, null
	precision, and large precision.

2025-06-22  Bruno Haible  <bruno@clisp.org>

	librep-format: Accept null precision.
	Proof that it's valid:
	$ rep
	(format t "%.d" 3.1415926535)

	* gettext-tools/src/format-librep.c: Fix comment regarding the precision.
	* gettext-tools/tests/format-librep-1: Add a test case with null precision.

2025-06-22  Bruno Haible  <bruno@clisp.org>

	javascript-format: Reject null precision.
	Proof that it's invalid:
	------------------------------- foo.js -------------------------------
	const Format = imports.format;
	String.prototype.format = Format.format;
	print("%.f".format(3.1415916535));
	----------------------------------------------------------------------
	$ gjs foo.js

	* gettext-tools/src/format-invalid.h (INVALID_PRECISION_MISSING): New macro.
	* gettext-tools/src/format-java-printf.c (INVALID_PRECISION_MISSING): Remove
	macro.
	* gettext-tools/src/format-javascript.c: Fix comment regarding the precision.
	(format_parse): Report an error if the precision is null (empty).
	* gettext-tools/tests/format-javascript-1: Add a test case with null precision.

2025-06-22  Bruno Haible  <bruno@clisp.org>

	java-printf-format: Reject null precision.
	Proof that it's invalid:
	--------------------------- foo.java ---------------------------
	public class foo {
	  public static void main(String[] args) {
	    System.out.println(String.format("%.f\n", 3.1415926535));
	  }
	}
	----------------------------------------------------------------

	* gettext-tools/tests/format-java-printf-1: Add a test case with null precision.

2025-06-22  Bruno Haible  <bruno@clisp.org>

	go-format: Accept null precision.
	* gettext-tools/src/format-go.c: Clarify comment regarding the precision.
	(format_parse): Accept a null precision after '.'.
	* gettext-tools/tests/format-go-1: Add a test case with null precision.

2025-06-22  Bruno Haible  <bruno@clisp.org>

	elisp-format: Accept null precision.
	Proof that is is valid:
	(format "%.f" 3.1415926)

	* gettext-tools/src/format-elisp.c: Fix comment regarding the precision.
	* gettext-tools/tests/format-elisp-1: Add a test case with null precision.

2025-06-22  Bruno Haible  <bruno@clisp.org>

	d-format: Accept null precision.
	Proof that a null precision is valid:
	------------------------------- foo.d -------------------------------
	import std.stdio;
	import std.format;
	void main () { writeln (format ("%.f", 3.1415926)); }
	---------------------------------------------------------------------

	* gettext-tools/tests/format-d-1: Add a test case with null precision.

2025-06-21  Bruno Haible  <bruno@clisp.org>

	c-format: Accept null precision.
	* gettext-tools/src/format-c-parse.h: Fix comment regarding the precision and
	the ISO C23 size specifiers.
	* gettext-tools/tests/format-c-1: Add a test case with null precision.

2025-06-21  Bruno Haible  <bruno@clisp.org>

	boost-format: Accept null precision.
	* gettext-tools/src/format-boost.c: Fix comment regarding the precision.
	* gettext-tools/tests/format-boost-1: Add a test case with null precision.

2025-06-21  Bruno Haible  <bruno@clisp.org>

	awk-format: Accept null precision.
	Proof that it's valid:
	$ echo 3.1415926 | gawk '{ printf "%.f", $1 }'

	* gettext-tools/src/format-awk.c: Fix comment regarding the precision.
	* gettext-tools/tests/format-awk-1: Add a test case with null precision.

2025-06-21  Bruno Haible  <bruno@clisp.org>

	xgettext: Shell: Reject \u and \U escape sequences that produce surrogates.
	* gettext-tools/src/x-sh.c (read_word): Reject \u and \U values in the range
	0xD800..0xDFFF.
	* gettext-tools/tests/xgettext-sh-9: Add more test cases.

2025-06-21  Bruno Haible  <bruno@clisp.org>

	xgettext: Shell: Bump phase1_pushback buffer size.
	* gettext-tools/src/x-sh.c (phase1_pushback): Bump size to 9.
	* gettext-tools/tests/xgettext-sh-8: Add more test cases.

2025-06-21  Bruno Haible  <bruno@clisp.org>

	xgettext: Shell: Recognize \u and \U escape sequences in $'...' strings.
	* gettext-tools/src/xg-mixed-string.h (mixed_string_remove_prefix,
	mixed_string_buffer_equals, mixed_string_buffer_startswith,
	mixed_string_buffer_cloned_result): New declarations.
	* gettext-tools/src/xg-mixed-string.c (mixed_string_remove_prefix): New
	function.
	(mixed_string_buffer_is_empty): Also test the absence of utf16_surr.
	(mixed_string_buffer_equals, mixed_string_buffer_startswith,
	mixed_string_buffer_cloned_result): New functions.
	* gettext-tools/src/x-sh.c (struct token): Remove type.
	(init_token, free_token, grow_token, string_of_token): Remove functions.
	(struct word): Change type of 'token' field.
	(free_word): Update.
	(string_of_word, substring_of_word): Remove functions.
	(read_word): Call mixed_string_buffer_init instead of init_token,
	mixed_string_buffer_destroy instead of free_token,
	mixed_string_buffer_append_char instead of grow_token. Update accesses to
	wp->token. Recognize \u and \U escape sequences in $'...' strings.
	(read_command): Call mixed_string_buffer_cloned_result instead of
	string_of_word. Update accesses to inner.token.
	* gettext-tools/tests/xgettext-sh-7: Use --from-code option.
	* gettext-tools/tests/xgettext-sh-9: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.
	* NEWS: Mention this and the previous change.

2025-06-21  Bruno Haible  <bruno@clisp.org>

	xgettext: Shell: Recognize \c escape sequences in $'...' strings.
	* gettext-tools/src/x-sh.c (read_word): Recognize \c escape sequences.
	* gettext-tools/tests/xgettext-sh-1: Add test cases with ASCII $'...' strings.

2025-06-21  Bruno Haible  <bruno@clisp.org>

	tests: Avoid a test failure with valgrind.
	* gettext-tools/tests/xgettext-python-9: Filter out the valgrind traces.

2025-06-20  Bruno Haible  <bruno@clisp.org>

	Fix 'make installcheck' failure on Cygwin.
	* gettext-tools/configure.ac (INSTALLED_LIBINTL, INSTALLED_LIBGETTEXTPO_DEPS):
	New variables.
	* gettext-tools/install-tests/Makefile.am (installcheck): Use
	INSTALLED_LIBGETTEXTPO_DEPS.

2025-06-19  Bruno Haible  <bruno@clisp.org>

	Reject the dysfunctional gettext in Solaris libc, other than Solaris 11.4.
	This fixes a 'make installcheck' failure.

	<https://www.illumos.org/issues/13423> has been reported more than 4 years ago.
	I don't have hope that they will fix it, ever.

	* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): On Solaris other than
	Solaris 11.4, don't use the gettext() function in libc.
	* gettext-tools/tests/init.cfg (prepare_locale_): Remove function.
	* gettext-tools/tests/format-c-3: Remove prepare_locale_ invocations.
	* gettext-tools/tests/format-c-4: Likewise.
	* gettext-tools/tests/format-c-5: Likewise.
	* gettext-tools/tests/intl-0: Likewise.
	* gettext-tools/tests/intl-1: Likewise.
	* gettext-tools/tests/intl-2: Likewise.
	* gettext-tools/tests/intl-3: Likewise.
	* gettext-tools/tests/intl-4: Likewise.
	* gettext-tools/tests/intl-6: Likewise.
	* gettext-tools/tests/intl-7: Likewise.
	* gettext-tools/tests/intl-thread-1: Likewise.
	* gettext-tools/tests/intl-thread-2: Likewise.
	* gettext-tools/tests/intl-thread-3: Likewise.
	* gettext-tools/tests/lang-bash: Likewise.
	* gettext-tools/tests/lang-c: Likewise.
	* gettext-tools/tests/lang-c++: Likewise.
	* gettext-tools/tests/lang-c++20: Likewise.
	* gettext-tools/tests/lang-c++26: Likewise.
	* gettext-tools/tests/lang-clisp: Likewise.
	* gettext-tools/tests/lang-csharp: Likewise.
	* gettext-tools/tests/lang-d: Likewise.
	* gettext-tools/tests/lang-gawk: Likewise.
	* gettext-tools/tests/lang-go: Likewise.
	* gettext-tools/tests/lang-guile: Likewise.
	* gettext-tools/tests/lang-java: Likewise.
	* gettext-tools/tests/lang-javascript: Likewise.
	* gettext-tools/tests/lang-librep: Likewise.
	* gettext-tools/tests/lang-lua: Likewise.
	* gettext-tools/tests/lang-modula2: Likewise.
	* gettext-tools/tests/lang-objc: Likewise.
	* gettext-tools/tests/lang-pascal: Likewise.
	* gettext-tools/tests/lang-perl-1: Likewise.
	* gettext-tools/tests/lang-perl-2: Likewise.
	* gettext-tools/tests/lang-php: Likewise.
	* gettext-tools/tests/lang-python-1: Likewise.
	* gettext-tools/tests/lang-python-2: Likewise.
	* gettext-tools/tests/lang-ruby: Likewise.
	* gettext-tools/tests/lang-rust: Likewise.
	* gettext-tools/tests/lang-sh: Likewise.
	* gettext-tools/tests/lang-smalltalk: Likewise.
	* gettext-tools/tests/lang-tcl: Likewise.
	* gettext-tools/tests/lang-vala: Likewise.
	* gettext-tools/tests/msgfmt-20: Likewise.
	* gettext-tools/tests/plural-1: Likewise.
	* NEWS: Mention the change.

2025-06-19  Bruno Haible  <bruno@clisp.org>

	Fix 'make installcheck' failure on Cygwin.
	* gettext-runtime/configure.ac (INSTALLED_LIBINTL): Add $LIBICONV.

2025-06-19  Bruno Haible  <bruno@clisp.org>

	Deprecate the gfc-internal-format flag.
	* gettext-tools/src/format-gfc-internal.c: Update comment.
	* gettext-tools/doc/gettext.texi (PO Files): Mark gfc-internal-format as
	deprecated.
	(gfc-internal-format): Mention "up to GCC 14".

2025-06-19  Bruno Haible  <bruno@clisp.org>

	xgettext: GCC-source: Disable gfc-format-internal recognition.
	* gettext-tools/src/x-c.h (SCANNERS_C): Replace formatstring_gfc_internal with
	NULL.
	* gettext-tools/tests/format-gfc-internal-1: Remove file.
	* gettext-tools/tests/Makefile.am (TESTS): Remove it.

2025-06-19  Bruno Haible  <bruno@clisp.org>

	Strengthen gcc-internal-format: Check that %< %>, %r %R, %{ %} come in pairs.
	* gettext-tools/src/format-gcc-internal.c (format_parse): New local variables
	in_quote_group, in_color_group, in_url_group. Add pairing checks for %< %>,
	%r %R, %{ %}.
	* gettext-tools/tests/format-gcc-internal-1: Update.
	* gettext-tools/tests/format-gcc-internal-2: Update.

2025-06-19  Bruno Haible  <bruno@clisp.org>

	Update gcc-internal-format for GCC 15.
	Reported by Roland Illig, Andrew Pinski, Jakub Jelinek in
	<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119684>.
	Also reported by Roland Illig in
	<https://savannah.gnu.org/bugs/?50450>, <https://savannah.gnu.org/bugs/?50461>.

	* gettext-tools/src/format-gcc-internal.c: Update for GCC 15.
	* gettext-tools/tests/format-gcc-internal-1: Likewise.
	* gettext-tools/tests/format-gcc-internal-2: Likewise.
	* gettext-tools/doc/gettext.texi (gcc-internal-format): Likewise.

2025-06-19  Bruno Haible  <bruno@clisp.org>

	gettext-runtime: Fix "make installcheck" failure on MSVC with --enable-shared.
	* gettext-runtime/intl/Makefile.am (libintl.h): Insert '__declspec (dllimport)'
	in the variable declarations, like in libgnuintl.h.

2025-06-19  Bruno Haible  <bruno@clisp.org>

	gettext-tools: Implement 'installcheck' target.
	* gettext-tools/install-tests/test-version.c: New file.
	* gettext-tools/install-tests/test-api.c: New file.
	* gettext-tools/install-tests/de.po: New file.
	* gettext-tools/install-tests/Makefile.am: New file.
	* gettext-tools/configure.ac (PATH_SEPARATOR, AUGMENT_SHLIBPATH): New variables.
	(AC_CONFIG_FILES): Add install-tests/Makefile.
	* gettext-tools/Makefile.am (SUBDIRS): Add install-tests.

2025-06-19  Bruno Haible  <bruno@clisp.org>

	gettext-runtime: Implement 'installcheck' target.
	* gettext-runtime/install-tests/test-version.c: New file.
	* gettext-runtime/install-tests/test-api.c: New file.
	* gettext-runtime/install-tests/itest.pot: New file.
	* gettext-runtime/install-tests/locale/en_US/LC_MESSAGES/itest.mo: New file.
	* gettext-runtime/install-tests/Makefile.am: New file.
	* gettext-runtime/configure.ac (INSTALLED_LIBINTL, PATH_SEPARATOR,
	AUGMENT_SHLIBPATH): New variables.
	(AC_CONFIG_FILES): Add install-tests/Makefile.
	* gettext-runtime/Makefile.am (SUBDIRS): Add install-tests.

2025-06-19  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Implement 'installcheck' target.
	* libtextstyle/install-tests/test-version.c: New file.
	* libtextstyle/install-tests/test-api.c: New file.
	* libtextstyle/install-tests/Makefile.am: New file.
	* libtextstyle/configure.ac (AUGMENT_SHLIBPATH): New variable.
	(AC_CONFIG_FILES): Add install-tests/Makefile.
	* libtextstyle/Makefile.am (SUBDIRS): Add install-tests.

2025-06-14  Bruno Haible  <bruno@clisp.org>

	build: Simplify.
	* gettext-runtime/configure.ac (LIBSCHED): Remove variable.

2025-06-12  Bruno Haible  <bruno@clisp.org>

	Improve config.log traces.
	* gettext-runtime/m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Emit the configure
	line number into config.log.

2025-06-08  Bruno Haible  <bruno@clisp.org>

	build: Simplify handling of exported symbols on Windows, part 2.
	* gettext-tools/configure.ac (WINDOWS_MSVC): New conditional.
	* gnulib-local/modules/gettext-tools-misc (Makefile.am): Re-add the
	--export-all-symbols linker option.
	* gettext-tools/src/Makefile.am (libgettextsrc_la_LDFLAGS): Re-add the
	--export-all-symbols linker option.

2025-06-07  Bruno Haible  <bruno@clisp.org>

	gettext.m4: Recognize the shared GNU libintl on MSVC.
	Reported by Kirill Makurin <maiddaisuki@outlook.com>
	in <https://lists.gnu.org/archive/html/bug-m4/2025-06/msg00000.html>.

	* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): On MSVC, don't try to use
	_nl_msg_cat_cntr.
	* NEWS: Mention it.

2025-06-07  Bruno Haible  <bruno@clisp.org>

	build: Simplify handling of exported symbols on Windows.
	* gnulib-local/modules/gettext-tools-misc (Makefile.am): Don't compile
	gettextlib-exports.c. Don't add now-redundant --export-all-symbols linker
	option. Don't use GETTEXTLIB_EXPORTS_FLAGS.
	* gettext-tools/src/Makefile.am (libgettextsrc_la_SOURCES): Don't add
	gettextsrc-exports.c.
	(libgettextsrc_la_LDFLAGS): Don't add now-redundant --export-all-symbols linker
	option.
	(libgettextsrc_la_CPPFLAGS): Don't add $(GETTEXTLIB_EXPORTS_FLAGS).
	* gettext-tools/configure.ac (GETTEXTLIB_EXPORTS_FLAGS): Remove variable.
	* gettext-tools/woe32dll/gettextlib-exports.c: Remove file.
	* gettext-tools/woe32dll/gettextsrc-exports.c: Remove file.
	* gettext-tools/woe32dll/export.h: Update comments.

2025-06-06  Bruno Haible  <bruno@clisp.org>

	build: Fix build error on MSVC with --enable-shared.
	* autogen.sh: Avoid the float-h-tests, since they reference the variables
	gl_FLT_SNAN, gl_DBL_SNAN, gl_LDBL_SNAN.

2025-06-06  Bruno Haible  <bruno@clisp.org>

	build: Fix build failure on Cygwin and mingw without preinstalled libunistring.
	* gettext-tools/configure.ac: Define DLL_VARIABLE and LIBGETTEXTSRC_DLL_VARIABLE
	on Cygwin and mingw like on MSVC.

2025-06-06  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Fix build failure on Cygwin < 3.4.6.
	* libtextstyle/lib/Makefile.am (config.h): Don't rename the _imp_ variable
	associated with the gl_get_setlocale_null_lock function.

2025-06-05  Bruno Haible  <bruno@clisp.org>

	tests: xgettext-scheme-6: Fix potential conflict with xgettext-scheme-7.
	* gettext-tools/tests/xgettext-scheme-6: Use common file name idiom.

2025-06-05  Bruno Haible  <bruno@clisp.org>

	build: Fix "make install" in MSVC builds with --enable-shared.
	The problem was that intl-8.dll was not installed with execute permissions.

	* gettext-runtime/intl/Makefile.am (install-exec-libintl): Use $(INSTALL),
	not $(INSTALL_DATA), with libtool --mode=install.
	* INSTALL.windows: Remove constraint to use --disable-shared on MSVC.

2025-06-05  Bruno Haible  <bruno@clisp.org>

	build: Fix MSVC builds with --enable-shared.
	This was a regression in commit 8e914861708ed459a2ae8157eb60d89375ab46cd
	from 2023-09-06.

	Thanks to Kirill Makurin <maiddaisuki@outlook.com> for fruitful discussions.

	* autogen.sh: Among the gnulib-tests, avoid the modules array-map-tests,
	array-oset-tests, carray-list-tests, and uninorm/decomposing-form-tests, since
	they use variables from libgettextlib.
	* gettext-tools/configure.ac (GL_GNULIB_LIBUNISTRING_DLL_VARIABLE_NAME): New
	variable.
	(WOE32DLL): New C macro.
	(DLL_VARIABLE): On MSVC with --enable-shared, define to '__declspec(dllexport)'
	when compiling libgettextlib, and define to '__declspec(dllimport)' when
	compiling the programs in src/.
	(LIBGETTEXTSRC_DLL_VARIABLE): New C macro.
	* gettext-tools/gnulib-lib/Makefile.am (AM_CPPFLAGS): Define the C macro
	IN_LIBGETTEXTLIB.
	* gettext-tools/src/Makefile.am (libgettextsrc_la_CPPFLAGS): Define the C macro
	IN_LIBGETTEXTSRC.
	* gettext-tools/src/format.h: Use LIBGETTEXTSRC_DLL_VARIABLE instead of
	DLL_VARIABLE.
	* gettext-tools/src/message.h: Likewise.
	* gettext-tools/src/msgl-cat.h: Likewise.
	* gettext-tools/src/plural-table.h: Likewise.
	* gettext-tools/src/po-charset.h: Likewise.
	* gettext-tools/src/po-error.h: Likewise.
	* gettext-tools/src/read-catalog.h: Likewise.
	* gettext-tools/src/read-po.h: Likewise.
	* gettext-tools/src/read-properties.h: Likewise.
	* gettext-tools/src/read-stringtable.h: Likewise.
	* gettext-tools/src/sentence.h: Likewise.
	* gettext-tools/src/write-po.h: Likewise.
	* gettext-tools/src/write-properties.h: Likewise.
	* gettext-tools/src/write-stringtable.h: Likewise.
	* gettext-tools/src/xerror-handler.h: Likewise.
	* gettext-tools/libgettextpo/Makefile.am (config.h): Override the value of
	LIBGETTEXTSRC_DLL_VARIABLE.
	* gettext-runtime/configure.ac (WOE32DLL): New C macro.
	(DLL_VARIABLE): Define to empty always.

2025-06-05  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2025-06-05  Bruno Haible  <bruno@clisp.org>

	Fix compilation error on MSVC due to conflict of different stdlib.h files.
	Reported by Kirill Makurin <maiddaisuki@outlook.com> in
	<https://lists.gnu.org/archive/html/bug-gettext/2025-05/msg00071.html>.

	* autogen.sh: Change gnulib-tool invocation for libgrep.
	* gettext-tools/configure.ac (AC_CONFIG_FILES): Add libgrep/gnulib-lib/Makefile.
	* gettext-tools/libgrep/Makefile.am: Don't include Makefile.gnulib.
	(SUBDIRS): New variable.
	(noinst_LIBRARIES): Add libgrep.a.
	(AM_CPPFLAGS): Add -I options for gnulib-lib subdirectory.
	(libgrep_a_DEPENDENCIES): New variable.
	* gettext-tools/libgrep/gnulib-lib/Makefile.am: New file.
	* gettext-tools/src/Makefile.am (LIBGREP): Add ../libgrep/gnulib-lib/libgnu.a.

2025-06-03  Bruno Haible  <bruno@clisp.org>

	build: Fix some crashes when building with --enable-shared on MSVC, part 2.
	* gettext-tools/woe32dll/gettextlib-exports.c: Export also
	gl_carray_list_implementation, gl_hash_map_implementation,
	gl_hash_set_implementation, gl_linked_list_implementation.

2025-06-02  Bruno Haible  <bruno@clisp.org>

	tests: Fix test failure when rxgettext is not installed.
	* gettext-tools/tests/format-ruby-3: Skip test if rxgettext is not installed.

2025-06-02  Collin Funk  <collin.funk1@gmail.com>

	Update a country name.
	* gettext-tools/doc/ISO_3166: Use "Eswatini" instead of "Swaziland".
	* gettext-tools/doc/iso-3166.texi: Likewise.

2025-06-02  Bruno Haible  <bruno@clisp.org>

	Add a NEWS entry.
	* NEWS: Mention the format string heuristic improvements.

2025-06-02  Bruno Haible  <bruno@clisp.org>

	xgettext: Tcl: Improve heuristic for format strings.
	* gettext-tools/src/format-tcl.c (struct spec): Add field
	'likely_intentional_directives'.
	(format_parse): Set it to the number of directives that don't contain a space.
	(format_is_unlikely_intentional): New function.
	(formatstring_tcl): Use it.
	* gettext-tools/tests/format-tcl-3: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2025-06-02  Bruno Haible  <bruno@clisp.org>

	xgettext: Ruby: Improve heuristic for format strings.
	* gettext-tools/src/format-ruby.c (struct spec): Add field
	'likely_intentional_directives'.
	(format_parse): Set it to the number of directives that don't contain a space.
	(format_is_unlikely_intentional): New function.
	(formatstring_ruby): Use it.
	* gettext-tools/tests/format-ruby-3: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2025-06-02  Bruno Haible  <bruno@clisp.org>

	xgettext: Python: Improve heuristic for format strings.
	* gettext-tools/src/format-python.c (struct spec): Add field
	'likely_intentional_directives'.
	(format_parse): Set it to the number of directives that don't contain a space.
	(format_is_unlikely_intentional): New function.
	(formatstring_python): Use it.
	* gettext-tools/tests/format-python-3: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2025-06-02  Bruno Haible  <bruno@clisp.org>

	xgettext: PHP: Improve heuristic for format strings.
	* gettext-tools/src/format-php.c (struct spec): Add field
	'likely_intentional_directives'.
	(format_parse): Set it to the number of directives that don't contain a space.
	(format_is_unlikely_intentional): New function.
	(formatstring_php): Use it.
	* gettext-tools/tests/format-php-3: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2025-06-02  Bruno Haible  <bruno@clisp.org>

	xgettext: Perl: Improve heuristic for format strings.
	* gettext-tools/src/format-perl.c (struct spec): Add field
	'likely_intentional_directives'.
	(format_parse): Set it to the number of directives that don't contain a space.
	(format_is_unlikely_intentional): New function.
	(formatstring_perl): Use it.
	* gettext-tools/tests/format-perl-3: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2025-06-02  Bruno Haible  <bruno@clisp.org>

	xgettext: librep: Improve heuristic for format strings.
	* gettext-tools/src/format-librep.c (struct spec): Add field
	'likely_intentional_directives'.
	(format_parse): Set it to the number of directives that don't contain a space.
	(format_is_unlikely_intentional): New function.
	(formatstring_librep): Use it.
	* gettext-tools/tests/format-librep-3: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2025-06-02  Bruno Haible  <bruno@clisp.org>

	xgettext: JavaScript: Improve heuristic for format strings.
	* gettext-tools/src/format-javascript.c (struct spec): Add field
	'likely_intentional_directives'.
	(format_parse): Set it to the number of directives that don't contain a space.
	(format_is_unlikely_intentional): New function.
	(formatstring_javascript): Use it.
	* gettext-tools/tests/format-javascript-3: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2025-06-02  Bruno Haible  <bruno@clisp.org>

	xgettext: Go: Improve heuristic for format strings.
	* gettext-tools/src/format-go.c (struct spec): Add field
	'likely_intentional_directives'.
	(format_parse): Set it to the number of directives that don't contain a space.
	(format_is_unlikely_intentional): New function.
	(formatstring_go): Use it.
	* gettext-tools/tests/format-go-3: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2025-06-02  Bruno Haible  <bruno@clisp.org>

	xgettext: Emacs Lisp: Improve heuristic for format strings.
	* gettext-tools/src/format-elisp.c (struct spec): Add field
	'likely_intentional_directives'.
	(format_parse): Set it to the number of directives that don't contain a space.
	(format_is_unlikely_intentional): New function.
	(formatstring_elisp): Use it.
	* gettext-tools/tests/format-elisp-3: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2025-06-02  Bruno Haible  <bruno@clisp.org>

	xgettext: D: Improve heuristic for format strings.
	* gettext-tools/src/format-d.c (struct spec): Add field
	'likely_intentional_directives'.
	(parse_upto): Increment it for each directive that don't contain a space.
	(format_parse): Initialize it.
	(format_is_unlikely_intentional): New function.
	(formatstring_d): Use it.
	* gettext-tools/tests/format-d-3: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2025-06-02  Bruno Haible  <bruno@clisp.org>

	xgettext: C++: Improve heuristic for Boost format strings.
	* gettext-tools/src/format-boost.c (struct spec): Add field
	'likely_intentional_directives'.
	(format_parse): Set it to the number of directives that don't contain a space.
	(format_is_unlikely_intentional): New function.
	(formatstring_boost): Use it.
	* gettext-tools/tests/format-boost-3: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2025-06-02  Bruno Haible  <bruno@clisp.org>

	xgettext: C: Improve heuristic for format strings.
	* gettext-tools/src/format-c-parse.h (struct spec): Add field
	'likely_intentional_directives'.
	(format_parse_entrails): Set it to the number of directives that don't contain
	a space.
	* gettext-tools/src/format-c.c (format_is_unlikely_intentional): Also test the
	'likely_intentional_directives' field.
	* gettext-tools/tests/format-c-6: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2025-06-02  Bruno Haible  <bruno@clisp.org>

	xgettext: awk: Improve heuristic for format strings.
	* gettext-tools/src/format-awk.c (struct spec): Add field
	'likely_intentional_directives'.
	(format_parse): Set it to the number of directives that don't contain a space.
	(format_is_unlikely_intentional): New function.
	(formatstring_awk): Use it.
	* gettext-tools/tests/format-awk-3: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2025-06-02  Bruno Haible  <bruno@clisp.org>

	D: Fix handling of %% directive in format string parser.
	* gettext-tools/src/format-d.c (parse_upto): Add matching FMTDIR_END also for
	the %% directive.

2025-06-01  Bruno Haible  <bruno@clisp.org>

	Avoid warnings from "gcc -Wextra".
	Reported by Collin Funk in
	<https://lists.gnu.org/archive/html/bug-gnulib/2025-05/msg00280.html>.

	* gnulib-local/lib/gettext.h (gettext, dgettext, dcgettext): Silence
	-Wbuiltin-declaration-mismatch warning.

2025-06-01  Bruno Haible  <bruno@clisp.org>

	Fix compilation error on Solaris 11 (regr. 2025-05-28).
	* gnulib-local/lib/gettext.h (gettext, dgettext, dcgettext): On Solaris, use
	'char *' as return type.

2025-05-31  Bruno Haible  <bruno@clisp.org>

	build: Fix some crashes when building with --enable-shared on MSVC.
	Reported by Kirill Makurin <maiddaisuki@outlook.com> in
	<https://lists.gnu.org/archive/html/bug-gettext/2025-05/msg00087.html>.

	* gnulib-local/lib/gl_carray_list.h.diff: New file.
	* gnulib-local/lib/gl_hash_map.h.diff: New file.
	* gnulib-local/lib/gl_hash_set.h.diff: New file.
	* gnulib-local/lib/gl_linked_list.h.diff: New file.
	* gnulib-local/Makefile.am (EXTRA_DIST): Add them.

2025-05-31  Bruno Haible  <bruno@clisp.org>

	build: Mark automake 1.18 as supported.
	* autogen.sh: Update comment.
	* m4/fixautomake.m4 (FIX_MAKEFILE_DISTRIB): Likewise.

2025-05-31  Bruno Haible  <bruno@clisp.org>

	doc: For MSVC, recommend to avoid the preinstalled libunistring.
	This fixes an "initializer is not a constant" error upon use of uninorm_nfc.
	Reported by Kirill Makurin <maiddaisuki@outlook.com> in
	<https://lists.gnu.org/archive/html/bug-gettext/2025-05/msg00076.html>.

	* INSTALL.windows: For MSVC, recommend --with-included-libunistring.

2025-05-31  Bruno Haible  <bruno@clisp.org>

	build: Tweak option for MSVC.
	Suggested by Kirill Makurin <maiddaisuki@outlook.com> in
	<https://lists.gnu.org/archive/html/bug-gettext/2025-05/msg00071.html>.

	* gettext-tools/src/Makefile.am (xgettext_LDFLAGS): Use an MSVC option with '-'
	instead of '/', for resilience against the (unsupported) MSYS2.

2025-05-28  Bruno Haible  <bruno@clisp.org>

	Avoid gcc -Wformat-security warnings with --disable-nls.
	Reported by Holger Hoffstätte <holger@applied-asynchrony.com> in
	<https://lists.gnu.org/archive/html/bug-gnulib/2025-05/msg00225.html>.

	* gnulib-local/lib/gettext.h (gettext, dgettext, dcgettext): With gcc in C mode,
	define these as inline functions.

2025-05-20  Bruno Haible  <bruno@clisp.org>

	xgettext: JavaScript: Parse RegExp literals according to ECMA-262 15th edition.
	Reported by Christian Wasserthal <aperion@fsfe.org> in
	<https://lists.gnu.org/archive/html/bug-gettext/2025-05/msg00038.html>.

	* gettext-tools/src/x-javascript.c (phase5_scan_regexp): Report an error when
	end-of-line is reached. Parse character classes. Recognize more modifier flags.
	* gettext-tools/tests/xgettext-javascript-2: Add two more test cases.
	* NEWS: Mention the change.

2025-05-16  Bruno Haible  <bruno@clisp.org>

	doc: Update, now that autopull.sh does more than a gnulib checkout.
	* autogen.sh: Update comments.
	* HACKING: Improve formatting.

2025-05-11  Bruno Haible  <bruno@clisp.org>

	Refactor: Fix a compiler warning.
	* gettext-tools/src/x-perl.c: Remove a stray ';'.

2025-05-11  Bruno Haible  <bruno@clisp.org>

	Refactor: Fix typo in function name.
	* gettext-tools/src/x-d.c (extract_from_template_instantiation): Renamed from
	extract_from_template_instantation.

2025-05-11  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gettext-tools/src/msgl-iconv.h (convert_string_desc_directly): Change result
	type to rw_string_desc_t.
	* gettext-tools/src/msgl-iconv.c (convert_string_desc_directly): Likewise.
	* gettext-tools/src/its.c (_its_is_valid_simple_gen_xml): Omit casts to
	'char *'. Don't use sd_c_casecmp, sd_cmp as function pointers.
	* gettext-tools/src/xg-encoding.h (string_desc_from_current_source_encoding):
	Change result type to rw_string_desc_t.
	* gettext-tools/src/xg-encoding.c (from_current_source_encoding): Return
	converted result directly, without a cast.
	(string_desc_from_current_source_encoding): Change result type to
	rw_string_desc_t. Return converted result directly, without a cast. Invoke
	sd_readwrite.
	* gettext-tools/src/x-perl.c (get_here_document): Add benign cast.
	(extract_quotelike_pass1, extract_quotelike_pass1_utf8): Change result type to
	rw_string_desc_t.
	(extract_quotelike, extract_triple_quotelike): Update.
	(extract_quotelike_pass3): Add benign casts.
	(interpolate_keywords): Don't call sd_set_char_at on a string_desc_t.
	* gettext-tools/src/x-d.c (handle_comments, is_string_literal,
	string_literal_accumulate_pieces, extract_from_function_call,
	extract_from_function_call_without_args, extract_from_template_instantation,
	extract_from_node): Omit casts to 'char *'.
	* gettext-tools/src/x-go.c (string_literal_accumulate_pieces,
	string_literal_value, scan_import_spec, get_type_from_type_identifier_node,
	get_type_from_type_node, store_type_declaration, get_mvtypes_of_expression,
	store_var_spec, store_const_spec, store_function_declaration,
	augment_for_type_declaration, augment_for_parameter_list, augment_for_var_spec,
	augment_for_const_spec, augment_for_short_variable_declaration, handle_comments,
	extract_from_function_call, extract_from_node): Omit casts to 'char *'.
	* gettext-tools/src/x-rust.c (handle_comments, string_literal_value): Omit casts
	to 'char *'. Add benign casts.
	(extract_from_function_call, extract_from_function_call_like,
	extract_from_node): Omit casts to 'char *'.
	* gettext-tools/src/x-typescript-impl.h (handle_comments,
	sbru_prepend_lone_surrogate): Omit casts to 'char *'.
	(sbru_xprepend_unicode): Add benign casts.
	(string_literal_accumulate_pieces, string_literal_value,
	extract_from_function_call, extract_from_node): Omit casts to 'char *'.

2025-05-11  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2025-05-07  Bruno Haible  <bruno@clisp.org>

	examples: Use infrastructure from gettext version 0.25.
	* gettext-tools/examples/hello-*/configure.ac: Use AM_GNU_GETTEXT_VERSION with
	version 0.25.
	* gettext-tools/examples/hello-c++-kde/configure.in.in: Likewise.

2025-05-07  Bruno Haible  <bruno@clisp.org>

	Update translations from TP.
	* gettext-runtime/po/*.po: Update from TP.
	* gettext-tools/po/*.po: Update from TP.
	* gettext-tools/examples/po/*.po: Update from TP.

2025-05-07  Bruno Haible  <bruno@clisp.org>

	Prepare for 0.25 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.
	* libtextstyle/version.sh: Update VERSION_NUMBER, RELEASE_DATE.
	* gettext-tools/libgettextpo/gettext-po.in.h (LIBGETTEXTPO_VERSION): Bump.
	* gettext-runtime/po/Makefile.in.in: Update Origin.
	* gettext-runtime/intl/Makefile.am (LTV_*): Bump to 12:4:4.
	* libtextstyle/lib/Makefile.am (LTV_*): Bump to 2:5:2.
	* gettext-tools/libgettextpo/Makefile.am (LTV_*): Bump to 5:14:5.
	* gettext-tools/misc/autopoint.in: Likewise. Accept version 0.25.
	* gettext-tools/configure.ac (ARCHIVE_VERSION): Bump to 0.25.

2025-05-07  Bruno Haible  <bruno@clisp.org>

	doc: Clarify how to obtain the various autoconf macros.
	* gettext-tools/doc/gettext.texi (autoconf macros): Suggest to use gettextize or
	autopoint. Discourage autoreconf.

2025-05-07  Bruno Haible  <bruno@clisp.org>

	Update .gitignore.

2025-05-07  Bruno Haible  <bruno@clisp.org>

	Update to a newer gnulib.

2025-05-06  Bruno Haible  <bruno@clisp.org>

	intl-modula2: Try to fix a build failure on macOS.
	* gettext-runtime/intl-modula2/Makefile.am (libintl_m2_la_LDFLAGS): Revert last
	two commits. Instead, use -L and -l options.

2025-05-06  Bruno Haible  <bruno@clisp.org>

	tests: Avoid xgettext-git-1 failure on AIX.
	* gettext-tools/tests/xgettext-git-1: Don't use shell pattern matching with
	braces.

2025-05-05  Bruno Haible  <bruno@clisp.org>

	intl-modula2: Try to fix a build failure on macOS.
	* gettext-runtime/intl-modula2/Makefile.am (libintl_m2_la_LIBADD): Avoid
	automake error.

2025-05-05  Bruno Haible  <bruno@clisp.org>

	intl-modula2: Try to fix a build failure on macOS.
	* gettext-runtime/intl-modula2/Makefile.am (libintl_m2_la_LIBADD): New variable.

2025-05-05  Bruno Haible  <bruno@clisp.org>

	PACKAGING: Revisit intl-d and intl-modula2 packaging.
	* PACKAGING: Suggest packaging libintl_d and libintl_m2 each in a separate
	package.

2025-05-05  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.

2025-05-05  Bruno Haible  <bruno@clisp.org>

	tests: Avoid xgettext-git-1 failure on native Windows.

2025-05-05  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2025-05-05  Bruno Haible  <bruno@clisp.org>

	doc: xgettext: More doc regarding --generated.
	Suggested by Vaclav Slavik <vaclav@slavik.io>
	at <https://savannah.gnu.org/bugs/?66916>.

	* gettext-tools/doc/xgettext.texi: Mention the --generated option in the
	--files-from description.

2025-05-05  Bruno Haible  <bruno@clisp.org>

	doc: Update list of examples.
	* gettext-tools/doc/lang-c.texi: Update the list of examples.
	* gettext-tools/doc/lang-ruby.texi: Mention the hello-ruby example.

2025-05-05  Bruno Haible  <bruno@clisp.org>

	tests: Avoid a lang-modula2 failure.
	* gettext-tools/tests/lang-modula2: Skip the test if gm2 is not working.

2025-05-05  Bruno Haible  <bruno@clisp.org>

	tests: Add a comment regarding a lang-modula2 failure.
	* gettext-tools/tests/lang-modula2: Add comment.

2025-05-05  Bruno Haible  <bruno@clisp.org>

	intl-modula2: Fix a build failure on Ubuntu 22.04.
	* gettext-runtime/configure.ac: Substitute M2SHLIBEXT.
	* gettext-runtime/intl-modula2/Makefile.am (libintl_m2_la_LDFLAGS): Attempt
	harder to find the libm2pim library.

2025-05-05  Bruno Haible  <bruno@clisp.org>

	build: Avoid possible problems due to AC_REQUIRE in if/else branches.
	* gettext-runtime/configure.ac: Use AS_IF when at least one of the if/else
	branches invokes a complicated Autoconf macro.
	* gettext-tools/configure.ac: Likewise.

2025-05-04  Bruno Haible  <bruno@clisp.org>

	Avoid some clang -Wthread-safety-analysis warnings.
	* gettext-tools/src/x-typescript-impl.h (sbru_init): Declare with
	_GL_ATTRIBUTE_ACQUIRE_CAPABILITY.
	(sbru_xdupfree_c): Declare with _GL_ATTRIBUTE_RELEASE_CAPABILITY.

2025-05-04  Bruno Haible  <bruno@clisp.org>

	xgettext: Allow ignoring specific files in the POT-Creation-Date computation.
	Reported by Vaclav Slavik <vaclav@slavik.io>
	at <https://savannah.gnu.org/users/vslavik>.

	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add hashkey-string, set.
	* gettext-tools/src/xgettext.c: Include gl_set.h, gl_xset.h, gl_hash_set.h,
	hashkey-string.h.
	(generated_files): New variables.
	(long_options): New option '--generated'.
	(main): Initialize generated_files. Handle the option '--generated'.
	(usage): Document the option '--generated'.
	(finalize_header): Filter out the generated_files from the file list.
	* gettext-tools/doc/xgettext.texi: Document the option '--generated'.
	* gettext-tools/tests/xgettext-git-1: Test the --generated option.
	* NEWS: Mention the new option.

2025-05-04  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2025-05-04  Bruno Haible  <bruno@clisp.org>

	Update release steps.

2025-05-03  Bruno Haible  <bruno@clisp.org>

	doc: Clarify that the minimum needed GCC version is 4.4.
	Rationale: With GCC version 4.1.2 or 4.2.1, all tree-sitter based extractors
	in xgettext crash at runtime when compiled with optimization. Whereas
	GCC 4.4.7 works fine.

	* DEPENDENCIES: State "GCC 4.4 or newer".

2025-05-03  Bruno Haible  <bruno@clisp.org>

	xgettext: D: Work around a gcc miscompilation bug.
	* gettext-tools/build-aux/tree-sitter-d-optimization-bug.diff: New file.
	* autopull.sh: Apply it.

2025-05-02  Bruno Haible  <bruno@clisp.org>

	Merge from 0.24.x branch: Prepare for 0.24.1 release.
	* gettext-runtime/intl/libgnuintl.in.h (LIBINTL_VERSION): Bump.
	* libtextstyle/version.sh: Update VERSION_NUMBER, RELEASE_DATE.
	* gettext-tools/libgettextpo/gettext-po.in.h (LIBGETTEXTPO_VERSION): Bump.
	* gettext-tools/misc/autopoint.in: Likewise. Accept version 0.24.1.
	* gettext-tools/configure.ac (ARCHIVE_VERSION): Bump to 0.24.1.

2025-05-02  Bruno Haible  <bruno@clisp.org>

	build: Update after recent gettextize fix.
	* gettext-tools/misc/add-to-archive: Look up the *.m4 files in
	$datadir/gettext/m4, not $datadir/aclocal.

2025-05-02  Bruno Haible  <bruno@clisp.org>

	xgettext: Give a hint about --no-git when max_vc_mtime() took more than 10 sec.
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add getrusage.
	* gettext-tools/src/xgettext.c: Include <sys/resource.h>.
	(max_mtime): New function.
	(finalize_header): Invoke it.

2025-05-02  Bruno Haible  <bruno@clisp.org>

	xgettext: Add an option to opt-out of the use of git for the POT-Creation-Date.
	Reported by Serhii Tereshchenko at <https://savannah.gnu.org/bugs/?66865>.

	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add stat-time.
	* gettext-tools/src/xgettext.c: Include stat-time.h.
	(xgettext_no_git): New variable.
	(long_options): Add option '--no-git'.
	(main): Handle the option --no-git.
	(usage): Document the option --no-git.
	(struct accumulator): New type, copied from gnulib/lib/vc-mtime.c.
	(accumulate): New function, copied from gnulib/lib/vc-mtime.c.
	(max_mtime_without_git): New function, based on gnulib/lib/vc-mtime.c.
	(finalize_header): Conditionally invoke max_mtime_without_git instead of
	max_vc_mtime.
	* gettext-tools/doc/xgettext.texi: Document the option --no-git.
	* NEWS: Mention the change.

2025-05-02  Bruno Haible  <bruno@clisp.org>

	tests: Fix test failure with git versions < 2.23.
	* gettext-tools/tests/xgettext-git-1: Use 'git checkout' instead of
	'git restore'.

2025-05-02  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2025-05-02  Bruno Haible  <bruno@clisp.org>

	xgettext: Speed up the computation of the POT-Creation-Date.
	Reported by Serhii Tereshchenko, Arthur, Adam YS, Foucauld Degeorges
	at <https://savannah.gnu.org/bugs/?66865>.

	* gettext-tools/src/xgettext.c (has_some_mtimes, max_of_mtimes, some_mtimes_failed): Remove variables.
	(files_for_vc_mtime): New variable.
	(main): Initialize files_for_vc_mtime. Update files_for_vc_mtime instead of calling consider_vc_mtime.
	(consider_vc_mtime): Remove function.
	(read_exclusion_file, extract_from_file, extract_from_xml_file): Update files_for_vc_mtime instead of calling consider_vc_mtime.
	(finalize_header): Call max_vc_mtime.
	* NEWS: Mention the speedup.

2025-05-02  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2025-05-02  Bruno Haible  <bruno@clisp.org>

	tests: Add a test for xgettext's computation of the POT-Creation-Date.
	* gettext-tools/tests/testdata/repo.tar.gz: New file.
	* gettext-tools/tests/xgettext-git-1: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.
	(EXTRA_DIST): Add testdata/repo.tar.gz.

2025-04-30  Bruno Haible  <bruno@clisp.org>

	build: Take the mem-hash-map module from Gnulib now, part 2.
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add next-prime.
	* gettext-tools/src/write-mo.c: Include next-prime.h.
	* gettext-tools/src/write-qt.c: Likewise.

2025-04-30  Bruno Haible  <bruno@clisp.org>

	build: Take the mem-hash-map module from Gnulib now.
	* gnulib-local/lib/mem-hash-map.h: Remove file.
	* gnulib-local/lib/mem-hash-map.c: Remove file.
	* gnulib-local/modules/mem-hash-map: Remove file.
	* gnulib-local/Makefile.am (EXTRA_DIST): Remove them.

2025-04-30  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.
	* gnulib-local/lib/hash.h.diff: Remove file.
	* gnulib-local/lib/hash.c.diff: Remove file.
	* gnulib-local/Makefile.am (EXTRA_DIST): Remove them.
	* autogen.sh: Avoid module hashcode-string1.

2025-04-29  Bruno Haible  <bruno@clisp.org>

	build: Ignore -Wduplicated-branches warnings.
	* m4/more-warnings.m4 (gt_MORE_WARNINGS): Don't add the -Wduplicated-branches
	option.

2025-04-28  Bruno Haible  <bruno@clisp.org>

	Modula-2: Fix linking of libintl_m2 on non-ELF platforms.
	* gettext-runtime/intl-modula2/Makefile.am (libintl_m2_la_LDFLAGS): Link with
	libm2pim.la.

2025-04-28  Bruno Haible  <bruno@clisp.org>

	tests: Support older GNU Modula-2 compilers.
	* gettext-tools/tests/lang-modula2: Don't use the option -fscaffold-main.

2025-04-25  Bruno Haible  <bruno@clisp.org>

	Modula-2 support: Simplify build system.
	* gettext-runtime/intl-modula2/Makefile.am (nodist_m2include_HEADERS): New
	variable.
	(installdirs-modula2-sources, uninstall-modula2-sources): Remove rules.
	(install-data-local, installdirs-local, uninstall-local): Remove dependencies.

2025-04-25  Bruno Haible  <bruno@clisp.org>

	Modula-2 support: Fix VPATH builds.
	* gettext-runtime/intl-modula2/Makefile.am (install-modula2-sources): Take
	Libintl.def from the build dir, not from the source dir.
	* gettext-tools/tests/lang-modula2: Search for Libintl.def in the build dir,
	not in the source dir.

2025-04-25  Bruno Haible  <bruno@clisp.org>

	examples: Add hello-modula2 example.
	* gettext-tools/examples/hello-modula2/INSTALL: New file.
	* gettext-tools/examples/hello-modula2/autogen.sh: New file.
	* gettext-tools/examples/hello-modula2/autoclean.sh: New file.
	* gettext-tools/examples/hello-modula2/hello.mod.in: New file.
	* gettext-tools/examples/hello-modula2/Makefile.am: New file.
	* gettext-tools/examples/hello-modula2/configure.ac: New file.
	* gettext-tools/examples/hello-modula2/m4/Makefile.am: New file.
	* gettext-tools/examples/hello-modula2/po/LINGUAS: New file.
	* gettext-tools/examples/hello-modula2/po/Makefile.am: New file.
	* gettext-tools/examples/installpaths.in: Define also libdir.
	* gettext-tools/m4/Makefile.am (examplesbuildaux_DATA): Add modula2comp.m4.
	* gettext-tools/examples/Makefile.am (EXAMPLESFILES, EXAMPLESDIRS): Add
	hello-modula2.
	* gettext-tools/examples/po/Makefile.am (POTFILES, SMALLPOTS): Update for
	hello-modula2.
	(hello-modula2.pot): New target.
	(SMALLPOFILES_FOR_lang): Update for hello-modula2.
	($(srcdir)/../hello-modula2/po/$(LL).po): New rule.
	* gettext-tools/examples/check-examples (func_check_autoclean_all,
	func_check_distclean_all, func_check_maintainerclean_all,
	func_check_maintainerclean_vpath_all, func_check_dist_all,
	func_check_dist_vpath_all, func_check_install_all, func_check_uninstall_all,
	func_check_distcheck_all, func_check_all): Handle hello-modula2 as well.
	* gettext-tools/examples/README: Mention hello-modula2.
	* gettext-tools/doc/lang-modula2.texi: Likewise.
	* NEWS: Likewise.

2025-04-25  Bruno Haible  <bruno@clisp.org>

	Modula-2 support: Add a unit test.
	* autogen.sh (GNULIB_MODULES_TOOLS_OTHER): Add modula2, modula2comp-script.
	* gettext-tools/configure.ac: Set and substitute BUILDMODULA2.
	* gettext-tools/tests/init-env.in: Propagate MODULA2_CHOICE, BUILDMODULA2, M2C,
	M2FLAGS.
	* gettext-tools/tests/lang-modula2: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2025-04-25  Bruno Haible  <bruno@clisp.org>

	Modula-2 support: Add Modula-2 support in the tools.
	* gettext-tools/doc/lang-modula2.texi: New file.
	* gettext-tools/doc/Makefile.am (gettext_TEXINFOS): Add it.
	* gettext-tools/doc/gettext.texi (PO Files): Mention modula2-format.
	(No string concatenation): Mention string concatenation in Modula-2.
	(Translators for other Languages): New subsection "Modula-2 Format Strings".
	(List of Programming Languages): Include lang-modula2.texi.
	* gettext-tools/doc/xgettext.texi: Document the -L Modula-2 option.
	* gettext-tools/src/message.h (format_modula2): New enum value.
	(NFORMATS): Increment.
	* gettext-tools/src/message.c (format_language, format_language_pretty): Add an
	entry for format_modula2.
	* gettext-tools/src/format-modula2.c: New file.
	* gettext-tools/src/format.h (formatstring_modula2): New declaration.
	* gettext-tools/src/format.c (formatstring_parsers): Add formatstring_modula2.
	* gettext-tools/src/x-modula2.h: New file.
	* gettext-tools/src/x-modula2.c: New file.
	* gettext-tools/src/xgettext.c: Include x-modula2.h.
	(flag_table_modula2): New variable.
	(main): Invoke init_flag_table_modula2, x_modula2_extract_all,
	x_modula2_keyword.
	(usage): Document the -L Modula-2 option.
	(xgettext_record_flag): Support format_modula2.
	(language_to_extractor, extension_to_language): Support Modula-2.
	* gettext-tools/src/FILES: Mention format-modula2.c, x-modula2.h, x-modula2.c.
	* gettext-tools/src/Makefile.am (noinst_HEADERS): Add x-modula2.h.
	(FORMAT_SOURCE): Add format-modula2.c.
	(xgettext_SOURCES): Add x-modula2.c.
	* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES): Add
	format-modula2.c.
	* gettext-tools/po/POTFILES.in: Add src/format-modula2.c, src/x-modula2.c.
	* gettext-tools/woe32dll/gettextsrc-exports.c: Export formatstring_modula2.
	* gettext-tools/tests/format-modula2-1: New file.
	* gettext-tools/tests/format-modula2-2: New file.
	* gettext-tools/tests/xgettext-modula2-1: New file.
	* gettext-tools/tests/xgettext-modula2-2: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add the new tests.
	* NEWS: Mention the Modula-2 support.

2025-04-25  Bruno Haible  <bruno@clisp.org>

	Modula-2 support: Add the runtime library.
	* gnulib-local/m4/modula2.m4: New file.
	* gnulib-local/modules/modula2: New file.
	* gnulib-local/Makefile.am (EXTRA_DIST): Add modula2.m4 and the 'modula2'
	module.
	* autogen.sh (GNULIB_MODULES_RUNTIME_OTHER): Add modula2, modula2comp-script.
	* gettext-runtime/intl-modula2/Libintl.def.in: New file.
	* gettext-runtime/intl-modula2/Libintl.mod: New file.
	* gettext-runtime/intl-modula2/LibintlFromC.def: New file.
	* gettext-runtime/intl-modula2/Makefile.am: New file.
	* gettext-runtime/intl-modula2/HACKING: New file.
	* gettext-runtime/configure.ac: Invoke gt_MODULA2_CHOICE, gt_MODULA2COMP.
	Determine VALUE_OF_LC_* for each LC_* constant. Set the variable BUILDMODULA2
	and the Automake conditional BUILD_MODULA2.
	* gettext-runtime/Makefile.am (SUBDIRS): Add intl-modula2.
	* NEWS: Mention libintl_m2.so.
	* gettext-runtime/NEWS: Likewise.
	* PACKAGING: Add the interface and binary for the libintl_m2 library.
	* DEPENDENCIES: Mention the Modula-2 compiler and runtime.

2025-04-25  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2025-04-25  Bruno Haible  <bruno@clisp.org>

	examples: Fix the D example.
	* gettext-tools/Makefile.am (examplesbuildaux_DATA): Add dcomp.sh.in.
	* gettext-tools/m4/Makefile.am (examplesbuildaux_DATA): Add dcomp.m4.

2025-04-25  Bruno Haible  <bruno@clisp.org>

	examples: Fix the Go examples.
	* gettext-tools/Makefile.am (examplesbuildaux_DATA): Add gocomp.sh.in.
	* gettext-tools/m4/Makefile.am (examplesbuildaux_DATA): Add gocomp.m4.

2025-04-25  Bruno Haible  <bruno@clisp.org>

	examples: Fix the C# examples.
	* gettext-tools/m4/Makefile.am (examplesbuildaux_DATA): Add csharp.m4.

2025-04-25  Bruno Haible  <bruno@clisp.org>

	examples: Fix reference to examples/build-aux/ directory (regr. 2005-03-22).
	* gettext-tools/examples/installpaths.in (EXAMPLESCONFIGDIR): Correct value.

2025-04-25  Bruno Haible  <bruno@clisp.org>

	tests: Fix the lang-d test.
	* gettext-tools/tests/lang-d: Reencode in ISO-8859-1 encoding.

2025-04-24  Bruno Haible  <bruno@clisp.org>

	intl: Export libintl_{new,dup,free}locale from libintl.so on OpenBSD.
	Reported by Christian Weisgerber <naddy@mips.inka.de>.

	* gnulib-local/lib/getlocalename_l-unsafe.c.diff: New file.
	* gnulib-local/Makefile.am (EXTRA_DIST): Add it.
	* gettext-runtime/intl/configure.ac (rpl_newlocale, rpl_duplocale,
	rpl_freelocale): Redirect to symbols prefixed with 'libintl_', not '_libintl_'.
	* gettext-runtime/intl/Makefile.am (BUILT_SOURCES): Add libgnuintl.h.

2025-04-24  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2025-04-23  Bruno Haible  <bruno@clisp.org>

	xgettext: D: Allow comments between the parts of concatenated string literals.
	* gettext-tools/src/x-d.c (is_add_expression_with_tilde): New function.
	(is_string_literal, string_literal_accumulate_pieces): Use it.
	* gettext-tools/tests/xgettext-d-2: Add another test case regarding string
	concatenation.

2025-04-23  Bruno Haible  <bruno@clisp.org>

	xgettext: Go: More unit tests.
	* gettext-tools/tests/xgettext-go-6: Add more test cases regarding string
	concatenation.

2025-04-23  Bruno Haible  <bruno@clisp.org>

	Refactor: Make format-lua.c more similar to format-elisp.c.
	* gettext-tools/src/format-lua.c (format_parse): Allocate the final spec on the
	heap only once parsing was successful.

2025-04-22  Bruno Haible  <bruno@clisp.org>

	build: Simplify.
	* gettext-runtime/configure.ac: Don't test whether setlocale exists.

2025-04-16  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gitsub.sh: Update from gnulib.

2025-04-15  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* libtextstyle/autogen.sh: Don't avoid module 'locale-h'. vasnprintf now needs
	localeconv, and localeconv depends on locale-h.

2025-04-15  Bruno Haible  <bruno@clisp.org>

	build: Simplify D configuration-time support.
	* gettext-runtime/configure.ac: Don't search for the D compiler a second time
	(already done by gt_DCOMP).
	* gettext-tools/configure.ac: Likewise.

2025-04-02  Bruno Haible  <bruno@clisp.org>

	build: Simplify last commit.
	* gettext-tools/src/Makefile.am (LIBXGETTEXTX): Remove variable.

2025-04-02  Bruno Haible  <bruno@clisp.org>

	build: Make it possible to compile x-go.c with GCC 11 in 1 GB of RAM.
	* gettext-tools/src/Makefile.am (LIBXGETTEXTX, libxgettextx_a_SOURCES,
	libxgettextx_a_CPPFLAGS, libxgettextx_a_CFLAGS): New variables.
	(xgettext_SOURCES): Remove x-go.c.
	(noinst_LIBRARIES, xgettext_LDADD, xgettext_DEPENDENCIES): Add $(LIBXGETTEXTX).

2025-04-02  Bruno Haible  <bruno@clisp.org>

	build: Make it possible to compile tree-sitter with GCC 11 in 1 GB of RAM.
	* gettext-tools/src/Makefile.am (libxgettextts1_a_CFLAGS,
	libxgettextts2_a_CFLAGS, libxgettextts3_a_CFLAGS, libxgettextts4_a_CFLAGS): New
	variables.

2025-04-02  Bruno Haible  <bruno@clisp.org>

	gettextize: Fix last commit.
	* gettext-tools/m4/Makefile.am (OLD_M4_FILES): New variable.
	(uninstall-macros): Delete only these files from @aclocaldir@.

2025-04-02  Bruno Haible  <bruno@clisp.org>

	gettextize: Fix bad interactions between autoreconf and autopoint.
	Reported by Sebastian Pipping <sebastian@pipping.org>
	in <https://savannah.gnu.org/bugs/index.php?66968>.

	* gettext-tools/m4/Makefile.am (aclocaldir): Remove variable.
	(pkgdatadir, macrosdir): Add variables.
	(macros_DATA): Renamed from aclocal_DATA.
	(install-data-local, uninstall-local, uninstall-macros): New targets.
	* gettext-tools/misc/gettextize.in: Copy the *.m4 files from
	$datadir/gettext/m4, not from $datadir/aclocal.
	* gettext-tools/doc/gettext.texi (aclocal): Don't recommend to add option
	--install to ACLOCAL_MFLAGS. Instead, recommend one-time use of --system-acdir.
	* PACKAGING: Expect *.m4 files in $prefix/share/gettext/m4, not in
	$prefix/share/aclocal.
	* NEWS: Mention the fix.

2025-04-02  Bruno Haible  <bruno@clisp.org>

	examples: Add hello-d example.
	* gettext-tools/examples/hello-d/INSTALL: New file.
	* gettext-tools/examples/hello-d/autogen.sh: New file.
	* gettext-tools/examples/hello-d/autoclean.sh: New file.
	* gettext-tools/examples/hello-d/hello.d.in: New file.
	* gettext-tools/examples/hello-d/Makefile.am: New file.
	* gettext-tools/examples/hello-d/configure.ac: New file.
	* gettext-tools/examples/hello-d/m4/Makefile.am: New file.
	* gettext-tools/examples/hello-d/po/LINGUAS: New file.
	* gettext-tools/examples/hello-d/po/Makefile.am: New file.
	* gettext-tools/examples/installpaths.in: Define also includedir.
	* gettext-tools/examples/Makefile.am (EXAMPLESFILES, EXAMPLESDIRS): Add hello-d.
	* gettext-tools/examples/po/Makefile.am (POTFILES, SMALLPOTS): Update for hello-d.
	(hello-d.pot): New target.
	(SMALLPOFILES_FOR_lang): Update for hello-d.
	($(srcdir)/../hello-d/po/$(LL).po): New rule.
	* gettext-tools/examples/check-examples (func_check_autoclean_all,
	func_check_distclean_all, func_check_maintainerclean_all,
	func_check_maintainerclean_vpath_all, func_check_dist_all,
	func_check_dist_vpath_all, func_check_install_all, func_check_uninstall_all,
	func_check_distcheck_all, func_check_all): Handle hello-d as well.
	* gettext-tools/examples/README: Mention hello-d.
	* gettext-tools/doc/lang-d.texi: Likewise.
	* NEWS: Likewise.

2025-04-01  Bruno Haible  <bruno@clisp.org>

	D support: Add a unit test.
	* autogen.sh (GNULIB_MODULES_TOOLS_OTHER): Add d, dcomp-script.
	* gettext-tools/configure.ac: Set and substitute BUILDD.
	* gettext-tools/tests/init-env.in: Propagate D_CHOICE, BUILDD.
	* gettext-tools/tests/lang-d: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2025-04-01  Bruno Haible  <bruno@clisp.org>

	D support: Add D support in the tools.
	* autopull.sh: Check out tree-sitter-d. Set TREE_SITTER_D_VERSION.
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add unistr/u16-check,
	unistr/u16-to-u8, unistr/u32-check, unistr/u32-to-u8.
	* gettext-tools/build-aux/tree-sitter-d-portability.diff: New file.
	* gettext-tools/configure.ac: Set TREE_SITTER_D_VERSION.
	* gettext-tools/Makefile.am (EXTRA_DIST): Add the tree-sitter-d source code and
	patch.
	* gettext-tools/doc/lang-d.texi: New file.
	* gettext-tools/doc/Makefile.am (gettext_TEXINFOS): Add it.
	* gettext-tools/doc/gettext.texi (PO Files): Mention d-format.
	(No string concatenation): Mention string concatenation and string interpolation
	in D.
	(Translators for other Languages): New subsection "D Format Strings".
	(List of Programming Languages): Include lang-d.texi.
	* gettext-tools/doc/xgettext.texi: Document the -L D option.
	* gettext-tools/src/message.h (format_d): New enum value.
	(NFORMATS): Increment.
	* gettext-tools/src/message.c (format_language, format_language_pretty): Add an
	entry for format_d.
	* gettext-tools/src/format-d.c: New file, based on
	gettext-tools/src/format-lisp.c.
	* gettext-tools/src/format.h (formatstring_d): New declaration.
	* gettext-tools/src/format.c (formatstring_parsers): Add formatstring_d.
	* gettext-tools/src/x-d.h: New file.
	* gettext-tools/src/x-d.c: New file, based on gettext-tools/src/x-rust.c and
	gettext-tools/src/x-go.c.
	* gettext-tools/src/html5-entities.h: New file.
	* gettext-tools/src/xgettext.c: Include x-d.h.
	(flag_table_d): New variable.
	(main): Invoke init_flag_table_d, x_d_extract_all, x_d_keyword.
	(usage): Document the -L D option.
	(xgettext_record_flag): Support format_d.
	(language_to_extractor, extension_to_language): Support D.
	* gettext-tools/src/xg-message.c (decide_is_format, remember_a_message_plural):
	Add better heuristic for c-format and d-format.
	* gettext-tools/src/FILES: Mention format-d.c, x-d.h, x-d.c, html5-entities.h.
	* gettext-tools/src/Makefile.am (noinst_HEADERS): Add x-d.h, html5-entities.h.
	(FORMAT_SOURCE): Add format-d.c.
	(libxgettextts2_a_SOURCES): Add d-parser.c, d-scanner.c.
	(xgettext_SOURCES): Add x-d.c.
	* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES): Add
	format-d.c.
	* gettext-tools/po/POTFILES.in: Add src/format-d.c, src/x-d.c.
	* gettext-tools/woe32dll/gettextsrc-exports.c: Export formatstring_d.
	* gettext-tools/tests/format-d-1: New file.
	* gettext-tools/tests/format-d-2: New file.
	* gettext-tools/tests/xgettext-d-1: New file.
	* gettext-tools/tests/xgettext-d-2: New file.
	* gettext-tools/tests/xgettext-d-3: New file.
	* gettext-tools/tests/xgettext-d-4: New file.
	* gettext-tools/tests/xgettext-d-5: New file, based on
	gettext-tools/tests/xgettext-rust-5.
	* gettext-tools/tests/xgettext-d-6: New file, based on
	gettext-tools/tests/xgettext-rust-7.
	* gettext-tools/tests/testdata/dprog.utf-8.d: New file.
	* gettext-tools/tests/testdata/dprog.utf-8+bom.d: New file, based on
	gettext-tools/tests/testdata/dprog.utf-8.d.
	* gettext-tools/tests/testdata/dprog.utf-16be.d: New file, based on
	gettext-tools/tests/testdata/dprog.utf-8.d.
	* gettext-tools/tests/testdata/dprog.utf-16le.d: New file, based on
	gettext-tools/tests/testdata/dprog.utf-8.d.
	* gettext-tools/tests/testdata/dprog.utf-32be.d: New file, based on
	gettext-tools/tests/testdata/dprog.utf-8.d.
	* gettext-tools/tests/testdata/dprog.utf-32le.d: New file, based on
	gettext-tools/tests/testdata/dprog.utf-8.d.
	* gettext-tools/tests/Makefile.am (TESTS): Add the new tests.
	(EXTRA_DIST): Add the new testdata files.
	* NEWS: Mention the D support.

2025-04-01  Bruno Haible  <bruno@clisp.org>

	D support: Add the runtime library.
	* gnulib-local/m4/d.m4: New file.
	* gnulib-local/modules/d: New file.
	* gnulib-local/Makefile.am (EXTRA_DIST): Add d.m4 and the 'd' module.
	* autogen.sh (GNULIB_MODULES_RUNTIME_OTHER): Add d, dcomp-script.
	* gettext-runtime/intl-d/Makefile.am: New file.
	* gettext-runtime/intl-d/gnu/libintl/package.d: New file.
	* gettext-runtime/intl-d/gnu/libintl/libintl.d: New file.
	* gettext-runtime/intl-d/gnu/libintl/internal/low.d: New file.
	* gettext-runtime/configure.ac: Invoke gt_D_CHOICE, gt_DCOMP. Set the variable
	BUILDD and the Automake conditional BUILD_D.
	* gettext-runtime/Makefile.am (SUBDIRS): Add intl-d.
	* NEWS: Mention libintl_d.a.
	* gettext-runtime/NEWS: Likewise.
	* PACKAGING: Add the sources and binary for the libintl_d library.
	* DEPENDENCIES: Mention the D compiler and runtime.

2025-04-01  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2025-03-27  Bruno Haible  <bruno@clisp.org>

	Objective-C: xgettext: Strengthen tests.
	* gettext-tools/tests/xgettext-objc-1: Add test cases with format strings.

2025-03-25  Bruno Haible  <bruno@clisp.org>

	doc: Small updates.
	Reported by Michael Chirico <michaelchirico4@gmail.com>.

	* gettext-tools/doc/gettext.texi (The LANGUAGE variable): Rephrase
	recommendation for Norwegian users.
	(Header Entry): Remove statement about old versions of Emacs.

2025-03-23  Bruno Haible  <bruno@clisp.org>

	Refactor: Use more of c-ctype.h.
	* gettext-tools/src/format-awk.c (isdigit): Remove macro.
	(format_parse): Use c_isdigit instead.
	* gettext-tools/src/format-boost.c (isdigit): Remove macro.
	(format_parse): Use c_isdigit instead.
	* gettext-tools/src/format-c-parse.h (isdigit): Remove macro.
	(format_parse_entrails): Use c_isdigit instead.
	* gettext-tools/src/format-c++-brace.c (isdigit): Remove macro.
	(format_parse): Use c_isdigit instead.
	* gettext-tools/src/format-elisp.c (isdigit): Remove macro.
	(format_parse): Use c_isdigit instead.
	* gettext-tools/src/format-gcc-internal.c (isdigit): Remove macro.
	(format_parse): Use c_isdigit instead.
	* gettext-tools/src/format-gfc-internal.c (isdigit): Remove macro.
	(format_parse): Use c_isdigit instead.
	* gettext-tools/src/format-go.c (isdigit): Remove macro.
	(format_parse): Use c_isdigit instead.
	* gettext-tools/src/format-java-printf.c (isdigit): Remove macro.
	(format_parse): Use c_isdigit instead.
	* gettext-tools/src/format-javascript.c (isdigit): Remove macro.
	(format_parse): Use c_isdigit instead.
	* gettext-tools/src/format-librep.c (isdigit): Remove macro.
	(format_parse): Use c_isdigit instead.
	* gettext-tools/src/format-lua.c (isdigit): Remove macro.
	(format_parse): Use c_isdigit instead.
	* gettext-tools/src/format-pascal.c (isdigit): Remove macro.
	(format_parse): Use c_isdigit instead.
	* gettext-tools/src/format-perl.c (isdigit): Remove macro.
	(c_isnonzerodigit): Renamed from isnonzerodigit.
	(format_parse): Use c_isdigit instead of isdigit.
	* gettext-tools/src/format-php.c (isdigit): Remove macro.
	(format_parse): Use c_isdigit instead.
	* gettext-tools/src/format-python.c (isdigit): Remove macro.
	(format_parse): Use c_isdigit instead.
	* gettext-tools/src/format-ruby.c (isdigit): Remove macro.
	(format_parse): Use c_isdigit instead.
	* gettext-tools/src/format-tcl.c (isdigit): Remove macro.
	(format_parse): Use c_isdigit instead.

2025-03-23  Bruno Haible  <bruno@clisp.org>

	Comment cleanup.
	* gettext-tools/src/format-rust.c: Remove obsolete comment.

2025-03-22  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gettext-runtime/intl/setlocale.c: Include setlocale-fixes.h instead of
	setlocale-messages.h.
	(setlocale_unixlike) [__ANDROID__]: Use setlocale_fixed instead of setlocale.
	(setlocale_improved): On Android, use setlocale_fixed_null instead of setlocale.

2025-03-22  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2025-03-21  Bruno Haible  <bruno@clisp.org>

	Avoid bit rot of unused code.
	* gettext-tools/src/format-lisp.c: Include attribute.h.
	(intersection): Mark with MAYBE_UNUSED instead of '#ifdef unused'.
	* gettext-tools/src/format-scheme.c (intersection): Likewise.
	* gettext-tools/src/x-csharp.c (phase5_ungetc): Likewise.
	* gettext-tools/src/x-php.c (phase3_ungetc): Likewise.

2025-03-21  Bruno Haible  <bruno@clisp.org>

	Simplify strtoul() invocation.
	* gnulib-local/lib/markup.c: Don't include <errno.h>.
	(unescape_string_inplace): Don't reset or test errno.

2025-03-21  Bruno Haible  <bruno@clisp.org>

	Work around an strtoul() misfeature.
	* gettext-runtime/src/ngettext.c: Include <ctype.h>.
	(main): When parsing a nonnegative number, disallow leading whitespace and sign.
	* gettext-tools/tests/tstngettext.c: Include <ctype.h>.
	(worker_thread): When parsing a nonnegative number, disallow leading whitespace
	and sign.
	* gnulib-local/lib/markup.c (unescape_string_inplace): When parsing a numeric
	character entity, disallow leading whitespace and sign, and report a too large
	number as "non-permitted character" rather than "Numerical result out of range".
	* gettext-tools/src/msgfmt.c (main): When parsing the '-a' argument, disallow
	leading whitespace and sign and check whether the value is a power of 2.
	* gettext-tools/src/read-stringtable.c: Include c-ctype.h.
	(comment_line_end): When parsing a line number, disallow leading whitespace and
	sign.

2025-03-20  Bruno Haible  <bruno@clisp.org>

	Refactor.
	* gettext-tools/src/x-rust.c (ts_language_symbol, ts_language_field): Follow GNU
	coding style.
	* gettext-tools/src/x-go.c (ts_language_symbol, ts_language_field): Likewise.
	* gettext-tools/src/x-typescript-impl.h (ts_language_symbol, ts_language_field):
	Likewise.

2025-03-20  Bruno Haible  <bruno@clisp.org>

	Makevars template: Fix small mistake.
	* gettext-tools/po/Makevars.template: Correct statement about copyright.
	* gettext-runtime/po/Makevars: Likewise.
	* gettext-tools/po/Makevars: Likewise.
	* gettext-tools/examples/po/Makefile.am: Likewise.
	* gettext-tools/examples/hello-*/po/Makevars: Likewise.
	* gettext-tools/examples/hello-*/po/Makefile.am: Likewise.
	* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile: Likewise.

2025-03-20  Bruno Haible  <bruno@clisp.org>

	doc: Fix small mistake.
	* gettext-tools/doc/xgettext.texi: Correct statement about copyright.

2025-03-11  Bruno Haible  <bruno@clisp.org>

	doc: Mention strings with embedded expressions in TypeScript.
	* gettext-tools/doc/gettext.texi (No string concatenation): Mention
	"template literals" in TypeScript.

2025-03-11  Bruno Haible  <bruno@clisp.org>

	Add TypeScript support.
	* autopull.sh: Check out tree-sitter-typescript. Set
	TREE_SITTER_TYPESCRIPT_VERSION.
	* gettext-tools/build-aux/tree-sitter-typescript-portability.diff: New file.
	* gettext-tools/configure.ac: Set TREE_SITTER_TYPESCRIPT_VERSION.
	* gettext-tools/Makefile.am (EXTRA_DIST): Add the tree-sitter-typescript source
	code and patch.
	* gettext-tools/doc/lang-typescript.texi: New file.
	* gettext-tools/doc/Makefile.am (gettext_TEXINFOS): Add it.
	* gettext-tools/doc/gettext.texi (No string concatenation): Mention string
	concatenation in TypeScript.
	(List of Programming Languages): Include lang-typescript.texi.
	* gettext-tools/doc/xgettext.texi: Document the -L TypeScript and -L TSX
	options.
	* gettext-tools/src/x-typescript-impl.h: New file.
	* gettext-tools/src/x-typescript.h: New file.
	* gettext-tools/src/x-typescript.c: New file.
	* gettext-tools/src/x-typescriptx.h: New file.
	* gettext-tools/src/x-typescriptx.c: New file.
	* gettext-tools/src/xgettext.c: Include x-typescript.h, x-typescriptx.h.
	(flag_table_typescript, flag_table_typescriptx): New variables.
	(main): Invoke init_flag_table_typescript, init_flag_table_typescriptx,
	x_typescript_extract_all, x_typescriptx_extract_all, x_typescript_keyword,
	x_typescriptx_keyword.
	(usage): Document the -L TypeScript and -L TSX options.
	(xgettext_record_flag): Support format_javascript with TypeScript and TSX.
	(language_to_extractor, extension_to_language): Support TypeScript and TSX.
	* gettext-tools/src/FILES: Mention x-typescript.h, x-typescript.c,
	x-typescriptx.h, x-typescriptx.c, x-typescript-impl.h.
	* gettext-tools/src/Makefile.am (noinst_LIBRARIES): Reference LIBXGETTEXTTS.
	(noinst_HEADERS): Add x-typescript.h, x-typescriptx.h, x-typescript-impl.h.
	(LIBXGETTEXTTS): Add libxgettextts3.a, libxgettextts4.a.
	(libxgettextts3_a_SOURCES, libxgettextts3_a_CPPFLAGS): New variables.
	(libxgettextts4_a_SOURCES, libxgettextts4_a_CPPFLAGS): New variables.
	(xgettext_SOURCES): Add x-typescript.c, x-typescriptx.c.
	* gettext-tools/tests/xgettext-javascript-6: Improve comments.
	* gettext-tools/tests/xgettext-typescript-1: New file, based on
	gettext-tools/tests/xgettext-javascript-1.
	* gettext-tools/tests/xgettext-typescript-2: New file, based on
	gettext-tools/tests/xgettext-javascript-2.
	* gettext-tools/tests/xgettext-typescript-3: New file, based on
	gettext-tools/tests/xgettext-javascript-3.
	* gettext-tools/tests/xgettext-typescript-4: New file, based on
	gettext-tools/tests/xgettext-javascript-4.
	* gettext-tools/tests/xgettext-typescript-5: New file, based on
	gettext-tools/tests/xgettext-javascript-5.
	* gettext-tools/tests/xgettext-typescript-6: New file, based on
	gettext-tools/tests/xgettext-javascript-6.
	* gettext-tools/tests/xgettext-typescript-7: New file, based on
	gettext-tools/tests/xgettext-javascript-7.
	* gettext-tools/tests/Makefile.am (TESTS): Add the new tests.
	* NEWS: Mention the TypeScript support.

2025-03-11  Bruno Haible  <bruno@clisp.org>

	xgettext: Go: Refactor.
	* gettext-tools/src/x-go.c (handle_comments): Remove 'contents' parameter.
	(extract_from_function_call, extract_from_node): Update.

2025-03-10  Bruno Haible  <bruno@clisp.org>

	examples: Fix "make install".
	* gettext-tools/examples/Makefile.am (EXAMPLESFILES): Match actual file list.

2025-03-09  Bruno Haible  <bruno@clisp.org>

	xgettext: Rust: Refactor, part 2.
	* gettext-tools/src/x-rust.c (handle_comments, string_literal_value): Remove
	'contents' parameter.
	(extract_from_function_call, extract_from_function_call_like,
	extract_from_node): Update.

2025-03-09  Bruno Haible  <bruno@clisp.org>

	Fix a comment.
	* gettext-tools/src/x-javascript.h: Fix typo in comment.

2025-03-08  Bruno Haible  <bruno@clisp.org>

	examples: Add hello-go-http example.
	* gettext-tools/examples/hello-go-http/INSTALL: New file.
	* gettext-tools/examples/hello-go-http/autogen.sh: New file.
	* gettext-tools/examples/hello-go-http/autoclean.sh: New file.
	* gettext-tools/examples/hello-go-http/example1/hello1ml.go.in: New file.
	* gettext-tools/examples/hello-go-http/example1/go.mod.in: New file.
	* gettext-tools/examples/hello-go-http/example1/Makefile.am: New file.
	* gettext-tools/examples/hello-go-http/Makefile.am: New file.
	* gettext-tools/examples/hello-go-http/configure.ac: New file.
	* gettext-tools/examples/hello-go-http/m4/Makefile.am: New file.
	* gettext-tools/examples/hello-go-http/po/LINGUAS: New file.
	* gettext-tools/examples/hello-go-http/po/Makefile.am: New file.
	* gettext-tools/examples/Makefile.am (EXAMPLESFILES, EXAMPLESDIRS): Add
	hello-go-http.
	* gettext-tools/examples/po/Makefile.am (POTFILES, SMALLPOTS): Update for
	hello-go-http.
	(hello-go-http.pot): New target.
	(SMALLPOFILES_FOR_lang): Update for hello-go-http.
	($(srcdir)/../hello-go-http/po/$(LL).po): New rule.
	* gettext-tools/examples/check-examples (func_check_autoclean_all,
	func_check_distclean_all, func_check_maintainerclean_all,
	func_check_maintainerclean_vpath_all, func_check_dist_all,
	func_check_dist_vpath_all, func_check_install_all, func_check_uninstall_all,
	func_check_distcheck_all, func_check_all): Handle hello-go-http as well.
	* gettext-tools/examples/README: Mention hello-go-http.
	* gettext-tools/doc/lang-go.texi: Likewise.
	* NEWS: Likewise.

2025-03-08  Bruno Haible  <bruno@clisp.org>

	examples: Add hello-go example.
	* gettext-tools/examples/hello-go/INSTALL: New file.
	* gettext-tools/examples/hello-go/autogen.sh: New file.
	* gettext-tools/examples/hello-go/autoclean.sh: New file.
	* gettext-tools/examples/hello-go/example1/hello1sl.go.in: New file.
	* gettext-tools/examples/hello-go/example1/hello1ml.go.in: New file.
	* gettext-tools/examples/hello-go/example1/go.mod.in: New file.
	* gettext-tools/examples/hello-go/example1/Makefile.am: New file.
	* gettext-tools/examples/hello-go/example2/hello2sl.go.in: New file.
	* gettext-tools/examples/hello-go/example2/go.mod.in: New file.
	* gettext-tools/examples/hello-go/example2/Makefile.am: New file.
	* gettext-tools/examples/hello-go/example3/hello3ml.go.in: New file.
	* gettext-tools/examples/hello-go/example3/go.mod.in: New file.
	* gettext-tools/examples/hello-go/example3/Makefile.am: New file.
	* gettext-tools/examples/hello-go/Makefile.am: New file.
	* gettext-tools/examples/hello-go/configure.ac: New file.
	* gettext-tools/examples/hello-go/m4/Makefile.am: New file.
	* gettext-tools/examples/hello-go/po/LINGUAS: New file.
	* gettext-tools/examples/hello-go/po/Makefile.am: New file.
	* gettext-tools/examples/Makefile.am (EXAMPLESFILES, EXAMPLESDIRS): Add
	hello-go.
	* gettext-tools/examples/po/Makefile.am (POTFILES, SMALLPOTS): Update for
	hello-go.
	(hello-go.pot): New target.
	(SMALLPOFILES_FOR_lang): Update for hello-go.
	($(srcdir)/../hello-go/po/$(LL).po): New rule.
	* gettext-tools/examples/check-examples (func_check_autoclean_all,
	func_check_distclean_all, func_check_maintainerclean_all,
	func_check_maintainerclean_vpath_all, func_check_dist_all,
	func_check_dist_vpath_all, func_check_install_all, func_check_uninstall_all,
	func_check_distcheck_all, func_check_all): Handle hello-go as well.
	* gettext-tools/examples/README: Mention hello-go.
	* gettext-tools/doc/lang-go.texi: Likewise.
	* NEWS: Likewise.

2025-03-07  Bruno Haible  <bruno@clisp.org>

	tests: Fix autopoint-3 test failure on macOS.
	* gettext-tools/tests/autopoint-3 (MAKE): Set to 'gmake' only if gmake exists.

2025-03-07  Bruno Haible  <bruno@clisp.org>

	Go: Add integration test.
	* autogen.sh (GNULIB_MODULES_RUNTIME_FOR_SRC): Add gocomp-script.
	* gettext-tools/tests/init-env.in (GO_CHOICE, GO): New variables.
	* gettext-tools/tests/lang-go: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.
	* HACKING: Document dependencies for lang-go.

2025-03-07  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2025-03-07  Bruno Haible  <bruno@clisp.org>

	tests: Fix autopoint-3 test failure on Solaris 11.
	* gettext-tools/tests/autopoint-3 (MAKE): Set to 'gmake' on macOS, Solaris, AIX.

2025-03-07  Bruno Haible  <bruno@clisp.org>

	Add Go support.
	* autopull.sh: Check out tree-sitter-go. Set TREE_SITTER_GO_VERSION.
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add carray-list, hash-map,
	hash-set, xlist, xmap, xset, xstring-buffer-reversed.
	* gettext-tools/build-aux/tree-sitter-go-portability.diff: New file.
	* gettext-tools/configure.ac: Set TREE_SITTER_GO_VERSION.
	* gettext-tools/Makefile.am (EXTRA_DIST): Add the tree-sitter-go source code and
	patch.
	* gettext-tools/doc/lang-go.texi: New file.
	* gettext-tools/doc/Makefile.am (gettext_TEXINFOS): Add it.
	* gettext-tools/doc/gettext.texi (PO Files): Mention go-format.
	(No string concatenation): Mention string concatenation in Go.
	(Translators for other Languages): New subsection "Go Format Strings".
	(List of Programming Languages): Include lang-go.texi.
	* gettext-tools/doc/xgettext.texi: Document the -L Go option.
	* gettext-tools/src/message.h (format_go): New enum value.
	(NFORMATS): Increment.
	* gettext-tools/src/message.c (format_language, format_language_pretty): Add an
	entry for format_go.
	* gettext-tools/src/format-go.c: New file.
	* gettext-tools/src/format.h (formatstring_go): New declaration.
	* gettext-tools/src/format.c (formatstring_parsers): Add formatstring_go.
	* gettext-tools/src/x-go.h: New file.
	* gettext-tools/src/x-go.c: New file.
	* gettext-tools/src/xgettext.c: Include x-go.h.
	(flag_table_go): New variable.
	(main): Invoke init_flag_table_go, x_go_extract_all, x_go_keyword.
	(usage): Document the -L Go option.
	(xgettext_record_flag): Support format_go.
	(language_to_extractor, extension_to_language): Support Go.
	* gettext-tools/src/FILES: Mention format-go.c, x-go.h, x-go.c.
	* gettext-tools/src/Makefile.am (noinst_HEADERS): Add x-go.h.
	(FORMAT_SOURCE): Add format-go.c.
	(libxgettextts2_a_SOURCES): Add go-parser.c.
	(xgettext_SOURCES): Add x-go.c.
	* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES): Add
	format-go.c.
	* gettext-tools/woe32dll/gettextsrc-exports.c: Export formatstring_go.
	* gettext-tools/tests/format-go-1: New file.
	* gettext-tools/tests/format-go-2: New file.
	* gettext-tools/tests/xgettext-go-1: New file.
	* gettext-tools/tests/xgettext-go-2: New file.
	* gettext-tools/tests/xgettext-go-3: New file.
	* gettext-tools/tests/xgettext-go-4: New file.
	* gettext-tools/tests/xgettext-go-5: New file.
	* gettext-tools/tests/xgettext-go-6: New file.
	* gettext-tools/tests/xgettext-go-7: New file.
	* gettext-tools/tests/xgettext-go-8: New file.
	* gettext-tools/tests/xgettext-go-9: New file.
	* gettext-tools/tests/xgettext-go-10: New file.
	* gettext-tools/tests/xgettext-go-11: New file.
	* gettext-tools/tests/xgettext-go-12: New file.
	* gettext-tools/tests/xgettext-go-13: New file.
	* gettext-tools/tests/xgettext-go-14: New file.
	* gettext-tools/tests/xgettext-go-15: New file.
	* gettext-tools/tests/xgettext-go-16: New file.
	* gettext-tools/tests/xgettext-go-17: New file.
	* gettext-tools/tests/xgettext-go-18: New file.
	* gettext-tools/tests/xgettext-go-stackovfl-1: New file.
	* gettext-tools/tests/xgettext-go-stackovfl-2: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add the new tests.
	* NEWS: Mention the Go support.

2025-03-04  Bruno Haible  <bruno@clisp.org>

	tests: Rust: Small fix.
	* gettext-tools/tests/xgettext-rust-7: Fix a typo.

2025-03-04  Bruno Haible  <bruno@clisp.org>

	tests: Prefer 'cat <<\EOF' to 'cat <<EOF' whenever possible.
	Rationale: Not interpreting $ and \ in the here documents is a better default
	than interpreting them.

	* gettext-tools/tests/xgettext-*: Write 'cat <<\EOF' instead of 'cat <<EOF',
	when no shell dollar-substitution and backslash-interpretation is needed.

2025-03-01  Bruno Haible  <bruno@clisp.org>

	build: Improve wording in './configure --help'.
	Reported by Benno Schulenberg <bensberg@telfort.nl> in
	<https://lists.gnu.org/archive/html/bug-gettext/2025-03/msg00000.html>.

	* configure.ac: Use a dummy version number named 'package', not 'dummy'.
	* gettext-runtime/configure.ac: Likewise.
	* gettext-runtime/intl/configure.ac: Likewise.
	* gettext-tools/configure.ac: Likewise.
	* gettext-tools/examples/configure.ac: Likewise.
	* libtextstyle/configure.ac: Likewise.

2025-02-25  Bruno Haible  <bruno@clisp.org>

	examples: Use #| (previous) lines in the PO files.
	* gettext-tools/examples/po/Makefile.am ($(POFILES), update-po): Pass --lang and
	--previous options to msgmerge.

2025-02-25  Bruno Haible  <bruno@clisp.org>

	examples: Use infrastructure from gettext version 0.24.
	* gettext-tools/examples/hello-*/configure.ac: Use AM_GNU_GETTEXT_VERSION with
	version 0.24.
	* gettext-tools/examples/hello-c++-kde/configure.in.in: Likewise.

2025-02-25  Bruno Haible  <bruno@clisp.org>

	examples: Make hello-rust pass the check.
	* gettext-tools/examples/check-examples (func_check_dist): Ignore the
	till-present 'target' directory in hello-rust.
	(func_check_dist_vpath): Likewise.

2025-02-25  Bruno Haible  <bruno@clisp.org>

	examples: Fix hello-c++-gnome3.
	* gettext-tools/examples/hello-c++-gnome3/autoclean.sh: Remove po/Makefile.in.in.

2025-02-25  Bruno Haible  <bruno@clisp.org>

	Update translations from TP.
	* gettext-runtime/po/*.po: Update from TP.
	* gettext-tools/po/*.po: Update from TP.
	* gettext-tools/examples/po/*.po: Update from TP.

2025-02-25  Bruno Haible  <bruno@clisp.org>

	Prepare for 0.24 release.
	* gettext-runtime/doc/matrix.texi: Update from TP.
	* gettext-runtime/doc/nls.texi (STATUS): Update.
	* gettext-runtime/m4/gettext.m4: Update comments.
	* gettext-runtime/m4/nls.m4: Likewise.
	* gettext-runtime/m4/progtest.m4: Likewise.
	* gettext-runtime/intl/libgnuintl.in.h (LIBINTL_VERSION): Bump.
	* libtextstyle/version.sh: Update VERSION_NUMBER, RELEASE_DATE.
	* gettext-tools/libgettextpo/gettext-po.in.h (LIBGETTEXTPO_VERSION): Bump.
	* gettext-runtime/intl/Makefile.am (LTV_*): Bump to 12:3:4.
	* libtextstyle/lib/Makefile.am (LTV_*): Bump to 2:4:2.
	* gettext-tools/libgettextpo/Makefile.am (LTV_*): Bump to 5:13:5.
	* gettext-runtime/src/envsubst.c (main): Update copyright year in --version
	output.
	* gettext-runtime/src/gettext.c (main): Likewise.
	* gettext-runtime/src/gettext.sh.in (func_version): Likewise.
	* gettext-runtime/src/ngettext.c (main): Likewise.
	* gettext-tools/src/cldr-plurals.c (main): Likewise.
	* gettext-tools/src/hostname.c (main): Likewise.
	* gettext-tools/src/msgattrib.c (main): Likewise.
	* gettext-tools/src/msgcat.c (main): Likewise.
	* gettext-tools/src/msgcmp.c (main): Likewise.
	* gettext-tools/src/msgcomm.c (main): Likewise.
	* gettext-tools/src/msgconv.c (main): Likewise.
	* gettext-tools/src/msgen.c (main): Likewise.
	* gettext-tools/src/msgexec.c (main): Likewise.
	* gettext-tools/src/msgfilter.c (main): Likewise.
	* gettext-tools/src/msgfmt.c (main): Likewise.
	* gettext-tools/src/msggrep.c (main): Likewise.
	* gettext-tools/src/msginit.c (main): Likewise.
	* gettext-tools/src/msgmerge.c (main): Likewise.
	* gettext-tools/src/msgunfmt.c (main): Likewise.
	* gettext-tools/src/msguniq.c (main): Likewise.
	* gettext-tools/src/recode-sr-latin.c (main): Likewise.
	* gettext-tools/src/urlget.c (main): Likewise.
	* gettext-tools/src/xgettext.c (main): Likewise.
	* gettext-tools/misc/convert-archive.in (func_version): Likewise.
	* gettext-tools/misc/gettextize.in (func_version): Likewise.
	* gettext-tools/misc/autopoint.in: Likewise. Accept version 0.24.
	* gettext-tools/configure.ac (ARCHIVE_VERSION): Bump to 0.24.
	* NEWS: Update.

2025-02-25  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2025-02-24  Bruno Haible  <bruno@clisp.org>

	xgettext: Implement a "reproducible" POT-Creation-Date value.
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add vc-mtime.
	* gettext-tools/src/xgettext.c: Include vc-mtime.h, msgl-header.h.
	(has_some_mtimes, max_of_mtimes, some_mtimes_failed): New variables.
	(long_options): Add --reference option.
	(main): Implement --reference option. Invoke consider_vc_mtime for the
	--files-from option.
	(usage): Document the --reference option.
	(consider_vc_mtime): New function.
	(read_exclusion_file, extract_from_file, extract_from_xml_file: Invoke
	consider_vc_mtime.
	(construct_header): Don't compute the value of POT-Creation-Date here.
	(finalize_header): Compute it here.
	* gettext-tools/doc/xgettext.texi: Document the --reference option.
	* NEWS: Mention the change.

2025-02-24  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gettext-runtime/intl/setlocale.c: Include setlocale-messages.h.
	(lc_messages_name): Remove variable.

2025-02-24  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2025-02-19  Bruno Haible  <bruno@clisp.org>

	Prepare for prerelease.
	* gettext-tools/po/POTFILES.in: Update file list.

2025-02-19  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2025-02-18  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.

2025-02-18  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Avoid an error localeconv_used_without_requesting_gnulib_module_localeconv on mingw.
	* libtextstyle/autogen.sh: Avoid module 'locale-h'.

2025-02-13  Bruno Haible  <bruno@clisp.org>

	examples: Add hello-c-http example.
	* gettext-tools/examples/hello-c-http/INSTALL: New file.
	* gettext-tools/examples/hello-c-http/autogen.sh: New file, based on
	gettext-tools/examples/hello-c/autogen.sh.
	* gettext-tools/examples/hello-c-http/autoclean.sh: New file, based on
	gettext-tools/examples/hello-c/autoclean.sh.
	* gettext-tools/examples/hello-c-http/hello-server.c: New file.
	* gettext-tools/examples/hello-c-http/Makefile.am: New file, based on
	gettext-tools/examples/hello-c/Makefile.am.
	* gettext-tools/examples/hello-c-http/configure.ac: New file, based on
	gettext-tools/examples/hello-c/configure.ac.
	* gettext-tools/examples/hello-c-http/m4/Makefile.am: New file, copied from
	gettext-tools/examples/hello-c/m4/Makefile.am.
	* gettext-tools/examples/hello-c-http/po/POTFILES.in: New file.
	* gettext-tools/examples/hello-c-http/po/Makevars: New file, copied from
	gettext-tools/examples/hello-c/po/Makevars.
	* gettext-tools/examples/hello-c-http/po/LINGUAS: New file, copied from
	gettext-tools/examples/hello-c/po/LINGUAS.
	* gettext-tools/examples/Makefile.am (EXAMPLESFILES, EXAMPLESDIRS): Add
	hello-c-http.
	* gettext-tools/examples/po/Makefile.am (POTFILES, SMALLPOTS): Update for
	hello-c-http.
	(hello-c-http.pot): New target.
	(SMALLPOFILES_FOR_lang): Update for hello-c-http.
	($(srcdir)/../hello-c-http/po/$(LL).po): New rule.
	* gettext-tools/examples/check-examples (func_check_autoclean_all,
	func_check_distclean_all, func_check_maintainerclean_all,
	func_check_maintainerclean_vpath_all, func_check_dist_all,
	func_check_dist_vpath_all, func_check_install_all, func_check_uninstall_all,
	func_check_distcheck_all, func_check_all): Handle hello-c-http as well.
	* gettext-tools/examples/README: Mention hello-c-http.
	* NEWS: Likewise.

2025-02-13  Bruno Haible  <bruno@clisp.org>

	intl: Update info about Galician and Tamil.
	* gettext-runtime/intl/setlocale.c (locales_with_principal_territory): Galician
	is mostly spoken in Spain, not Portugal. Tamil is mostly spoken in India, not
	Sri Lanka.

2025-02-12  Bruno Haible  <bruno@clisp.org>

	msginit: Update info about Galician and Tamil.
	* gettext-tools/src/msginit.c (catalogname_for_locale): Galician is mostly
	spoken in Spain, not Portugal. Tamil is mostly spoken in India, not Sri Lanka.

2025-02-11  Bruno Haible  <bruno@clisp.org>

	xgettext: Rust: Support named format string arguments.
	Reported by Kévin Commaille <zecakeh@tedomum.fr>
	in <https://savannah.gnu.org/bugs/?56774>.

	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add unictype/property-xid-start,
	unictype/property-xid-continue.
	(GNULIB_MODULES_LIBGETTEXTPO): Likewise.
	* gettext-tools/src/format-rust.c (struct named_arg): New type.
	(struct spec): Add fields named_arg_count, named.
	(named_arg_compare): New function.
	(format_parse): Recognize named arguments.
	(format_check): Search for differences also between the named arguments.
	(format_print): Print also the named arguments.
	* gettext-tools/tests/format-rust-1: Add test cases for named arguments.
	* gettext-tools/tests/format-rust-2: Likewise.
	* gettext-tools/doc/gettext.texi (rust-format): Describe rust-format in detail.

2025-02-11  Bruno Haible  <bruno@clisp.org>

	xgettext: Rust: Fix comments.
	* gettext-tools/src/x-rust.c: Fix reference to the Rust specification.

2025-02-11  Bruno Haible  <bruno@clisp.org>

	Refactor.
	* gettext-tools/src/format-ruby.c (format_parse): Use two different variables
	named_allocated, numbered_allocated, instead of a single variable (assuming that
	INVALID_MIXES_NAMED_UNNAMED is called when it should).

2025-02-10  Ivan Krylov  <ikrylov@disroot.org>  (tiny change)

	doc: Suggest to not use ngettext() in a specific case.
	Edits from Ivan Krylov <ikrylov@disroot.org> at
	<https://lists.gnu.org/archive/html/bug-gettext/2025-02/msg00000.html>
	and Bruno Haible.

	* gettext-tools/doc/gettext.texi (Plural forms): Suggest to not use ngettext()
	in singular/plural cases without a number in the strings.

2025-02-09  Bruno Haible  <bruno@clisp.org>

	Refactor: Allow for better static analysis, fixing some GCC analyzer warnings.
	* gettext-tools/src/cldr-plural.y: Define SB_NO_APPENDF.
	* gettext-tools/src/its.c: Likewise.
	* gettext-tools/src/read-desktop.c: Likewise.
	* gettext-tools/src/read-properties.c: Likewise.
	* gettext-tools/src/x-awk.c: Likewise.
	* gettext-tools/src/x-c.c: Likewise.
	* gettext-tools/src/x-java.c: Likewise.
	* gettext-tools/src/x-javascript.c: Likewise.
	* gettext-tools/src/x-lua.c: Likewise.
	* gettext-tools/src/x-perl.c: Likewise.
	* gettext-tools/src/x-php.c: Likewise.
	* gettext-tools/src/x-python.c: Likewise.
	* gettext-tools/src/x-rst.c: Likewise.
	* gettext-tools/src/x-smalltalk.c: Likewise.
	* gettext-tools/src/x-vala.c: Likewise.
	* gettext-tools/src/x-ycp.c: Likewise.

2025-02-09  Bruno Haible  <bruno@clisp.org>

	xgettext: Rust: Refactor.
	* gettext-tools/src/x-rust.c (contents): New variable.
	(extract_from_function_call, extract_from_function_call_like,
	extract_from_node): Remove the 'contents' parameter.
	(extract_rust): Update.

2025-02-09  Bruno Haible  <bruno@clisp.org>

	xgettext: Handle out-of-memory situation.
	* gettext-tools/src/x-perl.c: Include xstring-desc.h.
	(extract_quotelike): Call xsd_c instead of sd_c.
	* gettext-tools/src/x-rust.c: Include xstring-desc.h.
	(string_literal_value): Call xsd_c instead of sd_c. Call sb_xappend_desc
	instead of sb_append_desc.

2025-02-05  Bruno Haible  <bruno@clisp.org>

	doc: Sort programming languages consistently.
	* gettext-tools/doc/gettext.texi (No string concatenation): Sort the programming
	languages like elsewhere in the doc.

2025-02-04  Bruno Haible  <bruno@clisp.org>

	build: Remove undesired output from autopull.sh.
	* autopull.sh (func_git_clone_shallow): Silence the initial branch hint.

2025-02-04  Bruno Haible  <bruno@clisp.org>

	Fix last two commits.

2025-02-04  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Improve namespacing.
	* gettext-tools/libgettextpo/Makefile.am (COMPILATION_UNITS): Fix reference to
	LIBOBJS variable.
	(config.h): Remove leading part of the elements of
	$(lts_libtextstyle_LTLIBOBJS).

2025-02-04  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gettext-tools/libgettextpo/Makefile.am (config.h): Remove leading part of the
	elements of $(libgnu_la_LIBADD).

2025-02-04  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2025-02-03  Bruno Haible  <bruno@clisp.org>

	Rust: Update .gitignore.

2025-02-03  Bruno Haible  <bruno@clisp.org>

	Rust: Reference the example in the documentation.
	* gettext-tools/doc/lang-rust.texi: Reference the example.

2025-02-03  Bruno Haible  <bruno@clisp.org>

	Java: Doc comments.
	* gettext-tools/doc/lang-java.texi: Add comments.

2025-02-02  Bruno Haible  <bruno@clisp.org>

	Sort programming languages like in the documentation.
	* gettext-tools/src/xgettext.c (usage): For the -L, -a, -k, --flag options, sort
	the list of programming languages like in the documentation. Add Guile, Rust,
	GSettings, that were forgotten earlier.
	* gettext-tools/doc/xgettext.texi: Likewise.
	* gettext-tools/examples/README: Sort the examples like the programming
	languages in the documentation.
	* gettext-tools/examples/Makefile.am (EXAMPLESFILES, EXAMPLESDIRS): Likewise.
	* gettext-tools/examples/check-examples (func_check_autoclean_all,
	func_check_distclean_all, func_check_maintainerclean_all,
	func_check_maintainerclean_vpath_all, func_check_dist_all,
	func_check_dist_vpath_all, func_check_install_all, func_check_uninstall_all,
	func_check_distcheck_all, func_check_all): Likewise.
	* gettext-tools/examples/po/Makefile.am (POTFILES, SMALLPOTS, hello-*.pot,
	SMALLPOFILES_FOR_lang, $(srcdir)/../hello-*/po/$(LL).po): Likewise.

2025-02-02  Bruno Haible  <bruno@clisp.org>

	tests: Fix a comment.
	* gettext-tools/tests/format-lua-2: Fix comment.

2025-02-01  Bruno Haible  <bruno@clisp.org>

	doc: Explain why localizations are in separate files.
	* gettext-tools/doc/gettext.texi (Overview): Explain why the MO files should
	not be embedded in the executable.

2025-01-29  Bruno Haible  <bruno@clisp.org>

	tests: Fix a comment.
	* gettext-tools/tests/lang-rust: Fix comment.

2025-01-29  Bruno Haible  <bruno@clisp.org>

	intl: Fix undefined behaviour.
	Found using clang's undefined-behaviour sanitizer:
	CC="clang -fsanitize=undefined -fno-sanitize-recover=undefined".
	It reported errors
	dcigettext.c:1219:25: runtime error: applying non-zero offset 8 to null pointer
	because the code was computing
	    outbuf = freemem + sizeof (size_t);
	where freemem == NULL.

	* gettext-runtime/intl/dcigettext.c (_nl_find_msg): Initialize outbuf only after
	having verified that freemem_size >= sizeof (size_t).

2025-01-29  Bruno Haible  <bruno@clisp.org>

	xgettext: Rust: Fix xgettext-rust-stackovfl-* failures on MSVC 14/x86_64.
	* autogen.sh (GNULIB_MODULES_TOOLS_OTHER): Add test-xfail.
	* gettext-tools/src/Makefile.am (xgettext_LDFLAGS): On MSVC, use a larger
	stack size.

2025-01-28  Bruno Haible  <bruno@clisp.org>

	examples: Add hello-rust example.
	* gettext-tools/examples/hello-rust/INSTALL: New file.
	* gettext-tools/examples/hello-rust/autogen.sh: New file.
	* gettext-tools/examples/hello-rust/autoclean.sh: New file.
	* gettext-tools/examples/hello-rust/Cargo.toml.in: New file.
	* gettext-tools/examples/hello-rust/src/main.rs.in: New file.
	* gettext-tools/examples/hello-rust/Makefile.am: New file.
	* gettext-tools/examples/hello-rust/configure.ac: New file.
	* gettext-tools/examples/hello-rust/m4/Makefile.am: New file.
	* gettext-tools/examples/hello-rust/po/Makefile.am: New file.
	* gettext-tools/examples/hello-rust/po/LINGUAS: New file.
	* gettext-tools/examples/Makefile.am (EXAMPLESFILES, EXAMPLESDIRS): Add
	hello-rust.
	* gettext-tools/examples/po/Makefile.am (POTFILES, SMALLPOTS): Update for
	hello-rust.
	(hello-rust.pot): New target.
	(SMALLPOFILES_FOR_lang): Update for hello-rust.
	($(srcdir)/../hello-rust/po/$(LL).po): New rule.
	* gettext-tools/examples/check-examples (func_check_autoclean_all,
	func_check_distclean_all, func_check_maintainerclean_all,
	func_check_maintainerclean_vpath_all, func_check_dist_all,
	func_check_dist_vpath_all, func_check_install_all, func_check_uninstall_all,
	func_check_distcheck_all, func_check_all): Handle hello-rust as well.
	(func_check): Add a more useful body.
	* gettext-tools/examples/README: Mention hello-rust.
	* NEWS: Likewise.

2025-01-28  Bruno Haible  <bruno@clisp.org>

	Rust: Add lang-rust unit test.
	* gettext-tools/tests/init.cfg (this_test_is_longrunning_): New function.
	* gettext-tools/tests/lang-rust: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.
	* HACKING: Reorder. Document prerequisites for Rust unit test.

2025-01-28  Bruno Haible  <bruno@clisp.org>

	Add Rust support.
	* autopull.sh (func_git_clone_shallow): New function, based on
	gnulib/top/bootstrap-funclib.sh.
	Check out tree-sitter and tree-sitter-rust.
	Create gettext-tools/tree-sitter.cfg.
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add strnlen,
	unictype/property-white-space.
	(GNULIB_MODULES_LIBGETTEXTPO): Likewise.
	* gettext-tools/build-aux/tree-sitter-portability.diff: New file.
	* gettext-tools/build-aux/tree-sitter-rust-portability.diff: New file.
	* gettext-tools/configure.ac: Set TREE_SITTER_VERSION, TREE_SITTER_RUST_VERSION.
	* gettext-tools/Makefile.am (EXTRA_DIST): Add the tree-sitter configuration,
	source code, and patches.
	* gettext-tools/doc/lang-rust.texi: New file.
	* gettext-tools/doc/Makefile.am (gettext_TEXINFOS): Add it.
	* gettext-tools/doc/gettext.texi (PO Files): Mention rust-format.
	(Translators for other Languages): New subsection "Rust Format Strings".
	(List of Programming Languages): Include lang-rust.texi.
	* gettext-tools/doc/xgettext.texi: Document the -L Rust option.
	* gettext-tools/src/message.h (format_rust): New enum value.
	(NFORMATS): Increment.
	* gettext-tools/src/message.c (format_language, format_language_pretty): Add an
	entry for format_rust.
	* gettext-tools/src/format-rust.c: New file.
	* gettext-tools/src/format.h (formatstring_rust): New declaration.
	* gettext-tools/src/format.c (formatstring_parsers): Add formatstring_rust.
	* gettext-tools/src/x-rust.h: New file.
	* gettext-tools/src/x-rust.c: New file.
	* gettext-tools/src/xgettext.c: Include x-rust.h.
	(main): Invoke init_flag_table_rust, x_rust_extract_all, x_rust_keyword.
	(usage): Document the -L Rust option.
	(xgettext_record_flag): Support format_rust.
	(language_to_extractor, extension_to_language): Support Rust.
	* gettext-tools/src/FILES: Mention format-rust.c, x-rust.h, x-rust.c.
	* gettext-tools/src/Makefile.am (noinst_LIBRARIES): New variable.
	(noinst_HEADERS): Add x-rust.h.
	(AM_CPPFLAGS): Add a -I option for tree-sitter.
	(FORMAT_SOURCE): Add format-rust.c.
	(LIBXGETTEXTTS): New variable.
	(libxgettextts1_a_SOURCES, libxgettextts1_a_CPPFLAGS): New variables.
	(libxgettextts2_a_SOURCES, libxgettextts2_a_CPPFLAGS): New variables.
	(xgettext_SOURCES): Add x-rust.c.
	(xgettext_LDADD, xgettext_DEPENDENCIES): Add $(LIBXGETTEXTTS).
	* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES): Add
	format-rust.c.
	* gettext-tools/woe32dll/gettextsrc-exports.c: Export formatstring_rust.
	* gettext-tools/tests/format-rust-1: New file.
	* gettext-tools/tests/format-rust-2: New file.
	* gettext-tools/tests/xgettext-rust-1: Fix string literal concatenation test.
	Fix -k options.
	* gettext-tools/tests/xgettext-rust-2: Fix gettext invocations.
	* gettext-tools/tests/xgettext-rust-3: Fix string literal concatenation test.
	Test multiline strings.
	* gettext-tools/tests/xgettext-rust-4: Tweak.
	* gettext-tools/tests/xgettext-rust-5: Fix test identifier.
	* gettext-tools/tests/xgettext-rust-6: New file.
	* gettext-tools/tests/xgettext-rust-7: New file.
	* gettext-tools/tests/xgettext-rust-stackovfl-1: New file.
	* gettext-tools/tests/xgettext-rust-stackovfl-2: New file.
	* gettext-tools/tests/xgettext-rust-stackovfl-3: New file.
	* gettext-tools/tests/xgettext-rust-stackovfl-4: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add the new tests.
	* check-copyright-headers (func_check_file): Ignore tree-sitter files.
	* NEWS: Mention the Rust support.

2025-01-28  Kévin Commaille  <zecakeh@tedomum.fr>

	Prepare for Rust support.
	* gettext-tools/tests/xgettext-rust-1: New file, based on
	gettext-tools/tests/xgettext-csharp-1.
	* gettext-tools/tests/xgettext-rust-2: New file, based on
	gettext-tools/tests/xgettext-csharp-2.
	* gettext-tools/tests/xgettext-rust-3: New file, based on
	gettext-tools/tests/xgettext-csharp-3.
	* gettext-tools/tests/xgettext-rust-4: New file, based on
	gettext-tools/tests/xgettext-csharp-4.
	* gettext-tools/tests/xgettext-rust-5: New file, based on
	gettext-tools/tests/xgettext-csharp-7.

2025-01-28  Bruno Haible  <bruno@clisp.org>

	examples: Improve autoclean.sh.
	* gettext-tools/examples/hello-c-gnome3/autoclean.sh: Do also the equivalent of
	"make maintainer-clean".
	* gettext-tools/examples/hello-c++-gnome3/autoclean.sh: Likewise.
	* gettext-tools/examples/hello-c++-kde/autoclean.sh: Likewise.
	* gettext-tools/examples/hello-csharp/autoclean.sh: Likewise.
	* gettext-tools/examples/hello-csharp-forms/autoclean.sh: Likewise.
	* gettext-tools/examples/hello-pascal/autoclean.sh: Likewise.

2025-01-28  Bruno Haible  <bruno@clisp.org>

	examples: Assume autoconf >= 2.60.
	* gettext-tools/examples/hello-clisp/configure.ac: Compute localedir based on
	${datarootdir}, not ${datadir}.
	* gettext-tools/examples/hello-gawk/configure.ac: Likewise.
	* gettext-tools/examples/hello-guile/configure.ac: Likewise.
	* gettext-tools/examples/hello-librep/configure.ac: Likewise.
	* gettext-tools/examples/hello-pascal/configure.ac: Likewise.
	* gettext-tools/examples/hello-perl/configure.ac: Likewise.
	* gettext-tools/examples/hello-php/configure.ac: Likewise.
	* gettext-tools/examples/hello-python/configure.ac: Likewise.
	* gettext-tools/examples/hello-ruby/configure.ac: Likewise.
	* gettext-tools/examples/hello-sh/configure.ac: Likewise.
	* gettext-tools/examples/hello-smalltalk/configure.ac: Likewise.

2025-01-28  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Update after 2025-01-24 change.

2025-01-28  Bruno Haible  <bruno@clisp.org>

	format-ruby: Fix error handling.
	* gettext-tools/src/format-ruby.c (format_parse): Respect FDI_SET constraint.

2025-01-28  Bruno Haible  <bruno@clisp.org>

	format-python-brace: Fix error handling.
	* gettext-tools/src/format.h (FDI_SET): Improve comment.
	* gettext-tools/src/format-python-brace.c (parse_directive): Improve error
	messages. Respect FDI_SET constraint.

2025-01-28  Bruno Haible  <bruno@clisp.org>

	Mention the GNU make requirement more prominently.
	* NEWS: Mention the GNU make requirement.

2025-01-28  Bruno Haible  <bruno@clisp.org>

	build: Update package version handling after gnulib changed.
	* configure.ac: Drop postprocessing of git-version-gen output.
	* gettext-runtime/configure.ac: Likewise.
	* gettext-runtime/intl/configure.ac: Likewise.
	* gettext-tools/configure.ac: Likewise.
	* gettext-tools/examples/configure.ac: Likewise.

2025-01-28  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2025-01-25  Bruno Haible  <bruno@clisp.org>

	build: Update package version handling after gnulib changed.
	* configure.ac: Invoke AC_INIT with arguments. Invoke gl_INIT_PACKAGE_VERSION
	instead of gl_INIT_PACKAGE.
	* gettext-runtime/configure.ac: Likewise.
	* gettext-runtime/intl/configure.ac: Likewise.
	* gettext-tools/configure.ac: Likewise.
	* gettext-tools/examples/configure.ac: Likewise.
	* libtextstyle/configure.ac: Likewise.

2025-01-25  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2025-01-24  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Improve package version handling.
	* libtextstyle/autogen.sh: Copy also m4/init-package-version.m4.
	* libtextstyle/m4/init-package-version.m4: Remove file, moved to gnulib.

2025-01-24  Bruno Haible  <bruno@clisp.org>

	Temporarily revert "po: Rename Makefile.in.in to Makefile.in."

2025-01-24  Bruno Haible  <bruno@clisp.org>

	build: Update release-steps after problem with .version has been fixed.

2025-01-23  Bruno Haible  <bruno@clisp.org>

	build: Improve package version handling.
	* autogen.sh: Copy also m4/init-package-version.m4, m4/version-stamp.m4.
	* configure.ac: Use gl_INIT_PACKAGE and gl_CONFIG_VERSION_STAMP.
	* gettext-runtime/configure.ac: Use gl_INIT_PACKAGE.
	* gettext-runtime/intl/configure.ac: Likewise.
	* gettext-tools/configure.ac: Likewise.
	* gettext-tools/examples/configure.ac: Likewise.
	* Makefile.am (dist-tarball-version): New target.
	($(top_srcdir)/.version): Remove target.

2025-01-23  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2025-01-12  Bruno Haible  <bruno@clisp.org>

	format-kde-kuit: Fix test program.
	* gettext-tools/src/format-kde-kuit.c: Fix compile-command.
	(format_print): Make it compile. Print a '*' for each argument.

2025-01-12  Bruno Haible  <bruno@clisp.org>

	format-kde: Fix test program.
	* gettext-tools/src/format-kde.c (format_print): Print a '*' for each argument.

2025-01-09  Bruno Haible  <bruno@clisp.org>

	Update .gitignore after the recent refactorings.

2025-01-08  Bruno Haible  <bruno@clisp.org>

	Fix a test failure when LC_ALL is set to a non-English locale.
	Reported by Simon Josefsson <simon@josefsson.org>
	in <https://lists.gnu.org/archive/html/bug-gettext/2025-01/msg00008.html>.

	* gettext-tools/tests/xgettext-its-2: When setting LC_MESSAGES, also unset
	LC_ALL.

2025-01-08  Bruno Haible  <bruno@clisp.org>

	xgettext: JavaScript: Parse recursive JSX expressions correctly.
	Reported by <fiurgeist@gmail.com> at <https://savannah.gnu.org/bugs/?66643>.

	* gettext-tools/src/x-javascript.c (phase5_get): Treat a '<' character in
	level type level_embedded_js_in_xml like in the other level types.
	* gettext-tools/tests/xgettext-javascript-6: Add another test case.
	* NEWS: Mention the fix.

2025-01-08  Bruno Haible  <bruno@clisp.org>

	build: Achieve better tarball compression ratios in "make dist".
	Suggested by Lasse Collin <lasse.collin@tukaani.org>
	in <https://lists.gnu.org/archive/html/bug-gettext/2025-01/msg00011.html>.

	* configure.ac (am__tar): Sort the files by basename.

2025-01-08  Bruno Haible  <bruno@clisp.org>

	Refactor: Use function str_endswith.
	* libtextstyle/gnulib-local/lib/term-ostream.oo.c (term_ostream_create): Use
	str_endswith.
	* libtextstyle/gnulib-local/modules/term-ostream (Depends-on): Add
	str_endswith.

2025-01-08  Bruno Haible  <bruno@clisp.org>

	Refactor: Use function str_startswith.
	* libtextstyle/gnulib-local/lib/term-ostream.oo.c (should_enable_hyperlinks):
	Use str_startswith.
	* libtextstyle/gnulib-local/modules/term-ostream (Depends-on): Add
	str_startswith.
	* gettext-tools/src/cldr-plural.y (yylex): Use str_startswith.
	* gettext-tools/src/format-java.c (message_format_parse, choice_format_parse):
	Likewise.
	* gettext-tools/src/msgl-check.c (plural_help, check_header_entry): Likewise.
	* gettext-tools/src/read-catalog-abstract.c (parse_comment_filepos): Likewise.
	* gettext-tools/src/read-csharp.c (msgdomain_read_csharp): Likewise.
	* gettext-tools/src/write-csharp.c (msgdomain_write_csharp): Likewise.
	* gettext-tools/src/x-perl.c (skip_pod): Likewise.
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC, GNULIB_MODULES_LIBGETTEXTPO): Add
	str_startswith.

2025-01-03  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2025-01-03  Bruno Haible  <bruno@clisp.org>

	Refactor: Use GNU coding style.
	* gnulib-local/lib/markup.c (slow_name_validate, unescape_string_inplace,
	clear_attributes, markup_parse_context_parse): Break lines before the operator.

2025-01-03  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Recognize number of colours in TERM=*-direct.
	* libtextstyle/gnulib-local/lib/term-ostream.oo.c (term_ostream_create): Fix
	recognition of TERM values that end in "-direct".

2025-01-03  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Add comments.
	* libtextstyle/gnulib-local/lib/term-ostream.oo.c (term_ostream_create): Add
	comments.

2025-01-02  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gettext-runtime/src/envsubst.c (subst_from_stdin): Use sd_ function prefix
	instead of string_desc_ function prefix.
	* gettext-tools/src/its.c (set_doc_encoding_utf8, _its_is_valid_simple_gen_xml,
	is_valid_xhtml_element, is_valid_html_element, is_no_end_html_element):
	Likewise.
	* gettext-tools/src/msgl-ascii.c (is_ascii_string_desc): Likewise.
	* gettext-tools/src/msgl-iconv.c (convert_string_desc_directly): Likewise.
	* gettext-tools/src/read-desktop.c (desktop_lex): Likewise.
	* gettext-tools/src/x-awk.c (phase2_getc, phase3_get): Likewise.
	* gettext-tools/src/x-c.c (phase5_get): Likewise.
	* gettext-tools/src/x-perl.c (get_here_document, extract_quotelike_pass1,
	extract_quotelike_pass1_utf8, extract_quotelike, extract_triple_quotelike,
	extract_quotelike_pass3, extract_variable, interpolate_keywords, x_perl_prelex):
	Likewise.
	* gettext-tools/src/x-php.c (phase4_get): Likewise.
	* gettext-tools/src/x-rst.c (parse_integer): Likewise.
	* gettext-tools/src/x-ycp.c (phase2_getc, phase5_get): Likewise.
	* gettext-tools/src/xg-encoding.c (string_desc_from_current_source_encoding):
	Likewise.

2025-01-02  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2025-01-01  Bruno Haible  <bruno@clisp.org>

	msgfmt: Fix python-brace-format checking.
	Reported at <https://savannah.gnu.org/bugs/index.php?48872>.

	* gettext-tools/src/format-python-brace.c (format_check): Fix comment. Do the
	cmp > 0 check also if equality==false.
	* gettext-tools/src/format-python.c (format_check): Fix comment.
	* gettext-tools/src/format-ruby.c (format_check): Likewise.
	* gettext-tools/src/format-sh.c (format_check): Likewise.

2024-12-31  Bruno Haible  <bruno@clisp.org>

	When reading PO files, treat CRLF line terminators like LF, part 2.
	* gettext-tools/tests/Makefile.am (EXTRA_DIST): Add testdata/crlf.pot.

2024-12-31  Bruno Haible  <bruno@clisp.org>

	Merge from 0.23.x branch: Prepare for 0.23.1 release.
	* gettext-runtime/intl/libgnuintl.in.h (LIBINTL_VERSION): Bump.
	* libtextstyle/version.sh: Update VERSION_NUMBER, RELEASE_DATE.
	* gettext-tools/libgettextpo/gettext-po.in.h (LIBGETTEXTPO_VERSION): Bump.
	* gettext-runtime/intl/Makefile.am (LTV_*): Bump to 12:2:4.
	* libtextstyle/lib/Makefile.am (LTV_*): Bump to 2:3:2.
	* gettext-tools/libgettextpo/Makefile.am (LTV_*): Bump to 5:12:5.
	* gettext-tools/misc/autopoint.in: Likewise. Accept version 0.23.1.
	* gettext-tools/configure.ac (ARCHIVE_VERSION): Bump to 0.23.1.

2024-12-31  Bruno Haible  <bruno@clisp.org>

	Merge from 0.23.x branch: Update NEWS file for release 0.23.1.

2024-12-31  Bruno Haible  <bruno@clisp.org>

	doc: Update list of dependencies.

2024-12-31  Bruno Haible  <bruno@clisp.org>

	When reading PO files, treat CRLF line terminators like LF.
	Reported by Hendy Irawan <hendy@hendyirawan.com> at
	<https://savannah.gnu.org/bugs/?52395>.

	* gettext-tools/src/read-po-internal.h (MBFILE_MAX_PUSHBACK): Renamed from
	NPUSHBACK. Increase by 1.
	(struct mbfile): Rename field 'have_pushback' to 'pushback_count'.
	* gettext-tools/src/read-po-lex.c (mbfile_init): Update.
	(mbfile_getc): Read pushed-back character before testing for sticky EOF.
	(mbfile_ungetc): Update.
	(mbfile_getc_normalized): New function.
	(lex_getc): Invoke mbfile_getc_normalized instead of mbfile_getc.
	* gettext-tools/tests/testdata/crlf.pot: New file.
	* gettext-tools/tests/msgcat-23: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2024-12-28  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* autogen.sh (GNULIB_MODULES_RUNTIME_FOR_SRC, GNULIB_MODULES_TOOLS_FOR_SRC,
	GNULIB_MODULES_TOOLS_FOR_SRC_COMMON_DEPENDENCIES, GNULIB_MODULES_TOOLS_OTHER,
	GNULIB_MODULES_LIBGETTEXTPO): Use the new names of renamed gnulib modules.
	* gnulib-local/modules/backupfile (Depends-on): Likewise.
	* gnulib-local/modules/closeout (Depends-on): Likewise.
	* gnulib-local/modules/libtextstyle-dummy (Depends-on): Likewise.
	* gnulib-local/modules/libxml (Depends-on): Likewise.
	* libtextstyle/gnulib-local/modules/fd-ostream (Depends-on): Likewise.
	* libtextstyle/gnulib-local/modules/html-styled-ostream (Depends-on): Likewise.
	* libtextstyle/gnulib-local/modules/iconv-ostream (Depends-on): Likewise.
	* libtextstyle/gnulib-local/modules/memory-ostream (Depends-on): Likewise.
	* libtextstyle/gnulib-local/modules/noop-styled-ostream (Depends-on): Likewise.
	* libtextstyle/gnulib-local/modules/term-ostream (Depends-on): Likewise.

2024-12-28  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2024-12-27  Bruno Haible  <bruno@clisp.org>

	build: Fix "make dist" result when run in a VPATH build.
	Suggested by Simon Josefsson in
	<https://lists.gnu.org/archive/html/bug-gnulib/2024-12/msg00181.html>.

	* Makefile.am (gen-ChangeLogs): Consider $(srcdir).

2024-12-24  Bruno Haible  <bruno@clisp.org>

	intl: Support the UTF-8 environment on native Windows.
	Reported by Lasse Collin <lasse.collin@tukaani.org> in
	<https://lists.gnu.org/archive/html/bug-gettext/2024-12/msg00111.html>.

	* gettext-runtime/intl/setlocale.c: Include <windows.h>.
	(setlocale_unixlike): In the UTF-8 environment, append a suffix ".65001"
	to the locale names passed to the native setlocale().

2024-12-24  Bruno Haible  <bruno@clisp.org>

	intl: Handle LC_MESSAGES correctly on native Windows.
	* gettext-runtime/intl/setlocale.c (libintl_setlocale): Revamp the LC_ALL case
	if LC_MESSAGES is 1729.

2024-12-24  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2024-12-24  Bruno Haible  <bruno@clisp.org>

	lang-python-*: Fix test failures on mingw with UCRT.
	* gettext-tools/tests/lang-python-1: Disable ISO8859_LOCALE_UNSUPPORTED for
	Python 3. Set PYTHONIOENCODING environment variable.
	* gettext-tools/tests/lang-python-2: Likewise.

2024-12-23  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Fix a test failure on MSYS2.
	* libtextstyle/gnulib-local/tests/test-term-ostream-xterm-msys2.out: New file.
	* libtextstyle/gnulib-local/tests/test-term-ostream-xterm.sh: Use it as an
	expected test result.
	* libtextstyle/gnulib-local/modules/term-ostream-tests (Files): Add it.
	* libtextstyle/Makefile.am (EXTRA_DIST): Likewise.

2024-12-23  Bruno Haible  <bruno@clisp.org>

	Fix test failure of lang-ruby.
	* gettext-tools/tests/lang-ruby: Skip the test if 'rxgettext' is not installed.

2024-12-23  Bruno Haible  <bruno@clisp.org>

	examples: Don't fail build if rxgettext is not installed.
	* gettext-tools/examples/po/xsmallpot.sh: Ignore a 'make' failure in the
	hello-ruby example.
	* gettext-tools/examples/po/hello-ruby.pot: New generated file.

2024-12-23  Bruno Haible  <bruno@clisp.org>

	examples: Don't fail configuration of hello-objc if no Objective-C compiler is found, part 2.
	* gettext-tools/examples/po/xsmallpot.sh: Don't remove the m4_pushdef, m4_popdef
	lines from hello-objc*/configure.ac.

2024-12-23  Bruno Haible  <bruno@clisp.org>

	examples: Find the Objective-C compiler out-of-the-box on AlmaLinux 9 systems.
	* gettext-tools/examples/hello-objc-gnome2/configure.ac: Invoke AC_PROG_OBJC
	with a customized search list. Don't invoke AC_PROC_CC.

2024-12-23  Bruno Haible  <bruno@clisp.org>

	examples: Don't fail configuration of hello-objc if no Objective-C compiler is found.
	* gettext-tools/examples/hello-objc/configure.ac: Map AC_MSG_FAILURE to
	AC_MSG_WARN.

2024-12-20  Bruno Haible  <bruno@clisp.org>

	po: Remove a comment that is not valid any more since 2002-01-07.
	The comment "Target 'all' must not depend on target '$(DOMAIN).pot-update'"
	does not hold any more:
	  all <- all-yes <- $(srcdir)/stamp-po <- $(srcdir)/$(DOMAIN).pot
	and the latter rule executes
	  $(MAKE) $(DOMAIN).pot-update

	* gettext-runtime/po/Makefile.in: Remove comment.
	* gettext-tools/examples/po/Makefile.am: Likewise.
	* gettext-tools/examples/*/po/Makefile.am: Likewise.
	* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile: Likewise.

2024-12-18  Bruno Haible  <bruno@clisp.org>

	New example 'hello-c++-gnome3'.
	* gettext-tools/examples/hello-c++-gnome3: New directory, based on
	gettext-tools/examples/hello-c-gnome3.
	* gettext-tools/examples/Makefile.am (EXAMPLESFILES, EXAMPLESDIRS): Update.
	* gettext-tools/examples/po/Makefile.am (POTFILES, SMALLPOTS,
	SMALLPOFILES_FOR_lang): Update.
	* gettext-tools/examples/README: Update.
	* gettext-tools/examples/check-examples: Handle this directory as well.
	* NEWS: Mention the new example.
	* HACKING: Mention the gtkmm dependency.

2024-12-18  Bruno Haible  <bruno@clisp.org>

	hello-c-gnome3: Document build dependencies.
	* HACKING: Mention Gtk3 dependency.

2024-12-18  Bruno Haible  <bruno@clisp.org>

	hello-c-gnome3: Add a simpler "hello world" program.
	* gettext-tools/examples/hello-c-gnome3/README: New file.
	* gettext-tools/examples/hello-c-gnome3/hello2.c: New file, based on
	gettext-tools/examples/hello-c-gnome3/hello.c.
	* gettext-tools/examples/hello-c-gnome3/hello2.desktop.in.in: New file, based on
	gettext-tools/examples/hello-c-gnome3/hello.desktop.in.in.
	* gettext-tools/examples/hello-c-gnome3/hello2.gresource.xml: New file, based on
	gettext-tools/examples/hello-c-gnome3/hello.gresource.xml.
	* gettext-tools/examples/hello-c-gnome3/hello2.ui: Renamed from
	gettext-tools/examples/hello-c-gnome3/hello.ui.
	* gettext-tools/examples/hello-c-gnome3/hello2.gschema.xml: New file, based on
	gettext-tools/examples/hello-c-gnome3/hello.gschema.xml.
	* gettext-tools/examples/hello-c-gnome3/hello.c: Greatly simplified.
	* gettext-tools/examples/hello-c-gnome3/hello.ui: Use an <object> element
	instead of a <template> element.
	* gettext-tools/examples/hello-c-gnome3/hello.gschema.xml: Remove file.
	* gettext-tools/examples/hello-c-gnome3/Makefile.am (bin_PROGRAMS): Add hello2.
	(hello-resources.c): Renamed from resources.c.
	(hello2_SOURCES): New variable.
	(hello2-resources.c): New target.
	(desktop_DATA): Add hello2.desktop.
	(hello2.desktop.in, hello2.desktop): New targets.
	(BUILT_SOURCES, CLEANFILES, MAINTAINERCLEANFILES): Update.
	(EXTRA_DIST): Remove hello.gschema.xml. Add hello2.desktop.in.in,
	hello2.desktop.in, hello2.gresource.xml, hello2.ui, hello2.gschema.xml.
	* gettext-tools/examples/hello-c-gnome3/po/POTFILES.in: Update.
	* gettext-tools/examples/hello-c-gnome3/autoclean.sh: Update.
	* gettext-tools/examples/Makefile.am (EXAMPLESFILES): Update.
	* gettext-tools/examples/po/Makefile.am (POTFILES): Update.

2024-12-18  Bruno Haible  <bruno@clisp.org>

	hello-c-gnome3: Make more robust.
	* gettext-tools/examples/hello-c-gnome3/hello.c (hello_application_window_init):
	Initialize label_id explicitly.

2024-12-16  Bruno Haible  <bruno@clisp.org>

	hello-c-gnome3: Fix "make distcheck".
	* gettext-tools/examples/hello-c-gnome3/Makefile.am (BUILT_SOURCES): Add
	hello.desktop.
	(gschemas.compiled): Make it work in VPATH builds.
	(CLEANFILES): Remove resources.c. Don't mention hello.desktop twice.
	(MAINTAINERCLEANFILES): Add resources.c.
	* gettext-tools/examples/hello-c-gnome3/autoclean.sh: Remove also resources.c,
	hello.desktop.in.

2024-12-16  Bruno Haible  <bruno@clisp.org>

	hello-c-gnome3: Avoid translator mistakes regarding markup (e.g. in de.po).
	* gettext-tools/examples/hello-c-gnome3/hello.c (hello_application_window_init):
	Move HTML markup outside of translatable strings.

2024-12-16  Bruno Haible  <bruno@clisp.org>

	hello-c-gnome3: Fix an error "Settings schema 'org.gnu.gettext.examples.hello' is not installed".
	* gettext-tools/examples/hello-c-gnome3/configure.ac: Invoke
	gl_BUILD_TO_HOST_LOCALEDIR, gl_BUILD_TO_HOST_PKGDATADIR.
	* gettext-tools/examples/hello-c-gnome3/Makefile.am (DEFS): Define also
	PKGDATADIR.
	(pkgdata_DATA): New variable.
	* gettext-tools/examples/hello-c-gnome3/hello.c (main): Add PKGDATADIR to the
	GSETTINGS_SCHEMA_DIR value.

2024-12-16  Bruno Haible  <bruno@clisp.org>

	hello-c-gnome3: Exit when the window's close button is clicked.
	* gettext-tools/examples/hello-c-gnome3/hello.c
	(hello_application_window_dispose): Remove function.
	(hello_application_window_class_init): Don't overwrite the 'dispose' field.

2024-12-16  Bruno Haible  <bruno@clisp.org>

	Rename some examples.
	* gettext-tools/examples/hello-c-gnome2: Renamed from
	gettext-tools/examples/hello-c-gnome.
	* gettext-tools/examples/hello-c++-gnome2: Renamed from
	gettext-tools/examples/hello-c++-gnome.
	* gettext-tools/examples/hello-objc-gnome2: Renamed from
	gettext-tools/examples/hello-objc-gnome.
	* gettext-tools/examples/Makefile.am (EXAMPLESFILES, EXAMPLESDIRS): Update.
	* gettext-tools/examples/po/Makefile.am (POTFILES, SMALLPOTS,
	SMALLPOFILES_FOR_lang): Update.
	* gettext-tools/examples/README: Update.
	* gettext-tools/examples/check-examples: Update.
	* check-copyright-headers: Update.

2024-12-16  Bruno Haible  <bruno@clisp.org>

	New example 'hello-ruby'.
	* gettext-tools/examples/hello-ruby: New directory, based on
	gettext-tools/examples/hello-php.
	* gettext-tools/examples/Makefile.am (EXAMPLESFILES, EXAMPLESDIRS): Update.
	* gettext-tools/examples/po/Makefile.am (POTFILES, SMALLPOTS,
	SMALLPOFILES_FOR_lang): Update.
	* gettext-tools/examples/README: Update.
	* gettext-tools/examples/check-examples: Handle this directory as well.
	* NEWS: Mention the new example.

2024-12-16  Bruno Haible  <bruno@clisp.org>

	Ruby: Add unit test for Ruby support.
	* gettext-tools/tests/lang-ruby: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2024-12-16  Bruno Haible  <bruno@clisp.org>

	doc: Update list of dependencies.
	* gettext-tools/doc/lang-csharp.texi: Mention dotnet8 as alternative.
	* gettext-tools/tests/lang-csharp: Likewise.
	* gettext-tools/doc/lang-pascal.texi: Replace fpk with fpc.
	* gettext-tools/tests/lang-pascal: Likewise.
	* gettext-tools/doc/lang-wxwidgets.texi: Mention libwxgtk3.2-dev as alternative.
	* gettext-tools/tests/lang-objc: Mention the gobjc package.
	* gettext-tools/tests/lang-rst: Mention the fp-utils package.
	* gettext-tools/tests/lang-vala: Mention valac as alternative.

2024-12-16  Bruno Haible  <bruno@clisp.org>

	Fix "make distcheck" failure (regression from "po: Rename Makefile.in.in to Makefile.in.").
	* gettext-runtime/po/Makefile.in (DISTFILES.common): Remove Makefile.in.

2024-12-15  Bruno Haible  <bruno@clisp.org>

	doc: Update reference to lua-gettext package.
	* gettext-tools/doc/lang-lua.texi: Update lua-gettext installation instructions.
	* HACKING: Update lua version requirements and lua-gettext installation
	instructions.

2024-12-12  Bruno Haible  <bruno@clisp.org>

	intl-java: Fix a deprecation warning.
	* gettext-runtime/intl-java/gnu/gettext/GettextResource.java (ngettextnull): Use
	Long.valueOf(n) instead of new Long(n).

2024-12-12  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Fix a gcc 13 -Wunused-result warning.
	* libtextstyle/gnulib-local/lib/glib/gstrfuncs.c (g_strdup_vprintf): Don't
	assume that vasprintf leaves the pointed-to variable unchanged when it fails.

2024-12-12  Bruno Haible  <bruno@clisp.org>

	libxml: Fix a gcc 13 -Wformat-truncation warning.
	* gnulib-local/lib/libxml/uri.c (xmlURIEscape): Use a buffer of size 12, not 10.

2024-12-12  Bruno Haible  <bruno@clisp.org>

	Silence -Wstack-protector warnings from Ubuntu gcc 13 and 14.
	* m4/more-warnings.m4 (gt_MORE_WARNINGS): Silence -Wstack-protector also
	for newer gcc versions.

2024-12-12  Bruno Haible  <bruno@clisp.org>

	doc: Update list of dependencies.
	* DEPENDENCIES: Add libattr.
	* HACKING: Stop mentioning XEmacs. Add note regarding GNU Smalltalk.
	Mention dotnet as alternative to Mono. Mention wxgtk version 3.2.

2024-12-10  Bruno Haible  <bruno@clisp.org>

	po: Rename Makefile.in.in to Makefile.in.
	* gettext-runtime/po/Makefile.in: Renamed from gettext-runtime/po/Makefile.in.in.
	(distclean): Don't remove Makefile.in.
	* gettext-runtime/m4/po.m4 (AM_PO_SUBDIRS): Remove the 'po-directories'
	commands.
	* gettext-runtime/configure.ac: Update AC_OUTPUT invocation.
	* gettext-runtime/Makefile.am (maintainer-update-po): Update.
	* gettext-tools/configure.ac: Update AC_OUTPUT invocation.
	* gettext-tools/Makefile.am (maintainer-update-po): Update.
	* gettext-tools/doc/gettext.texi (Translator advice, po/Rules-*, configure.ac,
	Files under Version Control, Maintainers for other Languages): Update.
	* gettext-tools/doc/gettextize.texi: Update.
	* gettext-tools/examples/README: Update.
	* gettext-tools/examples/hello-c/autoclean.sh: Update.
	* gettext-tools/examples/hello-c-gnome/autoclean.sh: Likewise.
	* gettext-tools/examples/hello-c-gnome3/autoclean.sh: Likewise.
	* gettext-tools/examples/hello-c++/autoclean.sh: Likewise.
	* gettext-tools/examples/hello-c++-gnome/autoclean.sh: Likewise.
	* gettext-tools/examples/hello-c++-kde/autoclean.sh: Likewise.
	* gettext-tools/examples/hello-c++20/autoclean.sh: Likewise.
	* gettext-tools/examples/hello-objc/autoclean.sh: Likewise.
	* gettext-tools/examples/hello-objc-gnome/autoclean.sh: Likewise.
	* gettext-tools/misc/autopoint.in: Update search for po directories.
	* gettext-tools/misc/gettextize.in: Treat Makefile.in like Makefile.in.in
	before. Treat Makefile.in.in as a removed file.
	* gettext-tools/tests/autopoint-2: Prepare for bumping ARCHIVE_VERSION.
	* gettext-tools/tests/autopoint-3: Likewise.
	* autogen.sh: Copy po/Makefile.in instead of po/Makefile.in.in.
	* Makefile.am (distcheck-hook): Update.
	* NEWS: Mention the change.

2024-12-10  Bruno Haible  <bruno@clisp.org>

	build: Read LINGUAS at 'make' time, not at 'configure' time, part 2.
	* gettext-tools/examples/hello-csharp*/po/Makefile.am: Remove a comment.
	* gettext-tools/examples/hello-tcl*/po/Makefile.am: Likewise.

2024-12-09  Bruno Haible  <bruno@clisp.org>

	Use new approach for gnulib localizations.
	* gettext-runtime/po/POTFILES.in: Remove files that come from gnulib.
	* gettext-tools/po/POTFILES.in: Likewise.
	* gettext-runtime/src/envsubst.c (main): Invoke bindtextdomain for the domain
	'gnulib'.
	* gettext-runtime/src/gettext.c (main): Likewise.
	* gettext-runtime/src/ngettext.c (main): Likewise.
	* gettext-tools/src/cldr-plurals.c (main): Likewise.
	* gettext-tools/src/hostname.c (main): Likewise.
	* gettext-tools/src/msgattrib.c (main): Likewise.
	* gettext-tools/src/msgcat.c (main): Likewise.
	* gettext-tools/src/msgcmp.c (main): Likewise.
	* gettext-tools/src/msgcomm.c (main): Likewise.
	* gettext-tools/src/msgconv.c (main): Likewise.
	* gettext-tools/src/msgen.c (main): Likewise.
	* gettext-tools/src/msgexec.c (main): Likewise.
	* gettext-tools/src/msgfilter.c (main): Likewise.
	* gettext-tools/src/msgfmt.c (main): Likewise.
	* gettext-tools/src/msggrep.c (main): Likewise.
	* gettext-tools/src/msginit.c (main): Likewise.
	* gettext-tools/src/msgmerge.c (main): Likewise.
	* gettext-tools/src/msgunfmt.c (main): Likewise.
	* gettext-tools/src/msguniq.c (main): Likewise.
	* gettext-tools/src/recode-sr-latin.c (main): Likewise.
	* gettext-tools/src/urlget.c (main): Likewise.
	* gettext-tools/src/xgettext.c (main): Likewise.

2024-12-08  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gettext-tools/src/Makefile.am (DEFS): Remove definition of BISON_LOCALEDIR,
	now present in config.h.

2024-12-08  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2024-12-07  Bruno Haible  <bruno@clisp.org>

	build: Include the Rules-* files at 'make' time, not at 'configure' time.
	* gettext-runtime/m4/po.m4 (AM_PO_SUBDIRS): Don't splice in the Rules-* files
	here.
	* gettext-runtime/po/Makefile.in.in: Collect and include the Rules-* files
	explicitly.

2024-12-07  Bruno Haible  <bruno@clisp.org>

	po: Support more than 3 Rules-* extensions.
	* gettext-runtime/po/Makefile.in.in (DISTFILES.common): Add placeholders for
	extensions 4..6.
	(DISTFILES): Likewise.

2024-12-07  Bruno Haible  <bruno@clisp.org>

	build: Include Makevars at 'make' time, not at 'configure' time.
	* gettext-runtime/m4/po.m4 (AM_PO_SUBDIRS): Don't splice in Makevars here.
	* gettext-runtime/po/Makefile.in.in: Include Makevars explicitly.

2024-12-07  Bruno Haible  <bruno@clisp.org>

	build: No more need to rebuild a Makefile after POTFILES.in or LINGUAS changed.
	* gettext-runtime/m4/po.m4 (AM_PO_SUBDIRS): Don't set or substitute
	POMAKEFILEDEPS.
	(AM_POSTPROCESS_PO_MAKEFILE): Remove dependency from Makefile on LINGUAS.
	* gettext-runtime/po/Makefile.in.in (Makefile): Remove dependency on
	@POMAKEFILEDEPS@.

2024-12-07  Bruno Haible  <bruno@clisp.org>

	build: Read LINGUAS at 'make' time, not at 'configure' time.
	* gettext-runtime/m4/po.m4 (AM_PO_SUBDIRS): Move the obsolete ALL_LINGUAS check.
	Define DESIRED_LINGUAS. Don't compute ALL_LINGUAS, POFILES, UPDATEPOFILES,
	DUMMYPOFILES, GMOFILES, INST_LINGUAS, CATALOGS any more.
	(AM_POSTPROCESS_PO_MAKEFILE): Don't compute and substitute ALL_LINGUAS, POFILES,
	UPDATEPOFILES, DUMMYPOFILES, GMOFILES, PROPERTIESFILES, CLASSFILES, QMFILES,
	MSGFILES, RESOURCESDLLFILES, INST_LINGUAS, CATALOGS, JAVACATALOGS, QTCATALOGS,
	TCLCATALOGS, CSHARPCATALOGS any more. Don't add rules for Tcl and C# catalogs
	any more.
	* gettext-runtime/po/Makefile.in.in (ALL_LINGUAS, POFILES, GMOFILES,
	UPDATEPOFILES, DUMMYPOFILES): Define with a computed value.
	(DESIRED_LINGUAS): New macro.
	(INST_LINGUAS, CATALOGS): Define with a computed value.
	* gettext-tools/examples/po/Makefile.am (ALL_LINGUAS, POFILES, UPDATEPOFILES,
	DUMMYPOFILES): Define with a computed value.
	* gettext-tools/examples/hello-*/po/Makefile.am (ALL_LINGUAS, POFILES, GMOFILES,
	UPDATEPOFILES, DUMMYPOFILES): Define with a computed value.
	(DESIRED_LINGUAS): New macro.
	(INST_LINGUAS, CATALOGS): Define with a computed value.
	* gettext-tools/examples/hello-csharp*/po/Makefile.am (ALL_LINGUAS, POFILES,
	UPDATEPOFILES, DUMMYPOFILES, RESOURCESDLLFILES): Define with a computed value.
	Include .csharp-rules.
	(DESIRED_LINGUAS): New macro.
	(INST_LINGUAS, CATALOGS): Define with a computed value.
	(DISTCLEANFILES): New variable.
	* gettext-tools/examples/hello-tcl*/po/Makefile.am (ALL_LINGUAS, POFILES,
	UPDATEPOFILES, DUMMYPOFILES, MSGFILES): Define with a computed value.
	Include .tcl-rules.
	(DESIRED_LINGUAS): New macro.
	(INST_LINGUAS, CATALOGS): Define with a computed value.
	(DISTCLEANFILES): New variable.

2024-12-06  Bruno Haible  <bruno@clisp.org>

	build: Read POTFILES.in at 'make' time, not at 'configure' time.
	* gettext-runtime/m4/po.m4 (AM_PO_SUBDIRS): Bump GETTEXT_MACRO_VERSION to 0.24.
	Don't create POTFILES any more.
	(AM_POSTPROCESS_PO_MAKEFILE): Don't substitute POTFILES_DEPS any more.
	* gettext-runtime/po/Makefile.in.in (GETTEXT_MACRO_VERSION): Bump to 0.24.
	Mention 'make' requirements.
	(POTFILES, POTFILES_DEPS): Define with a computed value.
	($(DOMAIN).pot-update): Depend on POTFILES_DEPS, not POTFILES.
	(distclean): Don't remove POTFILES any more.
	* gettext-tools/examples/README: Mention 'make' requirements.
	* gettext-tools/examples/po/Makefile.am (POTFILES_DEPS): Define with a computed
	value.
	* gettext-tools/examples/hello-*/po/Makefile.am (POTFILES_DEPS): Likewise.

2024-12-06  Bruno Haible  <bruno@clisp.org>

	examples: hello-python: Make it work with Python 3.
	* gettext-tools/examples/hello-python/hello.py.in: Add parenthese around print's
	arguments.

2024-12-06  Bruno Haible  <bruno@clisp.org>

	build: Remove left-overs from remove-potcdate.sin.
	* gettext-runtime/po/Makefile.in.in (.SUFFIXES): Remove '.sed'.
	* gettext-tools/examples/po/Makefile.am (.SUFFIXES): Remove '.sed' and '.sin'.
	(.sin.sed): Remove rule.
	* gettext-tools/examples/hello-*/po/Makefile.am: Likewise.

2024-12-04  Bruno Haible  <bruno@clisp.org>

	intl: Fix a gcc 14 -Wmissing-variable-declarations warning.
	* gettext-runtime/intl/gettextP.h (_nl_state_lock): New declaration.
	* gettext-runtime/intl/bindtextdom.c (_nl_state_lock): Remove declaration.
	* gettext-runtime/intl/textdomain.c (_nl_state_lock): Remove declaration.

2024-12-04  Bruno Haible  <bruno@clisp.org>

	Refactor: Fix some gcc 14 -Wshadow warnings.
	* gettext-tools/src/x-c.c (phase5_get): Rename some local variables.
	* gettext-tools/src/x-php.c (phase4_get): Likewise.

2024-12-03  Bruno Haible  <bruno@clisp.org>

	Refactor: Use 'const' in a few more places.
	* gnulib-local/lib/mem-hash-map.h (hash_find_entry): Mark htab as a 'const' pointer.
	* gnulib-local/lib/mem-hash-map.c (lookup, hash_find_entry): Likewise.
	* gettext-tools/src/message.h (message_list_search): Mark mlp as a 'const' pointer.
	* gettext-tools/src/message.c (message_list_search): Likewise.
	* gettext-tools/src/msgl-ascii.h (is_ascii_string_list): Mark slp as a 'const' pointer.
	(is_ascii_message): Mark mp as a 'const' pointer.
	(is_ascii_message_list): Mark mlp as a 'const' pointer.
	(is_ascii_msgdomain_list): Mark mdlp as a 'const' pointer.
	* gettext-tools/src/msgl-ascii.c (is_ascii_string_list): Mark slp as a 'const' pointer.
	(is_ascii_message): Mark mp as a 'const' pointer.
	(is_ascii_message_list): Mark mlp as a 'const' pointer.
	(is_ascii_msgdomain_list): Mark mdlp as a 'const' pointer.
	* gettext-tools/src/msgl-ofn.h (message_has_filenames_with_spaces): Mark mp as a 'const' pointer.
	(message_list_has_filenames_with_spaces): Mark mlp as a 'const' pointer.
	(msgdomain_list_has_filenames_with_spaces): Mark mdlp as a 'const' pointer.
	* gettext-tools/src/msgl-ofn.c (message_has_filenames_with_spaces): Mark mp as a 'const' pointer.
	(message_list_has_filenames_with_spaces): Mark mlp as a 'const' pointer.
	(msgdomain_list_has_filenames_with_spaces): Mark mdlp as a 'const' pointer.
	* gettext-tools/src/msgl-check.h (check_message_list): Mark mlp as a 'const' pointer.
	* gettext-tools/src/msgl-check.c (check_plural, check_message_list): Likewise.

2024-12-03  Bruno Haible  <bruno@clisp.org>

	Update packaging instructions.
	* PACKAGING: Update file list. Update C# explanations.

2024-12-02  Bruno Haible  <bruno@clisp.org>

	Use a warranty disclaimer in all-permissive license notices.
	* gnulib-local/m4/*.m4: Update.
	* libtextstyle/gnulib-local/m4/*.m4: Update.
	* gettext-runtime/m4/*.m4: Update.
	* gettext-tools/m4/*.m4: Update.
	* m4/woe32-dll.m4: Update.

2024-12-02  Bruno Haible  <bruno@clisp.org>

	tests: Add lang-c++26 test.
	* gettext-tools/tests/lang-c++26: New file, based on
	gettext-tools/tests/lang-c++20.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2024-12-02  Bruno Haible  <bruno@clisp.org>

	tests: Fix lang-c++20 failure with g++ >= 14 or clang++ >= 19.
	* gettext-tools/tests/lang-c++20: Support newer C++ versions. Try option
	-std=gnu++26, necessary for newer C++ versions.

2024-12-02  Bruno Haible  <bruno@clisp.org>

	examples: Update hello-c++20 to work with g++ >= 14 and clang++ >= 19.
	* gettext-tools/examples/hello-c++20/configure.ac: Support newer C++ versions.
	Try option -std=gnu++26, necessary for newer C++ versions.
	* gettext-tools/examples/hello-c++20/hello.cc (main): Use different code in
	newer C++.

2024-12-01  Bruno Haible  <bruno@clisp.org>

	Fix compilation error with libxml2 >= 2.12.0 and gcc >= 14.
	Reported by Sam James <sam@gentoo.org>
	at <https://savannah.gnu.org/bugs/?66506>.

	* gettext-tools/src/its.c: Include <libxml/xmlversion.h>.
	(structured_error): Adapt to API change.

2024-12-01  Bruno Haible  <bruno@clisp.org>

	Update NEWS.
	* NEWS: Move an entry.

2024-12-01  Bruno Haible  <bruno@clisp.org>

	examples: Use infrastructure from gettext version 0.23.
	* gettext-tools/examples/hello-*/configure.ac: Use AM_GNU_GETTEXT_VERSION with
	version 0.23.
	* gettext-tools/examples/hello-c++-kde/configure.in.in: Likewise.
	* gettext-tools/examples/hello-*/m4/Makefile.am: Update .m4 file list.

2024-12-01  Bruno Haible  <bruno@clisp.org>

	Update translations from TP.
	* gettext-runtime/po/*.po: Update from TP.
	* gettext-tools/po/*.po: Update from TP.
	* gettext-tools/po/LINGUAS: Add ka.
	* gettext-tools/examples/po/*.po: Update from TP.

2024-12-01  Bruno Haible  <bruno@clisp.org>

	Prepare for 0.23 release.
	* gettext-runtime/doc/matrix.texi: Update from TP.
	* gettext-runtime/doc/nls.texi (STATUS): Update.
	* gettext-runtime/po/Makefile.in.in: Bump Origin version and
	GETTEXT_MACRO_VERSION.
	* gettext-runtime/m4/po.m4 (AM_PO_SUBDIRS): Bump GETTEXT_MACRO_VERSION
	accordingly.
	* gettext-runtime/m4/gettext.m4: Update comments.
	* gettext-runtime/intl/libgnuintl.in.h (LIBINTL_VERSION): Bump.
	* libtextstyle/version.sh: Update VERSION_NUMBER, RELEASE_DATE.
	* gettext-tools/libgettextpo/gettext-po.in.h (LIBGETTEXTPO_VERSION): Bump.
	* gettext-runtime/intl/Makefile.am (LTV_*): Bump to 12:1:4.
	* libtextstyle/lib/Makefile.am (LTV_*): Bump to 2:2:2.
	* gettext-tools/libgettextpo/Makefile.am (LTV_*): Bump to 5:11:5.
	* gettext-runtime/src/envsubst.c (main): Update copyright year in --version
	output.
	* gettext-runtime/src/gettext.c (main): Likewise.
	* gettext-runtime/src/gettext.sh.in (func_version): Likewise.
	* gettext-runtime/src/ngettext.c (main): Likewise.
	* gettext-tools/src/cldr-plurals.c (main): Likewise.
	* gettext-tools/src/hostname.c (main): Likewise.
	* gettext-tools/src/msgattrib.c (main): Likewise.
	* gettext-tools/src/msgcat.c (main): Likewise.
	* gettext-tools/src/msgcmp.c (main): Likewise.
	* gettext-tools/src/msgcomm.c (main): Likewise.
	* gettext-tools/src/msgconv.c (main): Likewise.
	* gettext-tools/src/msgen.c (main): Likewise.
	* gettext-tools/src/msgexec.c (main): Likewise.
	* gettext-tools/src/msgfilter.c (main): Likewise.
	* gettext-tools/src/msgfmt.c (main): Likewise.
	* gettext-tools/src/msggrep.c (main): Likewise.
	* gettext-tools/src/msginit.c (main): Likewise.
	* gettext-tools/src/msgmerge.c (main): Likewise.
	* gettext-tools/src/msgunfmt.c (main): Likewise.
	* gettext-tools/src/msguniq.c (main): Likewise.
	* gettext-tools/src/recode-sr-latin.c (main): Likewise.
	* gettext-tools/src/urlget.c (main): Likewise.
	* gettext-tools/src/xgettext.c (main): Likewise.
	* gettext-tools/misc/convert-archive.in (func_version): Likewise.
	* gettext-tools/misc/gettextize.in (func_version): Likewise.
	* gettext-tools/misc/autopoint.in: Likewise. Accept version 0.23.
	* gettext-tools/configure.ac (ARCHIVE_VERSION): Bump to 0.23.
	* NEWS, gettext-runtime/NEWS: Update.

2024-12-01  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.

2024-12-01  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2024-12-01  Bruno Haible  <bruno@clisp.org>

	xgettext: C: Revisit "hexadecimal escape sequence out of range" warnings.
	Reported by Vaclav Slavik <vaclav@slavik.io>
	at <https://savannah.gnu.org/bugs/?65053>.

	* gettext-tools/src/x-c.c (get_string_element): Add context argument. Don't warn
	for character literals. For wide strings, use a different warning and complain
	about "out of range" only for values >= 0x110000.
	(phase5_get): Distinguish normal string literals and wide string literals.

2024-11-30  Bruno Haible  <bruno@clisp.org>

	intl: Fix lang-c++ failure on MSVC, caused by last commit.
	* gettext-runtime/intl/libgnuintl.in.h (_INTL_HAS_FORCE_INLINE,
	_INTL_FORCE_INLINE): New macros.
	(_INTL_REDIRECT_INLINE): Don't define in C++ mode when _INTL_HAS_FORCE_INLINE
	is not set.

2024-11-28  Bruno Haible  <bruno@clisp.org>

	intl: Avoid conflict between libintl.h and some C++ header files.
	Reported Pierre Ossman <ossman@cendio.se>
	at <https://savannah.gnu.org/bugs/?64006>.

	* gettext-runtime/intl/libgnuintl.in.h (*printf, newlocale, duplocale,
	freelocale, setlocale): Use _INTL_REDIRECT_INLINE or _INTL_ASM as alternatives
	to _INTL_REDIRECT_MACROS, avoiding conflicts with inline functions in mingw
	and MSVC <stdio.h>.

2024-11-28  Bruno Haible  <bruno@clisp.org>

	intl: Avoid possible error from libintl.h in C++ mode.
	* gettext-runtime/intl/libgnuintl.in.h (gettext, dgettext, dcgettext, ngettext,
	dngettext, dcngettext, textdomain, bindtextdomain, wbindtextdomain,
	bind_textdomain_codeset): In the _INTL_REDIRECT_INLINE redirects, in C++ mode,
	avoid a compilation error if the function is globally declared in some .h file.

2024-11-27  Bruno Haible  <bruno@clisp.org>

	doc: Avoid @table, as it cannot be used to produce decent-looking output.

2024-11-27  Bruno Haible  <bruno@clisp.org>

	doc: Mention C.UTF-8 locale.
	Reported by nl6720 at <https://savannah.gnu.org/bugs/?62815>.

	* gettext-tools/doc/gettext.texi (Locale Names): Mention the C.UTF-8 locale.

2024-11-27  Bruno Haible  <bruno@clisp.org>

	Add installation information for the tarball users and from a git checkout.
	We want to have an INSTALL file that contains installation instructions for
	the tarball users. These instructions are necessarily package specific,
	because they need to list the prerequisites or reference the DEPENDENCIES
	file.

	Additionally, many people who are not aware that tarballs are the primary
	means for source code distribution of GNU packages check out the git repository
	and then expect to see instructions for installing from that git checkout
	in the INSTALL file. See e.g. <https://savannah.gnu.org/bugs/?62196>.

	Unfortunately, both Automake (with strictness option = 'gnu') and 'bootstrap'
	both contain code to copy the generic (not package specific) installation
	instructions to the file 'INSTALL'. This is not what we want, so we disable
	it. (Other packages handle this issue by putting part of the installation
	instructions into the README file. This is suboptimal, because this is not
	what the README file is for.)

	* autogen.sh: Import INSTALL.generic from gnulib.
	* INSTALL: Entirely rewritten, based on poke/INSTALL.
	* Makefile.am (EXTRA_DIST): Add INSTALL.generic.
	* libtextstyle/autogen.sh: Import INSTALL.generic from gnulib.
	* libtextstyle/INSTALL: Entirely rewritten, based on poke/INSTALL.
	* libtextstyle/Makefile.am (EXTRA_DIST): Add INSTALL.generic.

2024-11-27  Bruno Haible  <bruno@clisp.org>

	lang-perl-*: Avoid FAIL on macOS.
	Reported by Hanspeter Niederstrasser <nieder@users.sourceforge.net>
	at <https://savannah.gnu.org/bugs/?66461>.

	* gettext-tools/tests/lang-perl-1: On macOS, don't test the ISO-8859-1 locale.
	* gettext-tools/tests/lang-perl-2: Likewise.

2024-11-24  Bruno Haible  <bruno@clisp.org>

	Fix compilation error when pgettext is used.
	Reported by Friedrich Beckmann <friedrich.beckmann@posteo.de> in
	<https://lists.gnu.org/archive/html/bug-gnulib/2024-11/msg00189.html>.

	* gnulib-local/lib/gettext.h: Include <locale.h>.

2024-11-22  Bruno Haible  <bruno@clisp.org>

	Upgrade to libtool 2.5.4.
	* m4/libtool.m4: Update from libtool-2.5.4.
	* m4/ltversion.m4: Likewise.
	* build-aux/ltmain.sh: Likewise.

2024-11-19  Bruno Haible  <bruno@clisp.org>

	po: Fix build failure with parallel make.
	Reported by Lubomir Rintel <lkundrak@v3.sk> in
	<https://lists.gnu.org/archive/html/bug-gettext/2022-06/msg00022.html>.

	* gettext-runtime/po/Makefile.in.in (.NOTPARALLEL): Add this special target.

2024-11-19  Bruno Haible  <bruno@clisp.org>

	doc: Improve typography in man pages.
	Patch by наб <nabijaczleweli@nabijaczleweli.xyz> in
	<https://lists.gnu.org/archive/html/bug-gettext/2022-01/msg00019.html>.

	* gettext-runtime/man/bind_textdomain_codeset.3.in: After "e.g." or "i.e.",
	use \&.

2024-11-19  Bruno Haible  <bruno@clisp.org>

	doc: Use GNU coding style in man pages.
	Reported by наб <nabijaczleweli@nabijaczleweli.xyz> in
	<https://lists.gnu.org/archive/html/bug-gettext/2022-01/msg00019.html>.

	* gettext-runtime/man/gettext.3.in: In C code snippets, put a space before '('
	and after ','.
	* gettext-runtime/man/bind_textdomain_codeset.3.in: Likewise.

2024-11-19  Bruno Haible  <bruno@clisp.org>

	xgettext: PHP: Stop recognizing ASP tags <% and %> (removed in PHP 7.0).
	Reported by David Robinson <dave@netterra.com> in
	<https://lists.gnu.org/archive/html/bug-gettext/2021-10/msg00000.html>.

	* gettext-tools/src/x-php.c (skip_html): Don't recognize '<%' and '<%='
	any more.
	(phase2_getc, phase3_getc, phase4_get): In comments, don't treat '%>' like '?>'
	any more.

2024-11-19  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Extend the function po_message_set_format.
	Reported by Alexander Potashev <aspotashev@gmail.com>
	at <https://savannah.gnu.org/bugs/?61160>.

	* gettext-tools/libgettextpo/gettext-po.c (po_message_set_format): Support a
	negative value.
	* gettext-tools/libgettextpo/gettext-po.in.h (po_message_set_format): Mention
	effects of po_message_set_format (..., -1).
	* gettext-tools/doc/gettext.texi (po_message_t API): Likewise.
	* NEWS: Mention the change.

2024-11-19  Bruno Haible  <bruno@clisp.org>

	Improve comments.
	* gettext-tools/src/locating-rules.h (locating_rule_list_locate): Improve
	specification.
	* gettext-tools/src/sentence.h (sentence_end): Likewise.

2024-11-19  Bruno Haible  <bruno@clisp.org>

	Avoid undefined behaviour.
	* gettext-tools/src/quote.h (scan_quoted): Add comment. Avoid undefined
	behaviour if length==0.

2024-11-16  Bruno Haible  <bruno@clisp.org>

	Fix "gcc -Wzero-as-null-pointer-constant" warnings.
	* libtextstyle/gnulib-local/lib/libcroco/cr-enc-handler.c (gv_default_aliases):
	Use NULL, not 0, to denote a null pointer.
	* libtextstyle/gnulib-local/lib/libcroco/cr-om-parser.c
	(cr_om_parser_parse_paths_to_cascade): Likewise.
	* gettext-tools/libgrep/kwset.c (kwsalloc, kwsincr, kwsprep, cwexec, kwsexec):
	Likewise.

2024-11-08  Bruno Haible  <bruno@clisp.org>

	Refactor.
	* gettext-tools/src/cldr-plural-exp.c: Don't include <unistd.h>, unistr.h.
	* gettext-tools/src/cldr-plural.y: Don't include <unistd.h>.

2024-11-08  Bruno Haible  <bruno@clisp.org>

	Refactor.
	* gettext-tools/src/cldr-plural.y: Untabify.
	(struct cldr_plural_parse_args): New type, moved here from
	gettext-tools/src/cldr-plural-exp.h.
	(cldr_plural_parse): New function, moved here from
	gettext-tools/src/cldr-plural-exp.c.
	* gettext-tools/src/cldr-plural-exp.h: Reorder declarations.
	(struct cldr_plural_parse_args): Remove declaration.
	* gettext-tools/src/cldr-plural-exp.c: Don't include cldr-plural.h. Reorder
	functions.
	(cldr_plural_parse): Remove function.

2024-11-07  Bruno Haible  <bruno@clisp.org>

	Update the GFDL text.
	* libtextstyle/doc/fdl.texi: Update from gnulib/doc/fdl-1.3.texi.

2024-11-07  Bruno Haible  <bruno@clisp.org>

	Upgrade from GFDL 1.2 to GFDL 1.3.
	* gettext-runtime/libasprintf/fdl.texi: Update from gnulib/doc/fdl-1.3.texi.
	* gettext-tools/doc/fdl.texi: Likewise.
	* gettext-runtime/libasprintf/autosprintf.texi: Update reference.
	* gettext-tools/doc/gettext.texi: Likewise.

2024-11-07  Bruno Haible  <bruno@clisp.org>

	Update the GPL and LGPL text.
	* gettext-runtime/intl/COPYING.LIB: Update from
	<https://ftp.gnu.org/gnu/Licenses/lgpl-2.1.txt>.
	* gettext-runtime/libasprintf/COPYING.LIB: Likewise.
	* gettext-runtime/libasprintf/gpl.texi: Update from gnulib/doc/gpl-2.0.texi.
	* gettext-runtime/libasprintf/lgpl.texi: Update from gnulib/doc/lgpl-2.1.texi.
	* gettext-tools/doc/gpl.texi: Update from gnulib/doc/gpl-2.0.texi.
	* gettext-tools/doc/lgpl.texi: Update from gnulib/doc/lgpl-2.1.texi.

2024-11-06  Bruno Haible  <bruno@clisp.org>

	build: Fix "make distcheck" after the line-breaking algorithm changed, part 2.
	* gettext-tools/configure.ac (MSGMERGE): Test $cross_compiling, since
	$CROSS_COMPILING is not set at this point.

2024-10-28  Bruno Haible  <bruno@clisp.org>

	Update legally relevant info.
	* AUTHORS: Incorporate records from gnu.org:/gd/gnuorg/copyright.list.

2024-10-28  Bruno Haible  <bruno@clisp.org>

	doc: Improve usability of generated PDF.
	* gettext-tools/doc/gettext.texi: Use a brown colour for interactive links.

2024-10-25  Bruno Haible  <bruno@clisp.org>

	build: Fix "make distcheck" failure (regression 2024-10-23).
	* check-copyright-headers (func_check_file): Update after DISCLAIM was renamed.

2024-10-24  Bruno Haible  <bruno@clisp.org>

	doc: Add some words about dialects.
	Reported by John Cowan <cowan@ccil.org>
	at <https://savannah.gnu.org/bugs/?47838>.

	* gettext-tools/doc/gettext.texi (The LANGUAGE variable): Add a paragraph
	about Chinese.
	(Dialects): New section.

2024-10-23  Bruno Haible  <bruno@clisp.org>

	doc: Tweaks.
	* gettext-tools/doc/gettext.texi (Responsibilities): Tweaks, from
	Benno Schulenberg.

2024-10-23  Bruno Haible  <bruno@clisp.org>

	doc: Revise "Translators" chapter.
	* gettext-tools/doc/gettext.texi (Trans Intro 0, Trans Intro 1, Discussions,
	Organization, Information Flow): Remove sections.
	(Organization, Responsibilities): New sections.

2024-10-23  Bruno Haible  <bruno@clisp.org>

	Rename and distribute the disclaimer file.
	* gettext-tools/misc/disclaim-translations.txt: Renamed from
	gettext-tools/misc/DISCLAIM.
	* gettext-tools/Makefile.am (EXTRA_DIST): Update.
	(pkgdata_DATA): New variable.

2024-10-23  Bruno Haible  <bruno@clisp.org>

	build: Simplify.
	* gettext-tools/Makefile.am (gettextsrcdir): Remove variable.
	(pkgdata_SCRIPTS): Renamed from gettextsrc_SCRIPTS.

2024-10-23  Bruno Haible  <bruno@clisp.org>

	Fix test failure of autopoint-3 on Cygwin.
	It was broken since commit "tests: Use libtool in autopoint-3 test" (2014-09-05):
	The Makefile specified to link the 'hello' program without libtool
	(and thus Automake generated a direct link command without libtool),
	but the LDADD variable used @LTLIBINTL@. On Cygwin, this led to a use of
	the -R option, which the compiler does not understand:
	x86_64-pc-cygwin-gcc: error: unrecognized command line option ‘-R’; did you mean ‘-R’?

	* gettext-tools/tests/autopoint-3: Don't invoke LT_INIT. Use @LIBINTL@,
	not @LTLIBINTL@. Don't touch ltmain.sh.

2024-10-23  Bruno Haible  <bruno@clisp.org>

	Improve handling of Windows DLL directories when executing programs.
	Reported by Michele Locati <mlocati@gmail.com>
	at <https://savannah.gnu.org/bugs/?66356>.

	Revert commit e2839b591c from 2019-05-01. Instead, use gnulib's new feature.

	* gettext-tools/src/Makefile.am (DEFS): Define BINDIR.
	* gettext-tools/src/msginit.c: Don't include configmake.h.
	(main): Don't add BINDIR to PATH globally.
	(get_user_email, language_team_address, plural_forms): Pass a dll_dirs argument
	to create_pipe_in.
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Remove configmake.

2024-10-22  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gettext-tools/src/msgexec.c (process_string): Update create_pipe_out
	invocation.
	* gettext-tools/src/write-resources.c (execute_writing_input): Likewise.
	* gettext-tools/src/msginit.c (project_id, project_id_version, get_user_email,
	language_team_address, plural_forms): Update create_pipe_in invocations.
	* gettext-tools/src/read-csharp.c (execute_and_read_po_output): Likewise.
	* gettext-tools/src/read-java.c (execute_and_read_po_output): Likewise.
	* gettext-tools/src/read-resources.c (execute_and_read_po_output): Likewise.
	* gettext-tools/src/read-tcl.c (msgdomain_read_tcl): Likewise.
	* gettext-tools/src/x-ruby.c (extract_ruby): Likewise.
	* gettext-tools/src/urlget.c (execute_it, fetch): Update execute invocations.

2024-10-22  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2024-10-22  Bruno Haible  <bruno@clisp.org>

	Update the translation disclaimer.
	From Craig Topham <copyright-clerk@fsf.org>.

	* gettext-tools/misc/DISCLAIM: Update.

2024-10-21  Bruno Haible  <bruno@clisp.org>

	doc: Update after Automake changed.
	* gettext-tools/doc/gettextize.texi: Update now that Automake with option 'gnu'
	no longer requires ABOUT-NLS. Cf.
	<https://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=a2def8cdef>.

2024-10-18  Bruno Haible  <bruno@clisp.org>

	doc: Add an example regarding xgettext.
	Reported by Andrea G. Monaco <andrea.monaco@autistici.org> in
	<https://lists.gnu.org/archive/html/bug-gettext/2020-12/msg00036.html>.

	* gettext-tools/doc/xgettext.texi: Add an example.

2024-10-18  Bruno Haible  <bruno@clisp.org>

	xgettext: Python: Add test for warning that was broken in 0.21.x and 0.22.x.
	Reported by Max Smolens <msmolens@gmail.com> in
	<https://lists.gnu.org/archive/html/bug-gettext/2020-10/msg00001.html>.

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

2024-10-17  Bruno Haible  <bruno@clisp.org>

	doc: Clarify locale names and language names.
	Reported by Arfrever <arfrever.fta@gmail.com>
	at <https://savannah.gnu.org/bugs/?59062>.

	* gettext-runtime/doc/nls.texi (INSTALL Matters, Using This Package): Mention
	ll_CC as alterntive to ll, and that ll can be a 3-letter code.
	* gettext-tools/doc/gettext.texi (Locale Names, Header Entry, Installers):
	Likewise.

2024-10-15  Bruno Haible  <bruno@clisp.org>

	intl: Fix a memory leak.
	* gettext-runtime/intl/finddomain.c (_nl_find_domain): If there was an alias and
	_nl_explode_name or _nl_make_l10nflist fails, free the allocated memory. Avoid
	'goto'.

2024-10-15  Bruno Haible  <bruno@clisp.org>

	gettext.h: Avoid "warning: ISO C++ forbids variable length array" with -pedantic.
	Both "g++ -pedantic" and "clang++ -pedantic" warn about use of VLAs.
	Since we cannot distinguish "g++" from "g++ -pedantic" through a preprocessor
	macro, it's best to not use a VLA in C++.

	Reported by Jens Seidel <jensseidel@users.sf.net>
	via <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=547798>
	at <https://savannah.gnu.org/bugs/index.php?55149>.

	* gnulib-local/lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define
	to 0 in C++ mode.

2024-10-15  Bruno Haible  <bruno@clisp.org>

	msgen: Convert charset=CHARSET to charset=ASCII.
	Reported at <https://savannah.gnu.org/bugs/index.php?20923>.

	* gettext-tools/src/msgen.c: Include msgl-ascii.h, c-strstr.h, xalloc.h.
	(fill_header): New function, based on fill_header in msginit.c.
	(main): Invoke it.
	* gettext-tools/tests/msgen-1: Provide as input a POT file with charset=CHARSET,
	and verify that the output has charset=ASCII.

2024-10-15  Bruno Haible  <bruno@clisp.org>

	Refactor.
	* gettext-tools/src/msgl-header.h (header_set_charset): New declaration.
	* gettext-tools/src/msgl-header.c (header_set_charset): New function.
	* gettext-tools/src/msgl-iconv.c: Include msgl-header.h.
	(iconv_message_list_internal): Use header_set_charset.
	* gettext-tools/src/x-po.c: Include msgl-header.h.
	(extract): Use header_set_charset.
	* gettext-tools/src/FILES: Update.

2024-10-15  Bruno Haible  <bruno@clisp.org>

	its: Add ability to check *.its and *.loc files with XML Schema 1.1.
	* gettext-tools/src/its.xsd10: Renamed from gettext-tools/src/its.xsd.
	(RulesType): Enumerate all possible rules in the ITS namespace, instead of using
	a wildcard.
	(OtherRuleType): New element.
	* gettext-tools/src/its.xsd11: Copied from gettext-tools/src/its.xsd.
	(LocNoteRuleType): Enable assertion.
	* gettext-tools/src/locating-rules.xsd10: Renamed from
	gettext-tools/src/locating-rules.xsd.
	* gettext-tools/src/locating-rules.xsd11: Copied from
	gettext-tools/src/locating-rules.xsd.
	(LocatingRuleType): Enable assertion.
	* gettext-tools/src/Makefile.am (schema_DATA): Add its.xsd10, its.xsd11,
	locating-rules.xsd10, locating-rules.xsd11. Remove its.xsd, locating-rules.xsd.
	* gettext-tools/build-aux/xml-validate-10.in: New file.
	* gettext-tools/build-aux/xml-validate-11.in: New file.
	* gettext-tools/configure.ac: Substitute HAVE_JAVAEXEC.
	(AC_CONFIG_FILES): Create build-aux/xml-validate-10, build-aux/xml-validate-11.
	* gettext-tools/Makefile.am (DISTCLEANFILES): Add build-aux/xml-validate-10,
	build-aux/xml-validate-11.
	* gettext-tools/its/Makefile.am: Revert last commit.
	(check-local): Check each file both using the XML Schema 1.0 and the XML Schema
	1.1.
	* gettext-tools/doc/gettext.texi (ITS Rules): Mention the two versions of
	its.xsd.
	(Location Rules): Mention the two versions of locating-rules.xsd.
	* HACKING: Mention Xerces2-J.

2024-10-14  Bruno Haible  <bruno@clisp.org>

	its: Work around xmllint bug.
	* gettext-tools/its/Makefile.am (check-local): Skip the ITS_FILES checks if
	xmllint cannot grok the its.xsd schema.

2024-10-14  Bruno Haible  <bruno@clisp.org>

	po: Add a copyright and license notice to the Rules-quot auxiliary files.
	Reported by Joël Krähemann <jkraehemann@gmail.com>
	at <https://savannah.gnu.org/bugs/?57973>.

	* gettext-runtime/po/quot.sed: Add a copyright and all-permissive license
	notice.
	* gettext-runtime/po/boldquot.sed: Likewise.
	* gettext-runtime/po/en@quot.header: Likewise.
	* gettext-runtime/po/en@boldquot.header: Likewise.
	* gettext-runtime/po/insert-header.sed: Use an all-permissive license notice.
	* gettext-runtime/po/Rules-quot: Likewise.
	(.insert-header.po-update-en): After running the *.insert-header script,
	eliminate lines that start with %%.

2024-10-14  Bruno Haible  <bruno@clisp.org>

	po: Assume a 'sed' that supports '#' for introducing comments.
	This is standardized in POSIX since POSIX:2001 (= SUSv3).
	It is supported on all platforms that I could test:
	GNU, macOS 10.5, FreeBSD 5, NetBSD 7, OpenBSD 6, AIX 7, Solaris 10 and 11,
	busybox (2019).

	* gettext-runtime/po/remove-potcdate.sed: Renamed from
	gettext-runtime/po/remove-potcdate.sin.
	* gettext-runtime/po/Makefile.in.in (DISTFILES.common): Update.
	(.SUFFIXES): Remove .sin.
	(.sin.sed): Remove rule.
	($(DOMAIN).pot-update): Use remove-potcdate.sed in $(srcdir).
	(mostlyclean): Don't remove remove-potcdate.sed.
	* autogen.sh: Update.
	* Makefile.am (distcheck-hook): Update.
	* gettext-tools/examples/po/remove-potcdate.sed: Renamed from
	gettext-tools/examples/po/remove-potcdate.sin.
	* gettext-tools/examples/po/Makefile.am ($(DOMAIN).pot-update): Use
	remove-potcdate.sed in $(srcdir).
	(MOSTLYCLEANFILES): Don't add remove-potcdate.sed.
	(EXTRA_DIST): Update.
	* gettext-tools/examples/hello-*/po/Makefile.am ($(DOMAIN).pot-update): Use
	remove-potcdate.sed in $(srcdir).
	(MOSTLYCLEANFILES): Don't add remove-potcdate.sed.
	(EXTRA_DIST): Update.
	* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile
	($(DOMAIN).pot-update): Remove dependency on remove-potcdate.sed.
	(internal-clean): Remove rule.
	* gettext-tools/examples/hello-*/autogen.sh: Update.
	* gettext-tools/examples/hello-*/autoclean.sh: Update.

2024-10-14  Bruno Haible  <bruno@clisp.org>

	po: Assume a 'sed' that supports '#' for introducing comments.
	This is standardized in POSIX since POSIX:2001 (= SUSv3).
	It is supported on all platforms that I could test:
	GNU, macOS 10.5, FreeBSD 5, NetBSD 7, OpenBSD 6, AIX 7, Solaris 10 and 11,
	busybox (2019).

	* gettext-runtime/po/insert-header.sed: Renamed from
	gettext-runtime/po/insert-header.sin.
	* gettext-runtime/po/Rules-quot (DISTFILES.common.extra1): Update.
	(en@quot.insert-header, en@boldquot.insert-header): Use insert-header.sed
	instead of insert-header.sin.
	* autogen.sh: Update.
	* Makefile.am (distcheck-hook): Update.
	* gettext-tools/examples/hello-*/autogen.sh: Update.
	* gettext-tools/doc/gettext.texi (po/LINGUAS): Update.

2024-10-14  Bruno Haible  <bruno@clisp.org>

	its: Extend schema so that docbook4.its and docbook5.its pass.
	* gettext-tools/src/its.xsd: Add an <any> element that catches other rules.

2024-10-13  Bruno Haible  <bruno@clisp.org>

	tests: Add more unit tests regarding Desktop files.
	Reported by Felix Riemann at <https://savannah.gnu.org/bugs/?51177>
	and by Daniel <daniel.rf710@gmail.com>
	at <https://savannah.gnu.org/bugs/?63455>.

	* gettext-tools/tests/xgettext-desktop-3: New file.
	* gettext-tools/tests/msgfmt-desktop-4: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add them.

2024-10-13  Bruno Haible  <bruno@clisp.org>

	xgettext: Desktop: Correct the line numbers in the output and in error messages.
	* gettext-tools/src/read-desktop.c (struct token_ty): Add a 'lineno' field.
	(desktop_lex): Correct the line numbers in error messages. For a token of type
	token_type_pair, store the line number.
	(desktop_parse): Pass the line number from the token to
	desktop_reader_handle_pair.
	* gettext-tools/tests/xgettext-desktop-1: Update expected output.
	* gettext-tools/tests/xgettext-desktop-2: Likewise.
	* NEWS: Mention the change.

2024-10-13  Bruno Haible  <bruno@clisp.org>

	tests: Make it easier to single-step the msgfmt-* tests.
	* gettext-tools/tests/msgfmt-desktop-1: Assign a default to MSGFMT.
	* gettext-tools/tests/msgfmt-desktop-2: Likewise.
	* gettext-tools/tests/msgfmt-desktop-3: Likewise.
	* gettext-tools/tests/msgfmt-xml-1: Likewise.
	* gettext-tools/tests/msgfmt-xml-2: Likewise.
	* gettext-tools/tests/msgfmt-xml-3: Likewise.
	* gettext-tools/tests/msgfmt-xml-4: Likewise.
	* gettext-tools/tests/msgfmt-xml-5: Likewise.

2024-10-13  Bruno Haible  <bruno@clisp.org>

	msgmerge, msginit: Reject POT files with non-ASCII character, except in UTF-8, part 2.
	* gettext-tools/src/msgl-charset.c (check_pot_charset): Tweak the new code.

2024-10-13  Bruno Haible  <bruno@clisp.org>

	msgmerge, msginit: Reject POT files with non-ASCII characters, except in UTF-8.
	Reported by Martin Quinson <mquinson@debian.org>
	at <https://savannah.gnu.org/bugs/?65104>.

	* gettext-tools/src/msgl-charset.h (check_pot_charset): New declaration.
	* gettext-tools/src/msgl-charset.c: Include msgl-ascii.h.
	(check_pot_charset): New function.
	* gettext-tools/src/msginit.c: Include msgl-charset.h.
	(main): Invoke check_pot_charset.
	* gettext-tools/src/msgmerge.c: Include msgl-charset.h.
	(merge): Invoke check_pot_charset.
	* gettext-tools/src/FILES: Update.
	* gettext-tools/tests/testdata/nonascii.pot: New file.
	* gettext-tools/tests/msginit-5: New file.
	* gettext-tools/tests/msgmerge-charset-4: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add them.
	(EXTRA_DIST): Add testdata/nonascii.pot.

2024-10-13  Bruno Haible  <bruno@clisp.org>

	tests: Reorganize msgmerge tests.
	* gettext-tools/tests/msgmerge-9: Renamed from gettext-tools/tests/msgmerge-18.
	* gettext-tools/tests/msgmerge-10: Renamed from gettext-tools/tests/msgmerge-19.
	* gettext-tools/tests/msgmerge-11: Renamed from gettext-tools/tests/msgmerge-20.
	* gettext-tools/tests/msgmerge-12: Renamed from gettext-tools/tests/msgmerge-25.
	* gettext-tools/tests/msgmerge-13: Renamed from gettext-tools/tests/msgmerge-26.
	* gettext-tools/tests/msgmerge-14: Renamed from gettext-tools/tests/msgmerge-27.
	* gettext-tools/tests/msgmerge-15: Renamed from gettext-tools/tests/msgmerge-29.
	* gettext-tools/tests/Makefile.am (TESTS): Update.

2024-10-13  Bruno Haible  <bruno@clisp.org>

	tests: Reorganize msgmerge tests.
	* gettext-tools/tests/msgmerge-6: Renamed from gettext-tools/tests/msgmerge-9.
	* gettext-tools/tests/msgmerge-7: Renamed from gettext-tools/tests/msgmerge-15.
	* gettext-tools/tests/msgmerge-8: Renamed from gettext-tools/tests/msgmerge-17.
	* gettext-tools/tests/Makefile.am (TESTS): Update.

2024-10-13  Bruno Haible  <bruno@clisp.org>

	tests: Reorganize msgmerge tests.
	* gettext-tools/tests/msgmerge-domain-1: Renamed from gettext-tools/tests/msgmerge-7.
	* gettext-tools/tests/msgmerge-domain-2: Renamed from gettext-tools/tests/msgmerge-8.
	* gettext-tools/tests/msgmerge-charset-1: Renamed from gettext-tools/tests/msgmerge-6.
	* gettext-tools/tests/msgmerge-charset-2: Renamed from gettext-tools/tests/msgmerge-14.
	* gettext-tools/tests/msgmerge-charset-3: Renamed from gettext-tools/tests/msgmerge-16.
	* gettext-tools/tests/msgmerge-format-1: Renamed from gettext-tools/tests/msgmerge-13.
	* gettext-tools/tests/msgmerge-format-2: Renamed from gettext-tools/tests/msgmerge-21.
	* gettext-tools/tests/msgmerge-format-3: Renamed from gettext-tools/tests/msgmerge-28.
	* gettext-tools/tests/msgmerge-plural-1: Renamed from gettext-tools/tests/msgmerge-10.
	* gettext-tools/tests/msgmerge-plural-2: Renamed from gettext-tools/tests/msgmerge-11.
	* gettext-tools/tests/msgmerge-plural-3: Renamed from gettext-tools/tests/msgmerge-12.
	* gettext-tools/tests/msgmerge-plural-4: Renamed from gettext-tools/tests/msgmerge-22.
	* gettext-tools/tests/msgmerge-plural-5: Renamed from gettext-tools/tests/msgmerge-23.
	* gettext-tools/tests/msgmerge-plural-6: Renamed from gettext-tools/tests/msgmerge-24.
	* gettext-tools/tests/Makefile.am (TESTS): Update.

2024-10-13  Bruno Haible  <bruno@clisp.org>

	its: Support DocBook XML, part 2.
	Reported by Guillem Jover <guillem@hadrons.org>
	at <https://savannah.gnu.org/bugs/?52415>.

	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add xstring-desc.
	* gettext-tools/src/its.c: Include xstring-desc.h, c-ctype.h, unistr.h.
	(SIZEOF): New macro.
	(its_extension_escape_rule_constructor, its_extension_escape_rule_eval): Handle
	the 'unescape-if' attribute.
	(starts_with_character_reference): Add an ucs_p parameter.
	(_its_encode_special_chars_for_merge): Update.
	(set_doc_encoding_utf8, _its_is_valid_simple_gen_xml, _its_is_valid_simple_xml,
	is_valid_xhtml_element, _its_is_valid_simple_xhtml, is_valid_html_element,
	is_no_end_html_element, _its_is_valid_simple_html, _its_set_simple_xml_content,
	_its_set_simple_html_content): New functions.
	(its_merge_context_merge_node): Implement the 'unescape-if' attribute.
	* gettext-tools/src/its-extensions.xsd (EscapeRuleType): Add 'unescape-if'
	attribute.
	* gettext-tools/its/docbook4.its: Add an <escapeRule>.
	* gettext-tools/its/docbook5.its: Likewise.
	* gettext-tools/tests/xgettext-docbook-1: New file.
	* gettext-tools/tests/msgfmt-xml-5: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add them.
	* gettext-tools/doc/gettext.texi (ITS Rules): Document the 'unescape-if'
	attribute of the escapeRule.
	* NEWS: Mention the change.

2024-10-13  Bruno Haible  <bruno@clisp.org>

	its: Support DocBook XML, part 1.
	Reported by Guillem Jover <guillem@hadrons.org>
	at <https://savannah.gnu.org/bugs/?52415>.

	* gettext-tools/its/docbook4.its: New file, copied from
	https://github.com/itstool/itstool file its/docbook.its.
	* gettext-tools/its/docbook5.its: New file, copied from
	https://github.com/itstool/itstool file its/docbook5.its.
	* gettext-tools/its/docbook.loc: New file.
	* gettext-tools/its/Makefile.am (ITS_FILES): Add docbook4.its, docbook5.its.
	(LOC_FILES): Add docbook.loc.

2024-10-13  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2024-10-13  Bruno Haible  <bruno@clisp.org>

	its: Improve error handling.
	* gettext-tools/src/its.c: Include libxml/xmlerror.h.
	(structured_error): New function.
	(its_rule_list_add_from_file, its_rule_list_add_from_string,
	its_rule_list_extract, its_merge_context_alloc): Exit upon fatal error.
	Set the structured_error for the rest of the function.
	(its_merge_context_merge, its_merge_context_write): Set the structured_error.

2024-10-12  Bruno Haible  <bruno@clisp.org>

	its: Simplify escape handling change from 2024-10-01.
	* gettext-tools/src/its.c: Add comments about evaluation rules.
	(its_extension_escape_rule_eval): Handle local attribute "escape" here...
	(its_rule_list_extract_text, its_merge_context_merge_node): ... not here.

2024-10-11  Bruno Haible  <bruno@clisp.org>

	its: Fix NULL dereference (regression 2024-10-01).
	* gettext-tools/src/its.c (_its_copy_node_with_attributes): Handle attributes
	without namespace correctly.

2024-10-11  Bruno Haible  <bruno@clisp.org>

	build: Add support for --enable-relocatable in mingw builds on Cygwin hosts, part 2.
	Reported by Michele Locati <michele@locati.it> in
	<https://savannah.gnu.org/bugs/?66319>.

	* gettext-tools/configure.ac: Invoke gl_CONFIGMAKE_PREP and fix up the values of
	pkgdatadir, pkgincludedir, pkglibdir, pkglibexecdir.
	Invoke gl_BUILD_TO_HOST_LIBDIR, gl_BUILD_TO_HOST_LIBEXECDIR,
	gl_BUILD_TO_HOST_PKGDATADIR, gl_BUILD_TO_HOST_PKGLIBDIR.
	* gettext-tools/src/Makefile.am (pkgdatadir, pkglibdir, pkglibexecdir): Remove
	variables.
	(jardir): Simplify.
	(jardir_c_make, projectsdir_c_make): New variables.
	(*_CPPFLAGS): Fix value of BISON_LOCALEDIR, GETTEXTJAR, LIBDIR, LIBEXECDIR,
	GETTEXTDATADIR, PROJECTSDIR.

2024-10-11  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2024-10-11  Bruno Haible  <bruno@clisp.org>

	its: Allow a specific XML namespace for .metainfo.xml / .appdata.xml files.
	Reported by Claude Paroz <claude@2xlibre.net>
	at <https://savannah.gnu.org/bugs/?54472>.

	* gettext-tools/its/metainfo.its: Duplicate the rules for XML instances that
	use the metainfo namespace.
	* gettext-tools/tests/xgettext-appdata-3: New file, based on
	gettext-tools/tests/xgettext-appdata-2.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2024-10-10  Bruno Haible  <bruno@clisp.org>

	build: Remove left-over files from the C# compiler of 'dotnet'.
	* gettext-tools/src/Makefile.am (CLEANFILES): Add msgfmt.net.pdb,
	msgunfmt.net.pdb.

2024-10-09  Bruno Haible  <bruno@clisp.org>

	build: Avoid "warning: stray \ before -" from GNU grep ≥ 3.8.
	* build-aux/jar-cf: Remove an unnecessary backslash.

2024-10-09  Bruno Haible  <bruno@clisp.org>

	build: Revert the revert, and use Sergey Poznyakoff's fix instead.
	Sergey's fix is at
	<https://debbugs.gnu.org/cgi/bugreport.cgi?msg=17;bug=73620> =
	<https://lists.gnu.org/archive/html/bug-libtool/2024-10/msg00008.html>.

2024-10-09  Bruno Haible  <bruno@clisp.org>

	build: Revert build failure on CentOS and Alma Linux (regression 2024-09-26).
	build-aux/ltmain.sh: Revert libtool commit
	0e1b33332429cd578367bd0ad420c065d5caf0ac.

2024-10-09  Bruno Haible  <bruno@clisp.org>

	C#: Add support for dotnet.
	Reported by Michele Locati <mlocati@gmail.com>
	at <https://savannah.gnu.org/bugs/index.php?66292>.

	* DEPENDENCIES: Mention dotnet as an alternative to Mono.
	* NEWS: Mention the change.
	* PACKAGING: Mention the new file $prefix/lib/gettext/GNU.Gettext.dll.
	* gettext-runtime/intl-csharp/Makefile.am (pkglibdir): New variable.
	(CLEANFILES): Add GNU.Gettext.pdb.
	(install-dll-no, install-dll-yes): Install also into $(pkglibdir).
	(installdirs-dll, uninstall-dll): Update accordingly.
	* gettext-runtime/intl-csharp/intl.cs (GettextResourceSet): Add field Table.
	Override GetEnumerator, GetObject to handle it. Change the Keys method to handle
	it as well.
	* gettext-tools/tests/lang-csharp: In the program, on Windows, produce UTF-8
	output with Unix end-of-lines and set the culture manually.

2024-10-09  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2024-10-07  Bruno Haible  <bruno@clisp.org>

	Improve C# support on Cygwin.
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add cygpath.
	* gettext-tools/src/read-csharp.c: Include cygpath.h.
	(msgdomain_read_csharp): Convert the directory passed to msgunfmt.net.exe from
	Cygwin to Windows syntax.
	* gettext-tools/src/read-resources.c: Include cygpath.h.
	(read_resources_file): Convert the file name passed to msgunfmt.net.exe from
	Cygwin to Windows syntax.
	* gettext-tools/src/write-resources.c: Include cygpath.h.
	(msgdomain_write_csharp_resources): Convert the file name passed to
	msgfmt.net.exe from Cygwin to Windows syntax.

2024-10-07  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2024-10-06  Bruno Haible  <bruno@clisp.org>

	msgfmt: New option --replace-text.
	Reported by Asterix <asterix@lagaule.org>
	at <https://savannah.gnu.org/bugs/?52159>.

	* gettext-tools/src/its.h (its_merge_context_merge): Add parameter replace_text.
	* gettext-tools/src/its.c (its_merge_context_merge_node): Add parameter
	replace_text.
	(its_merge_context_merge): Likewise.
	* gettext-tools/src/write-xml.h (msgdomain_write_xml, msgdomain_write_xml_bulk):
	Add parameter replace_text.
	* gettext-tools/src/write-xml.c (msgdomain_write_xml_bulk): Add parameter
	replace_text.
	(msgdomain_write_xml): Likewise.
	* gettext-tools/src/msgfmt.c (xml_replace_text): New variable.
	(long_options): Add --replace-text.
	(main): Handle --replace-text.
	(usage): Document option --replace-text.
	* gettext-tools/tests/msgfmt-xml-4: New file, based on
	gettext-tools/tests/msgfmt-xml-1.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.
	* gettext-tools/doc/msgfmt.texi: Document option --replace-text.
	* NEWS: Mention the change.

2024-10-06  Bruno Haible  <bruno@clisp.org>

	its: Improve comments in *.its files.
	* gettext-tools/its/glade2.its: Improve comments.
	* gettext-tools/its/gtkbuilder.its: Likewise.
	* gettext-tools/its/gsettings.its: Likewise.
	* gettext-tools/its/metainfo.its: Likewise.

2024-10-05  Bruno Haible  <bruno@clisp.org>

	doc: Update copyright year.

2024-10-05  Bruno Haible  <bruno@clisp.org>

	doc: Document how to use custom *.its files.
	Reported by Stefan Brüns <stefan.bruens@rwth-aachen.de>
	at <https://savannah.gnu.org/bugs/?64026>.

	* gettext-tools/src/search-path.c (get_search_path): Improve comments.
	* gettext-tools/doc/xgettext.texi: New subsection "Options for XML input files".
	Move the description of --its out of subsection "Output details".
	* gettext-tools/doc/msgfmt.texi: Document GETTEXTDATADIRS.
	* gettext-tools/doc/gettext.texi (Installers): Document the
	PREFIX/share/gettext/its/ directory.

2024-10-05  Bruno Haible  <bruno@clisp.org>

	doc: Mention some related packages.
	* gettext-tools/doc/gettext.texi (OmegaT, Virtaal, Vim): New sections.
	(Other tools): Mention the Translate Toolkit.
	* gettext-tools/doc/lang-python.texi: Mention Babel.

2024-10-03  Bruno Haible  <bruno@clisp.org>

	its: Fix the value of the xml:lang attribute inserted by msgfmt.
	Reported by Matthias Klumpp <matthias@tenstral.net>
	at <https://savannah.gnu.org/bugs/?64025>.

	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add bcp47.
	* gettext-tools/src/its.c: Include "bcp47.h".
	(its_merge_context_merge_node): Convert the language / locale name to BCP 47
	syntax before storing it in the xml:lang attribute.
	* gettext-tools/tests/msgfmt-xml-3: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.
	* NEWS: Mention the change.

2024-10-03  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2024-10-03  Bruno Haible  <bruno@clisp.org>

	its: Fix permissions of newly added test.

2024-10-01  Bruno Haible  <bruno@clisp.org>

	Update the file list.
	* gettext-tools/src/FILES: Update.
	* gettext-tools/src/write-desktop.h: Fix comment.
	* gettext-tools/src/write-xml.h: Likewise.

2024-10-01  Bruno Haible  <bruno@clisp.org>

	its: During merge, copy also the XML node's attributes.
	Rationale: In XHTML, attributes like 'style' are used for rendering.

	* gettext-tools/src/its.c (_its_copy_node_with_attributes): New function.
	(its_merge_context_merge_node): Use it.
	* gettext-tools/tests/msgfmt-xml-1: Update expected results.
	* gettext-tools/tests/msgfmt-xml-2: Likewise.

2024-10-01  Bruno Haible  <bruno@clisp.org>

	its: Do escape handling during msgfmt merge, not during xgettext. Off by default.
	Reported by Samy Mahmoudi <samy.mahmoudi@gmail.com>
	at <https://savannah.gnu.org/bugs/?58643>.

	* gettext-tools/src/its.c (its_localization_note_rule_constructor): Don't do
	escaping while extracting a localization note.
	(its_rule_list_extract_text): New local variable do_escape_during_extract. Don't
	do escaping while extracting.
	(starts_with_character_reference, _its_encode_special_chars_for_merge): New
	functions.
	(its_merge_context_merge_node): New local variables do_escape_during_extract,
	do_escape_during_merge. Don't do escaping while extracting. Conditionally do
	escaping while merging.
	* gettext-tools/src/its-extensions.xsd: Mention that escape="no" is now the
	default.
	* gettext-tools/its/glade1.its: Add a comment.
	* gettext-tools/its/glade2.its: Likewise.
	* gettext-tools/its/gsettings.its: Likewise.
	* gettext-tools/its/gtkbuilder.its: Likewise.
	* gettext-tools/its/metainfo.its: Add a <gt:escapeRule>.
	* gettext-tools/tests/xgettext-appdata-1: Add comment.
	* gettext-tools/tests/xgettext-appdata-2: New file, based on
	gettext-tools/tests/msgfmt-xml-1.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.
	* gettext-tools/tests/xgettext-its-1: Update expected results.
	* gettext-tools/tests/msgfmt-xml-1: Test also character references and entity
	references.
	* gettext-tools/tests/msgfmt-xml-2: Likewise.
	* gettext-tools/doc/gettext.texi (ITS Rules): Under "Escape Special Characters",
	explain that it is no longer necessary to write a rule with escape="no".
	Rewrite section "Two Use-cases of Translated Strings in XML".
	* NEWS: Mention the changes.

2024-10-01  Bruno Haible  <bruno@clisp.org>

	its: Refactor.
	* gettext-tools/src/its.c (its_rule_list_extract_text): Simplify code
	duplication.
	(its_merge_context_merge_node): Update accordingly.

2024-09-30  Bruno Haible  <bruno@clisp.org>

	its: Refactor.
	* gettext-tools/src/its.c (_its_collect_text_content, _its_get_content): Replace
	the no_escape parameter with a do_escape parameter.
	(its_localization_note_rule_constructor, its_rule_list_extract_text,
	its_merge_context_merge_node): All callers changed.

2024-09-30  Bruno Haible  <bruno@clisp.org>

	its: Refine the XML schema.
	* gettext-tools/src/its.xsd: Add comments about the default.
	* gettext-tools/src/its-extensions.xsd: Likewise.

2024-09-30  Bruno Haible  <bruno@clisp.org>

	its: Refine the XML schema.
	* gettext-tools/src/its.xsd: Add string constraints.
	* gettext-tools/src/its-extensions.xsd: Likewise.

2024-09-30  Bruno Haible  <bruno@clisp.org>

	its: Refactor.
	* gettext-tools/src/its.h: Structure this file.
	* gettext-tools/src/its.c: Likewise.

2024-09-30  Bruno Haible  <bruno@clisp.org>

	its: Simplify.
	* gettext-tools/src/its.h: Don't include xg-arglist-context.h.
	(its_rule_list_extract): Remove flag_table parameter.
	* gettext-tools/src/its.c (its_rule_list_extract_text, its_rule_list_extract):
	Remove flag_table parameter.
	* gettext-tools/src/xgettext.c (extract_from_xml_file): Update.

2024-09-30  Bruno Haible  <bruno@clisp.org>

	build: Add Windows-format metainfo also to libgettextlib and libgettextsrc.
	Reported by Michele Locati <mlocati@gmail.com>
	at <https://savannah.gnu.org/bugs/index.php?66267>.

	* gettext-tools/gnulib-lib/libgettextlib.rc: New file.
	* gettext-tools/gnulib-lib/Makefile.am (EXTRA_DIST): Add it.
	(WOE32_LIBADD): New macro.
	(libgettextlib.res.lo): New rule.
	(libgettextlib_la_LIBADD, libgettextlib_la_DEPENDENCIES): Add the .res.lo file.
	* gettext-tools/src/libgettextsrc.rc: New file.
	* gettext-tools/src/Makefile.am (EXTRA_DIST): Add it.
	(WOE32_LIBADD): New macro.
	(libgettextsrc.res.lo): New rule.
	(libgettextsrc_la_LIBADD, libgettextsrc_la_DEPENDENCIES): New macros.
	* gettext-runtime/intl/libintl.rc: Update copyright year.
	* gettext-runtime/libasprintf/libasprintf.rc: Likewise.
	* gettext-tools/libgettextpo/libgettextpo.rc: Likewise.
	* libtextstyle/lib/libtextstyle.rc: Likewise.
	* windows/gettext.rc: Likewise.

2024-09-30  Bruno Haible  <bruno@clisp.org>

	build: Improve customizations.
	* cfg.mk (_autoreconf): Define, to avoid running autoreconf.
	(update-copyright-env): Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH to 999, not 79.

2024-09-30  Bruno Haible  <bruno@clisp.org>

	build: Fix compilation error on mingw (regression 2024-09-26).
	* autogen.sh (GNULIB_MODULES_LIBGETTEXTPO_OTHER): Add mixin/printf-posix.

2024-09-29  Bruno Haible  <bruno@clisp.org>

	Provide XML schemas for .its and .loc files.
	Suggested by Martin Blanchard <tchaik@gmx.com>
	at <https://savannah.gnu.org/bugs/?56519>.

	* gettext-tools/src/its.xsd: New file, reverse-engineered from its.c.
	* gettext-tools/src/its-extensions.xsd: New file, reverse-engineered from its.c.
	* gettext-tools/src/locating-rules.xsd: New file, reverse-engineered from
	locating-rules.c.
	* gettext-tools/src/Makefile.am (schemadir): New variable.
	(schema_DATA): New variable.
	(EXTRA_DIST): Distribute all of schema_DATA.
	* gettext-tools/configure.ac: Check for xmllint, and set XMLLINT.
	* gettext-tools/its/Makefile.am (ITS_FILES, LOC_FILES): New variables.
	(dist_its_DATA): Rewrite.
	(check-local): New rule.
	* gettext-tools/doc/gettext.texi (Preparing ITS Rules): Split into two
	subsections. Mention which schema the files have to obey.
	* HACKING: Mention xmllint as maintainer prerequisite.
	* PACKAGING: Mention the $prefix/share/gettext/schema/ directory.
	* NEWS: Mention the change.

2024-09-29  Bruno Haible  <bruno@clisp.org>

	Refactor: Rename locating-rule.[hc].
	* gettext-tools/src/locating-rules.h: Renamed from gettext-tools/src/locating-rule.h.
	* gettext-tools/src/locating-rules.c: Renamed from gettext-tools/src/locating-rule.c.
	* gettext-tools/src/FILES: Update.
	* gettext-tools/src/Makefile.am (noinst_HEADERS, libgettextsrc_la_SOURCES): Update.
	* gettext-tools/src/msgfmt.c: Update.
	* gettext-tools/src/xgettext.c: Update.
	* gettext-tools/po/POTFILES.in: Update.

2024-09-28  Bruno Haible  <bruno@clisp.org>

	xgettext: JavaScript: Support customized handling of tagged template literals.
	Reported by Evan Welsh <contact@evanwelsh.com>
	and Philip Chimento <philip.chimento@gmail.com>
	at <https://savannah.gnu.org/bugs/index.php?60027>.

	* gettext-tools/src/str-list.h (string_list_append_move): New declaration.
	* gettext-tools/src/str-list.c (string_list_append_move): New function.
	* gettext-tools/src/x-javascript.h (x_javascript_tag): New declaration.
	* gettext-tools/src/x-javascript.c: Include str-list.h.
	(tag_step1_fn): New type.
	(gnome_step1, get_tag_step1_fn): New functions.
	(struct tag_definition): New type.
	(tags): New variable.
	(x_javascript_tag): New function.
	(struct token_ty): Add fields template_tag, template_parts.
	(free_token): Update.
	(struct level_info): New type.
	(levels): Change element type to 'struct level_info'.
	(new_level, level_type): Update.
	(phase5_get, x_javascript_lex): Arrange to collect the parts of a template
	literal in the last token's template_parts field.
	(extract_balanced): Handle tagged template literals.
	* gettext-tools/src/xgettext.c (long_options): Add option --tag.
	(main): Handle option --tag.
	(usage): Document ption --tag.
	* gettext-tools/tests/xgettext-javascript-13: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.
	* gettext-tools/doc/gettext.texi (No string concatenation): Mention the tagged
	template literals as alternative.
	* gettext-tools/doc/xgettext.texi: Document the --tag option.
	* gettext-tools/doc/lang-javascript.texi (JavaScript): Mention the tagged
	template literals syntax.
	* NEWS: Mention the change.

2024-09-27  Bruno Haible  <bruno@clisp.org>

	xgettext: JavaScript: Recognize template literals inside JSX.
	* NEWS: Mention the change in the last commit.

2024-09-27  Bruno Haible  <bruno@clisp.org>

	xgettext: JavaScript: Recognize template literals inside JSX.
	Reported by whiteinge <gnu-savannah@eseth.com>
	at <https://savannah.gnu.org/bugs/?58407>
	and by tuberry and Gianni Lerro <glerro@pm.me>
	at <https://savannah.gnu.org/bugs/?62203>.

	* gettext-tools/src/x-javascript.c (enum level_ty): New enum.
	(levels, levels_alloc, level): New variables.
	(new_level): New function.
	(level_type): New macro.
	(template_literal_depth, brace_depths, brace_depths_alloc): Remove variables.
	(new_brace_depth_level): Remove function.
	(xml_element_depth, inside_embedded_js_in_xml): Remove variables.
	(phase5_get): Use the levels stack instead of the separate stack for braces and
	XML.
	(extract_javascript): Update.
	* gettext-tools/tests/xgettext-javascript-6: Add test cases that mix JSX with
	template literals.

2024-09-26  Bruno Haible  <bruno@clisp.org>

	Upgrade to libtool 2.5.3.
	* m4/libtool.m4: Update from libtool-2.5.3.
	* m4/ltoptions.m4: Likewise.
	* m4/ltsugar.m4: Likewise.
	* m4/ltversion.m4: Likewise.
	* m4/lt~obsolete.m4: Likewise.
	* build-aux/ltmain.sh: Likewise.

2024-09-26  Bruno Haible  <bruno@clisp.org>

	xgettext: PHP: Optimize.
	* gettext-tools/src/x-php.c (process_heredoc): Remove function.
	(phase4_get): Inline it here.

2024-09-26  Bruno Haible  <bruno@clisp.org>

	xgettext: PHP: Revert recently introduced code duplication.
	* gettext-tools/src/x-php.c (process_dquote_or_heredoc): New function, extracted
	from process_heredoc.
	(process_heredoc): Allocate a php_extractor on the stack. Invoke
	process_dquote_or_heredoc.
	(phase4_get): Invoke process_dquote_or_heredoc.

2024-09-26  Bruno Haible  <bruno@clisp.org>

	Modernize: Use gnulib's string-buffer module for accumulating strings.
	* autogen.sh (GNULIB_MODULES_RUNTIME_FOR_SRC, GNULIB_MODULES_TOOLS_FOR_SRC): Add
	xstring-buffer.
	* gettext-runtime/src/envsubst.c: Include string-buffer.h.
	(subst_from_stdin): Use a stack-allocated string_buffer instead of 3 local
	variables and micro-optimized ad-hoc code.
	* gettext-tools/src/cldr-plural.y: Include string-buffer.h.
	(yylex): Use a stack-allocated string_buffer instead of 3 local variables and
	micro-optimized ad-hoc code.
	* gettext-tools/src/cldr-plurals.c: Include string-buffer.h instead of xalloc.h.
	(extract_rules): Use a stack-allocated string_buffer instead of 3 local
	variables and micro-optimized ad-hoc code.
	* gettext-tools/src/its.c: Include string-buffer.h.
	(_its_collect_text_content): Use a stack-allocated string_buffer instead of 3
	local variables and micro-optimized ad-hoc code.
	* gettext-tools/src/read-desktop.c: Include string-buffer.h.
	(desktop_lex): Use a stack-allocated string_buffer instead of 3 local variables
	and micro-optimized ad-hoc code.
	* gettext-tools/src/read-properties.c: Include string-buffer.h.
	(properties_parse): Use a stack-allocated string_buffer instead of 3 local
	variables and micro-optimized ad-hoc code.
	* gettext-tools/src/x-awk.c: Include string-buffer.h.
	(phase2_getc, phase3_get): Use a stack-allocated string_buffer instead of 3
	local variables and micro-optimized ad-hoc code.
	* gettext-tools/src/x-c.c: Include string-buffer.h.
	(phase5_get): Use a stack-allocated string_buffer instead of 3 local variables
	and micro-optimized ad-hoc code.
	* gettext-tools/src/x-java.c: Include string-buffer.h.
	(phase5_get): Use a stack-allocated string_buffer instead of 3 local variables
	and micro-optimized ad-hoc code.
	* gettext-tools/src/x-javascript.c: Include string-buffer.h.
	(phase5_get): Use a stack-allocated string_buffer instead of 3 local variables
	and micro-optimized ad-hoc code.
	* gettext-tools/src/x-lua.c: Include string-buffer.h.
	(string_buf_length, string_buf_alloc, string_buf): Remove variables.
	(string_start, string_add, string_end): Remove functions.
	(phase3_get): Use a stack-allocated string_buffer instead of 3 local variables
	and micro-optimized ad-hoc code.
	* gettext-tools/src/x-perl.c: Include string-buffer.h.
	(get_here_document, phase2_getc, extract_quotelike_pass1,
	extract_quotelike_pass3, extract_variable, interpolate_keywords, x_perl_prelex):
	Use a stack-allocated string_buffer instead of 3 local variables and
	micro-optimized ad-hoc code.
	* gettext-tools/src/x-php.c: Include string-buffer.h.
	(process_heredoc, phase4_get): Use a stack-allocated string_buffer instead of 3
	local variables and micro-optimized ad-hoc code.
	* gettext-tools/src/x-python.c: Include string-buffer.h.
	(phase5_get): Use a stack-allocated string_buffer instead of 3 local variables
	and micro-optimized ad-hoc code.
	* gettext-tools/src/x-rst.c: Include string-buffer.h.
	(buffer, bufmax): Remove variables.
	(buffer): New variable.
	(extract_rst, parse_integer): Use a stack-allocated string_buffer instead of 3
	local variables and micro-optimized ad-hoc code.
	(extract_rsj): Update.
	* gettext-tools/src/x-smalltalk.c: Include string-buffer.h.
	(phase2_get): Use a stack-allocated string_buffer instead of 3 local variables
	and micro-optimized ad-hoc code.
	* gettext-tools/src/x-vala.c: Include string-buffer.h.
	(phase3_get): Use a stack-allocated string_buffer instead of 3 local variables
	and micro-optimized ad-hoc code.
	* gettext-tools/src/x-ycp.c: Include string-buffer.h.
	(phase2_getc, phase5_get): Use a stack-allocated string_buffer instead of 3
	local variables and micro-optimized ad-hoc code.

2024-09-26  Bruno Haible  <bruno@clisp.org>

	xgettext: Perl: Fix a bug when reading here documents in a non-UTF-8 encoding.
	* gettext-tools/src/xgettext.c (get_here_document): Update read_bytes when
	switching from the original encoding to the UTF-8 encoding.

2024-09-26  Bruno Haible  <bruno@clisp.org>

	xgettext: Use sf-istream from Gnulib.
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add sf-istream.
	* gettext-tools/src/x-perl.c: Include sf-istream.h.
	(struct perl_extractor): Replace fp, input, input_end fields with a single
	sf_istream_t.
	(phase1_getc, get_here_document, skip_pod, interpolate_keywords, extract_perl):
	Update.
	* gettext-tools/src/x-php.c: Include sf-istream.h.
	(struct php_extractor): Replace fp, input, input_end fields with a single
	sf_istream_t.
	(phase1_getc): Simplify.
	(process_heredoc, phase4_get, extract_php): Update.

2024-09-26  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed: Fix deprecation warning.
	* gettext-tools/src/msgmerge.c (main): Call xcopy_file_preserving instead of
	copy_file_preserving.

2024-09-26  Bruno Haible  <bruno@clisp.org>

	build: Add support for --enable-relocatable in mingw builds on Cygwin hosts.
	Reported by Michele Locati <michele@locati.it> in
	<https://lists.gnu.org/archive/html/bug-gettext/2024-09/msg00033.html>.

	* gettext-runtime/configure.ac: Invoke gl_BUILD_TO_HOST_BINDIR.
	* gettext-runtime/src/Makefile.am (*_CFLAGS): Fix value of INSTALLDIR.
	* gettext-tools/configure.ac: Invoke gl_BUILD_TO_HOST_BINDIR,
	gl_BUILD_TO_HOST_PKGLIBEXECDIR.
	* gettext-tools/src/Makefile.am (*_CPPFLAGS): Fix value of INSTALLDIR.

2024-09-26  Bruno Haible  <bruno@clisp.org>

	gettext.m4: Simplify after gnulib changed.
	* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): Invoke
	gl_BUILD_TO_HOST_LOCALEDIR.

2024-09-26  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2024-09-24  Bruno Haible  <bruno@clisp.org>

	build: Update after gnulib changed.
	* gettext-runtime/libasprintf/configure.ac: Remove gt_TYPE_WCHAR_T invocation.

2024-09-21  Bruno Haible  <bruno@clisp.org>

	doc: Explain how to add advice for translators in the source code.
	Reported at <https://savannah.gnu.org/bugs/?48747>.

	* gettext-tools/doc/gettext.texi (Translator advice): New node.

2024-09-21  Bruno Haible  <bruno@clisp.org>

	PHP: Update doc.
	* gettext-tools/doc/lang-php.texi: Update.

2024-09-21  Bruno Haible  <bruno@clisp.org>

	PHP: Support newer format string directives.
	Reported by José Luis Jiménez Fernández <jjimenez@interhost.com> in
	<https://lists.gnu.org/archive/html/bug-gettext/2023-05/msg00037.html>.

	* gettext-tools/src/format-php.c (format_parse): Treat E, F, g, G, h, H like
	e, f.
	* gettext-tools/tests/format-php-1: Test the %E, %F, %g, %G, %h, %H directives.
	* gettext-tools/tests/format-php-2: Update type compatibility tests.
	* NEWS: Mention the change.

2024-09-21  Bruno Haible  <bruno@clisp.org>

	xgettext: PHP: Support heredoc and nowdoc strings.
	Reported:
	by Bodo Graumann <mail@bodograumann.de> at <https://savannah.gnu.org/bugs/?27740>,
	at <https://savannah.gnu.org/bugs/?35944>,
	by Cédric Anne <canne@teclib.com> at <https://savannah.gnu.org/bugs/?62158>.

	* gettext-tools/src/x-php.c (TAB_WIDTH): New macro.
	(process_heredoc): New function.
	(phase4_get): Process the heredoc or nowdoc string, instead of blindly skipping
	it.
	* gettext-tools/tests/xgettext-php-1: Add tests of heredoc strings with embedded
	expressions.
	* gettext-tools/tests/xgettext-php-2: Expect spaces before a heredoc end label
	to be eaten. Add tests of heredoc strings and nowdoc strings.
	* NEWS: Mention the improvement.

2024-09-19  Bruno Haible  <bruno@clisp.org>

	doc: Expand section about preparing strings.
	* gettext-tools/doc/gettext.texi (Triggering): Mention a few more Gnulib
	modules.
	(Preparing Strings): Turn subheadings into subsections.
	(No string concatenation): Mention string concatenation operators and
	strings with embedded expressions in various programming languages.
	* NEWS: Mention it.

2024-09-19  Bruno Haible  <bruno@clisp.org>

	xgettext: Perl: Recognize strings with embedded expressions.
	* gettext-tools/src/x-perl.c (enum token_type_ty, token_ty,
	struct token_stack_ty): Moved.
	(struct perl_extractor): New type.
	(fp, linebuf, linebuf_size, linesize, linepos, eaten_here, end_of_file,
	last_comment_line, last_non_comment_line, nesting_depth, last_token_type,
	token_stack): Remove variables.
	(perl_extractor_init_rest): New function.
	(phase1_getc): Add a 'struct perl_extractor *' parameter. Read from a string
	if fp == NULL.
	(phase1_ungetc, get_here_document, skip_pod, phase2_getc, phase2_ungetc,
	extract_quotelike_pass1, extract_quotelike_pass1_utf8): Add a
	'struct perl_extractor *' parameter.
	(extract_perl_input): New declaration.
	(extract_quotelike): Add a 'struct perl_extractor *' parameter.
	(extract_triple_quotelike): Add a 'struct perl_extractor *' parameter. Remove
	mlp parameter.
	(extract_quotelike_pass3): Add a 'struct perl_extractor *' parameter.
	(extract_variable): Add a 'struct perl_extractor *' parameter. Remove mlp
	parameter.
	(interpolate_keywords): Likewise. Rename states wait_quote → seen_lbrace,
	dquote → lbrace_dquote, squote → lbrace_squote, barekey → lbrace_barekey. Add
	handling of bracket-enclosed expressions in strings.
	(x_perl_prelex, x_perl_lex): Add a 'struct perl_extractor *' parameter. Remove
	mlp parameter.
	(x_perl_unlex): Add a 'struct perl_extractor *' parameter.
	(collect_message, extract_balanced): Add a 'struct perl_extractor *' parameter.
	Remove mlp parameter.
	(extract_perl_input): New function, extracted from extract_perl.
	(extract_perl): Use it. Create a 'struct perl_extractor'.
	* gettext-tools/tests/xgettext-perl-5: Add tests of strings with embedded
	expressions.
	* NEWS: Mention the change.

2024-09-19  Bruno Haible  <bruno@clisp.org>

	xgettext: Perl: Report warnings instead of fatal errors.
	* gettext-tools/doc/lang-perl.texi (Interpolation I, Interpolation II): Say
	"unsupported" instead of "invalid". Say "warning" instead of "fatal error".
	* gettext-tools/doc/gettext.texi: Update menu.
	* gettext-tools/src/x-perl.c (token_type_string_interpol): New enum item.
	(token2string): Handle token_type_string_interpol.
	(extract_quotelike_pass3): Remove error_level parameter; use IF_SEVERITY_WARNING
	instead. Say "unsupported" instead of "invalid". When encountering an
	unsupported variable interpolation, change the token's type to
	token_type_string_interpol.
	(interpolate_keywords): After calling extract_quotelike_pass3, test the token's
	type.
	(prefer_regexp_over_division): Handle token_type_string_interpol.
	(collect_message): Remove error_level parameter; use IF_SEVERITY_WARNING
	instead. After calling extract_quotelike_pass3, test the token's type. Possibly
	return NULL.
	(extract_balanced): Handle token_type_string_interpol. Test the return value of
	collect_message.
	* NEWS: Mention the change.

2024-09-18  Bruno Haible  <bruno@clisp.org>

	xgettext: PHP: Code style.
	* gettext-tools/src/x-php.c (phase4_get): Trivial changes.

2024-09-18  Bruno Haible  <bruno@clisp.org>

	xgettext: PHP: Recognize strings with embedded expressions.
	* gettext-tools/src/x-php.c (enum token_type_ty, struct token_ty): Moved.
	(struct php_extractor): New type.
	(fp, phase1_pushback, phase1_pushback_length, phase2_pushback,
	phase2_pushback_length, buffer, bufmax, buflen, last_comment_line,
	last_non_comment_line, phase3_pushback, phase3_pushback_length,
	phase4_pushback, phase4_pushback_length, phase5_last, paren_nesting_depth,
	bracket_nesting_depth): Remove variables.
	(php_extractor_init_rest): New function.
	(extract_php_input): New declaration.
	(phase1_getc): Add a 'struct php_extractor *' parameter. Read from a string
	if fp == NULL.
	(phase1_ungetc, skip_html, comment_start, comment_add, comment_line_end,
	phase3_getc, phase3_ungetc): Add a 'struct php_extractor *' parameter.
	(phase4_get): Likewise. Add handling of embedded expressions in strings.
	(phase4_unget, x_php_lex): Add a 'struct php_extractor *' parameter.
	(extract_balanced): Add a 'struct php_extractor *' parameter. Remove mlp
	parameter.
	(extract_php_input): New function, extracted from extract_php.
	(extract_php): Use it. Create a 'struct php_extractor'.
	* gettext-tools/tests/xgettext-php-1: Add tests of strings with embedded
	expressions.
	* NEWS: Mention the change.

2024-09-18  Bruno Haible  <bruno@clisp.org>

	xgettext: PHP: Disallow character \x7f in identifiers.
	* gettext-tools/src/x-php.c (phase4_get): Don't allow character \x7f in symbol
	tokens.

2024-09-18  Bruno Haible  <bruno@clisp.org>

	xgettext: C#: Recognize strings with embedded expressions.
	* gettext-tools/src/x-csharp.c (token_type_template, token_type_ltemplate,
	token_type_mtemplate, token_type_rtemplate): New enum items.
	(free_token): Treat token_type_template like token_type_string_literal.
	(accumulate_escaped): Accept a second delimiter argument. Return the delimiter.
	(template_literal_depth, brace_depths, brace_depths_alloc): New variables,
	copied from x-javascript.c.
	(new_brace_depth_level): New function, copied from x-javascript.c.
	(phase6_get): Recognize strings with embedded expressions. Handle braces in a
	nested manner.
	(extract_parenthesized): Handle the token types token_type_template,
	token_type_ltemplate, token_type_mtemplate, token_type_rtemplate.
	(extract_csharp): Initialize template_literal_depth and call
	new_brace_depth_level.
	* gettext-tools/tests/xgettext-csharp-5: Add tests of strings with embedded
	expressions.
	* NEWS: Mention the change.

2024-09-18  Bruno Haible  <bruno@clisp.org>

	tests: Add xgettext tests regarding strings with embedded expressions.
	* gettext-tools/tests/xgettext-sh-1: Add tests of strings with embedded
	expressions.
	* gettext-tools/tests/xgettext-python-1: Likewise.
	* gettext-tools/tests/xgettext-tcl-2: Likewise.
	* gettext-tools/tests/xgettext-ruby-2: Likewise.
	* gettext-tools/tests/xgettext-javascript-3: Likewise.

2024-09-16  Bruno Haible  <bruno@clisp.org>

	Update copyright year.

2024-09-16  Bruno Haible  <bruno@clisp.org>

	build: Fix "make distcheck" after the line-breaking algorithm changed.
	* gettext-runtime/po/Makefile.in.in (.po.gmo, $(POFILES)): In the gettext-tools
	package, when not cross-compiling, use the locally built msg* programs.
	* gettext-tools/configure.ac: When not cross-compiling, set MSGMERGE and
	MSGMERGE_FOR_MSGFMT_OPTION to point to locally built msgmerge program.

2024-09-16  Bruno Haible  <bruno@clisp.org>

	tests: Fix a test failure.
	* gettext-tools/tests/xgettext-ruby-2: Skip the test if 'rxgettext' is not
	found.

2024-09-16  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gettext-tools/tests/msgmerge-28: Update expected test result.
	* gettext-tools/tests/mm-viet.out: Likewise.

2024-09-15  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2024-09-11  Bruno Haible  <bruno@clisp.org>

	tests: Add xgettext tests regarding string concatenation.
	* gettext-tools/tests/xgettext-sh-1: Add string concatenation tests.
	* gettext-tools/tests/xgettext-lua-1: Add a string concatenation test.
	* gettext-tools/tests/xgettext-vala-1: Likewise.
	* gettext-tools/tests/xgettext-javascript-3: Enhance the string concatenation
	test.
	* gettext-tools/tests/xgettext-csharp-5: Update comment.
	* gettext-tools/tests/xgettext-csharp-6: Likewise.
	* gettext-tools/tests/xgettext-java-5: Likewise.
	* gettext-tools/tests/xgettext-java-6: Likewise.
	* gettext-tools/tests/xgettext-lua-2: Likewise.
	* gettext-tools/tests/xgettext-perl-7: Likewise.
	* gettext-tools/tests/xgettext-php-3: Likewise.
	* gettext-tools/tests/xgettext-python-1: Likewise.
	* gettext-tools/tests/xgettext-python-2: Likewise.
	* gettext-tools/tests/xgettext-python-4: Likewise.
	* gettext-tools/tests/xgettext-ruby-1: Likewise.
	* gettext-tools/tests/xgettext-sh-5: Likewise.
	* gettext-tools/tests/xgettext-ruby-2: New file, based on
	gettext-tools/tests/xgettext-csharp-6.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2024-09-11  Bruno Haible  <bruno@clisp.org>

	xgettext: awk: Recognize string concatenation.
	* gettext-tools/src/x-awk.c (SIZEOF): New macro.
	(phase3_pushback, phase3_pushback_length): New variables.
	(phase3_get): Renamed from x_awk_lex. Return pushed-back token if present.
	(phase3_unget): New function.
	(string_concat_free1): New function.
	(phase4_get): New function.
	(extract_parenthesized): Invoke phase4_get instead of x_awk_lex.
	(extract_awk): Initialize phase3_pushback_length.
	* gettext-tools/tests/xgettext-awk-1: Add test cases for string concatenation.
	* NEWS: Mention the improvement.

2024-09-11  Bruno Haible  <bruno@clisp.org>

	xgettext: Smalltalk: Recognize string concatenation.
	* gettext-tools/src/x-smalltalk.c (struct token_ty): Add field 'comment'.
	(free_token): New function.
	(phase2_get): Fill in tp->comment.
	(phase3_pushback): Increase size.
	(phase3_get): Fill in tp->comment. Do reference counting.
	(string_concat_free1): New function.
	(phase4_pushback, phase4_pushback_length): New variables.
	(phase4_get, phase4_unget): New functions.
	(extract_smalltalk): Initialize phase4_pushback_length. Call phase4_get instead
	of phase3_get, phase4_unget instead of phase3_unget. Use the comment stored in
	the token. Call free_token.
	* gettext-tools/tests/xgettext-smalltalk-1: Add a test case of string
	concatenation.
	* NEWS: Mention the improvement.

2024-09-11  Bruno Haible  <bruno@clisp.org>

	xgettext: Ruby: Make the --omit-header option work.
	* gettext-tools/src/x-ruby.c (is_not_header): New function.
	(extract_ruby): If --omit-header is specified, remove the header entry at the
	end.

2024-09-11  Bruno Haible  <bruno@clisp.org>

	xgettext: Refactor.
	* gettext-tools/src/x-awk.c (SE_QUOTES): Renamed from P7_QUOTES.
	(get_string_element): Renamed from phase7_getc.
	(x_awk_lex): Update.
	* gettext-tools/src/x-c.c (SE_EOF): Renamed from P7_EOF.
	(SE_QUOTES): Renamed from P7_QUOTES.
	(SE_QUOTE): Renamed from P7_QUOTE.
	(SE_NEWLINE): Renamed from P7_NEWLINE.
	(get_string_element): Renamed from phase7_getc.
	(unget_string_element): Renamed from phase7_ungetc.
	(phase5_get): Update.
	* gettext-tools/src/x-vala.c (SE_EOF): Renamed from P7_EOF.
	(SE_QUOTES): Renamed from P7_QUOTES.
	(SE_QUOTE): Renamed from P7_QUOTE.
	(SE_NEWLINE): Renamed from P7_NEWLINE.
	(get_string_element): Renamed from phase7_getc.
	(unget_string_element): Renamed from phase7_ungetc.
	(phase3_get): Update.
	* gettext-tools/src/x-ycp.c (SE_QUOTES): Renamed from P7_QUOTES.
	(get_string_element): Renamed from phase7_getc.
	(phase5_get): Update.

2024-09-10  Bruno Haible  <bruno@clisp.org>

	doc: Document the <inttypes.h> macros for translators.
	Reported by Mingye Wang <arthur200126@gmail.com>
	at <https://savannah.gnu.org/bugs/?66195>.

	* gettext-tools/doc/gettext.texi (c-format, objc-format): Mention the
	<inttypes.h> macro placeholders.

2024-09-10  Bruno Haible  <bruno@clisp.org>

	build: Fix build failure when people set DESTDIR already during 'make'.
	Reported by Henrik Holst <henrik.holst@outlook.com> in
	<https://lists.gnu.org/archive/html/bug-gettext/2024-09/msg00005.html>.

	* gettext-tools/src/Makefile.am (textstyle.h): Pass an empty DESTDIR to
	libtextstyle/lib/Makefile.

2024-09-10  Bruno Haible  <bruno@clisp.org>

	doc: Discourage --omit-header.
	* gettext-tools/doc/msgcomm.texi: Document the effects of --omit-header.
	* gettext-tools/doc/xgettext.texi: Likewise.

2024-09-10  Bruno Haible  <bruno@clisp.org>

	xgettext: Deprecate --trigraphs.
	* gettext-tools/src/xgettext.c (usage): Mark option --trigraphs as deprecated.
	* gettext-tools/doc/xgettext.texi: Likewise.

2024-09-10  Bruno Haible  <bruno@clisp.org>

	xgettext: C: Fix undefined behaviour.
	* gettext-tools/src/x-c.c (phase7_getc): Declare n as 'unsigned int', to avoid
	signed integer overflow.
	* gettext-tools/tests/xg-c-escape-3.c: Add two more test cases.
	* gettext-tools/tests/xgettext-c-escape-3: Update expected test result.

2024-09-10  Bruno Haible  <bruno@clisp.org>

	Drop workarounds for glibc 2.1 and Solaris 9.
	* gettext-tools/src/read-po-lex.c (po_lex_charset_set): Remove glibc 2.1 and
	Solaris 9 workarounds.
	* gettext-tools/src/recode-sr-latin.c (process): Likewise.
	* gettext-tools/src/write-po.c (wrap): Likewise.
	* gettext-tools/src/x-python.c (set_current_file_source_encoding): Likewise.
	* gettext-tools/src/xgettext.c (main): Likewise.
	* libtextstyle/gnulib-local/lib/iconv-ostream.oo.c (iconv_ostream::free,
	iconv_ostream_create): Likewise.

2024-09-08  Bruno Haible  <bruno@clisp.org>

	doc: Add comments.
	* gettext-tools/doc/lang-sh.texi: Add a comment.

2024-09-08  Bruno Haible  <bruno@clisp.org>

	doc: Enhance doc about format strings in JavaScript.
	* gettext-tools/doc/lang-javascript.texi (JavaScript): Document how to get a
	decent 'format' method.

2024-09-08  Bruno Haible  <bruno@clisp.org>

	doc: Update regarding PO file editors.
	* gettext-tools/doc/gettext.texi (Editing): Add some text.
	(Web based localization): New section.
	(Lokalize): Renamed from KBabel. Add some text.
	(Gtranslator): Add some text.
	(Poedit): New section.

2024-09-08  Bruno Haible  <bruno@clisp.org>

	doc: Fix formatting with texi2html.
	* gettext-tools/doc/gettext.texi: Write '@itemize @bullet', not just '@itemize'.
	* gettext-tools/doc/xgettext.texi: Likewise.

2024-09-01  Bruno Haible  <bruno@clisp.org>

	Replace FSF snail-mail addresses with URLs.
	* build-aux/texi2html: Update GPL license notice.

2024-09-01  Bruno Haible  <bruno@clisp.org>

	Update translators' disclaimer.
	* gettext-tools/misc/DISCLAIM: Untabify. Integrate some changes from the
	FSF (2010).

2024-08-24  Bruno Haible  <bruno@clisp.org>

	build: Fix shared library support in 32-bit mode on FreeBSD/powerpc64.
	Patch from <https://savannah.gnu.org/patch/index.php?10469>.

	* m4/libtool.m4: On FreeBSD, fix shlibpath_var.

2024-08-21  Bruno Haible  <bruno@clisp.org>

	xgetcwd: Port to native Windows.
	Use a variant of the gnulib module 'xgetcwd' instead of our own (older) one.

	* gnulib-local/lib/xgetcwd.h: Remove file.
	* gnulib-local/lib/xgetcwd.c: Remove file.
	* gnulib-local/modules/xgetcwd: Remove file.
	* gnulib-local/modules/xgetcwd.diff: New file.
	* gnulib-local/Makefile.am (EXTRA_DIST): Update.

2024-08-20  Bruno Haible  <bruno@clisp.org>

	msgfmt: Tcl: Produce the same output on native Windows as elsewhere.
	* gettext-tools/src/write-tcl.c (msgdomain_write_tcl): Invoke fopen with 'b'
	flag, so as to force Unix newlines.

2024-08-20  Bruno Haible  <bruno@clisp.org>

	xgettext: Scheme: Recognize datum-comments, part 2.
	* gettext-tools/src/x-scheme.c (read_object): Avoid reference to uninitialized
	variable context_iter for arg > 0.

2024-08-17  Bruno Haible  <bruno@clisp.org>

	tests: Improve portability.
	* gettext-tools/tests/lang-javascript: Don't use '${DIFF} -u', since AIX diff
	does not support the -u option.
	* gettext-tools/tests/xgettext-vala-6: Likewise.

2024-08-17  Bruno Haible  <bruno@clisp.org>

	xgettext: Scheme: Recognize hexadecimal escape sequences in string literals.
	* gettext-tools/src/x-scheme.c (accumulate_escaped): Recognize \x, \u, \U escape
	sequences.
	* gettext-tools/tests/xgettext-scheme-7: Test also some \x escape sequences.
	* gettext-tools/tests/xgettext-scheme-8: Test also some \x, \u, \U escape
	sequences.

2024-08-17  Bruno Haible  <bruno@clisp.org>

	xgettext: Scheme: Prepare for recognizing more escape sequences in string literals.
	* gettext-tools/src/x-scheme.c (accumulate_escaped): New function, extracted
	from read_object.
	(struct object): Add field 'mixed_string'.
	(free_object): Free field 'mixed_string'.
	(string_of_object): Implement differently for objects of type t_string.
	(read_object): Use accumulate_escaped. Invoke mixed_string_alloc_utf8 instead of
	mixed_string_alloc_simple.

2024-08-17  Bruno Haible  <bruno@clisp.org>

	xgettext: Scheme: In language Scheme, handle backslash-newline as specified in R6RS.
	Reported by Florent Angly <florent.angly@gmail.com>
	at <https://savannah.gnu.org/bugs/?59262>.

	* gettext-tools/src/x-scheme.c (read_object): Do R6RS-compliant interpretation
	of backslash-newline if follow_guile is false.
	* gettext-tools/tests/xgettext-scheme-7: New file.
	* gettext-tools/tests/xgettext-scheme-8: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add them.

2024-08-16  Bruno Haible  <bruno@clisp.org>

	xgettext: Scheme: #!fold-case and #!no-fold-case directives.
	Reported by Florent Angly <florent.angly@gmail.com>
	at <https://savannah.gnu.org/bugs/?61987>.

	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add unicase/u8-casefold,
	uninorm/nfc.
	* gettext-tools/src/x-scheme.c: Include unicase.h, uninorm.h.
	(SIZEOF): New macro.
	(phase0_getc): Renamed from do_getc. Remove line_number handling.
	(phase0_ungetc): Renamed from do_ungetc. Remove line_number handling.
	(MAX_PHASE1_PUSHBACK): New macro.
	(phase1_pushback, phase1_pushback_length): New variables.
	(phase1_getc, phase1_ungetc): New functions.
	(casefold): New variable.
	(read_token): Use phase1_getc, phase1_ungetc instead of do_getc, do_ungetc.
	(read_object): Likewise. If casefold is true, apply Unicode case-folding to
	symbols before looking them up in the hash table. Recognize all #! directives
	supported by Guile.
	(extract_whole_file): Initialize phase1_pushback_length, casefold.
	* gettext-tools/tests/xgettext-scheme-6: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2024-08-16  Bruno Haible  <bruno@clisp.org>

	xgettext: Scheme: Recognize datum-comments.
	Reported by Florent Angly <florent.angly@gmail.com>
	at <https://savannah.gnu.org/bugs/?61882>.

	* gettext-tools/src/x-scheme.c (datum_comment_nesting_depth): New variable.
	(read_object): Omit the normal processing of list elements if
	datum_comment_nesting_depth is non-zero. Recognize datum comments.
	(extract_whole_file): Initialize datum_comment_nesting_depth.
	* gettext-tools/tests/xgettext-scheme-1: Add a test case with a datum comment.
	* NEWS: Mention the change.

2024-08-16  Bruno Haible  <bruno@clisp.org>

	xgettext: Scheme: Understand both '-L Scheme' and '-L Guile'.
	* gettext-tools/src/x-scheme.h (EXTENSIONS_SCHEME): Associate the language
	Guile, not Scheme, with the extension .scm.
	(SCANNERS_SCHEME): Add info about the 'Guile' language.
	(extract_guile): New declaration.
	* gettext-tools/src/x-scheme.c (follow_guile): New variable.
	(extract_whole_file): Renamed from extract_scheme.
	(extract_scheme, extract_guile): New functions.
	* gettext-tools/src/xgettext.c (usage): List Guile as a possible argument for
	the '-L' option.
	* gettext-tools/doc/xgettext.texi: Document 'Guile' as possible argument for
	the '-L' option.
	* gettext-tools/doc/lang-scheme.texi (Scheme): Explain the difference between
	'-L Scheme' and '-L Guile'.
	* NEWS: Mention the change.

2024-08-16  Bruno Haible  <bruno@clisp.org>

	xgettext: Scheme: More tests.
	* gettext-tools/tests/xgettext-scheme-5: New file, based on
	gettext-tools/tests/xgettext-5.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2024-08-16  Bruno Haible  <bruno@clisp.org>

	xgettext: Scheme: Reorganize tests.
	* gettext-tools/tests/xgettext-scheme-format-1: Renamed from
	gettext-tools/tests/xgettext-scheme-5.
	* gettext-tools/tests/xgettext-scheme-format-2: Renamed from
	gettext-tools/tests/xgettext-scheme-6.
	* gettext-tools/tests/Makefile.am (TESTS): Update.

2024-08-16  Bruno Haible  <bruno@clisp.org>

	msginit: Update information about zh_TW translation team.
	Reported by Buug Worm <buugworm@gmail.com>
	at <https://savannah.gnu.org/bugs/?66094>.

	* gettext-tools/projects/KDE/teams.url: Update URL.
	* gettext-tools/projects/KDE/teams.html: Update information about zh_TW
	translation team.
	* gettext-tools/projects/TP/teams.html: Likewise.

2024-08-16  Bruno Haible  <bruno@clisp.org>

	tests: Prefer 'cat <<\EOF' to 'cat <<EOF' whenever possible.
	Rationale: Not interpreting $ and \ in the here documents is a better default
	than interpreting them.

	* gettext-tools/tests/*: Write 'cat <<\EOF' instead of 'cat <<EOF', when no
	shell dollar-substitution and backslash-interpretation is needed.

2024-08-14  Bruno Haible  <bruno@clisp.org>

	xgettext: Python: Change escape sequences interpretation to follow Python 3.
	Reported by Serhii Tereshchenko <serg.partizan@gmail.com> at
	<https://savannah.gnu.org/bugs/?65778>.

	* gettext-tools/src/x-python.c (phase7_getuc): Update comments for Python 3.
	Don't interpret \u sequences in raw bytes and raw strings.
	(phase5_get): Recognize bytes prefixes 'b' and 'B'. For f-strings, invoke
	phase7_getuc with interpret_unicode = true, not false.
	* gettext-tools/tests/xgettext-python-1: Update for Python 3.
	* gettext-tools/tests/xgettext-python-5: Likewise.
	* NEWS: Mention the change.

2024-08-12  Bruno Haible  <bruno@clisp.org>

	Improve handling of non-BMP characters with Tcl 9.0.
	* gettext-tools/src/write-tcl.c (hexdigit): New variable.
	(write_tcl8_string): Renamed from write_tcl_string. Enable the escaping of
	braces.
	(write_tcl9_string, is_entirely_ucs2, write_tcl_string): New functions.
	* gettext-tools/tests/msgfmt-tcl-1: New file.
	* gettext-tools/tests/testdata/tcltest_pl.po: New file.
	* gettext-tools/tests/testdata/tcltest_pl.msg: New file.
	* gettext-tools/tests/msgfmt-tcl-2: New file.
	* gettext-tools/tests/testdata/tcltest_cs.po: New file.
	* gettext-tools/tests/testdata/tcltest_cs.msg: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add msgfmt-tcl-1, msgfmt-tcl-2.
	(EXTRA_DIST): Add the new testdata files.
	* NEWS: Mention the change.

2024-08-12  Bruno Haible  <bruno@clisp.org>

	libintl: Remove conditionals for libglocale.
	libglocale was a short-lived project in 2005 that was never completed.

	* gettext-runtime/intl/dcigettext.c: Assume IN_LIBGLOCALE is not defined.
	* gettext-runtime/intl/libgnuintl.in.h: Likewise.
	* gettext-runtime/intl/loadmsgcat.c: Likewise.
	* gettext-runtime/intl/localealias.c: Likewise.
	* gettext-runtime/intl/plural-exp.h: Likewise.
	* gettext-runtime/intl/gettextP.h: Likewise.
	(gl_dcigettext): Remove declaration.
	* gettext-runtime/intl/Makefile.am (libgnuintl.h, libintl.h): Remove the
	IN_LIBGLOCALE handling.

2024-08-12  Bruno Haible  <bruno@clisp.org>

	build: Update .gitignore: Automake no longer needs or installs elisp-comp.

2024-08-12  Bruno Haible  <bruno@clisp.org>

	build: Update .gitignore: moopp is now exclusively used by libtextstyle.

2024-08-12  Bruno Haible  <bruno@clisp.org>

	build: Update .gitignore: Better sorting.

2024-08-12  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Update .gitignore.

2024-08-12  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Use a multithread-safe alternative to strerror(), part 2.

2024-08-12  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Remove static variable error_with_progname, part 2.
	* gettext-tools/src/read-po-lex.h: Don't include error-progname.h.
	* gettext-tools/src/format-scheme.c: Likewise.
	* gettext-tools/src/read-desktop.c: Likewise.
	* gettext-tools/src/x-desktop.c: Likewise.

2024-08-09  Bruno Haible  <bruno@clisp.org>

	build: Fix a check-copyright-headers failure.
	* gettext-tools/libgettextpo/multithread-safe.txt: Add a license header.

2024-08-07  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Now multithread-safe.
	* gettext-tools/libgettextpo/multithread-safe.txt: New file.
	* gettext-tools/libgettextpo/Makefile.am (EXTRA_DIST): Add it.
	* gettext-tools/doc/gettext.html (libgettextpo): Document multithread-safety.
	* NEWS: Mention it.

2024-08-07  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Use a multithread-safe alternative to strerror().
	* autogen.sh (GNULIB_MODULES_LIBGETTEXTPO): Add xstrerror.
	* gnulib-local/lib/markup.c: Include xstrerror.h.
	(unescape_string_inplace): Use xstrerror instead of strerror.
	* gnulib-local/modules/markup (Depends-on): Add xstrerror.
	* gettext-tools/src/read-po-lex.c: Include xstrerror.h.
	(mbfile_getc, lex_getc): Use xstrerror instead of strerror.
	* gettext-tools/src/read-properties.c: Include xstrerror.h.
	(properties_parse): Use xstrerror instead of strerror.
	* gettext-tools/src/read-stringtable.c: Include xstrerror.h.
	(phase1_getc): Use xstrerror instead of strerror.
	* gettext-tools/src/write-catalog.c: Include xstrerror.h.
	(msgdomain_list_print): Use xstrerror instead of strerror.

2024-08-07  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Remove static variable error_with_progname.
	Inside libgettextpo, assignments to error_with_progname are undesired.
	Outside libgettextpo, they are redundant.

	* gettext-tools/src/read-po-lex.c: Don't include error-progname.h.
	* gettext-tools/src/read-properties.c: Don't include error-progname.h.
	(read_escaped_string): Remove assignments to error_with_progname.
	* gettext-tools/src/read-stringtable.c: Don't include error-progname.h.
	* gettext-tools/src/write-catalog.c: Don't include error-progname.h.
	(msgdomain_list_print): Remove assignments to error_with_progname.
	* autogen.sh (GNULIB_MODULES_LIBGETTEXTPO): Remove error-progname.

2024-08-05  Bruno Haible  <bruno@clisp.org>

	build: Avoid "Missing copyright header" error for std-gnu11.m4.
	* check-copyright-headers (func_check_file): Search for the copyright notice
	in the first 20 lines.

2024-08-05  Bruno Haible  <bruno@clisp.org>

	Fix compilation error on MSVC.
	* gettext-tools/src/msgmerge.c (silent_error_logger): Conditionalize the
	__attribute__ annotation.

2024-08-05  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2024-08-05  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Make function po_format_list() multithread-safe.
	* autogen.sh (GNULIB_MODULES_LIBGETTEXTPO): Add 'once'.
	* gettext-tools/libgettextpo/gettext-po.c: Include glthread/once.h.
	(all_formats): New variable.
	(all_formats_init): New function, extracted from po_format_list.
	(all_formats_init_once): New variable.
	(po_format_list): Invoke all_formats_init once.

2024-08-05  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Don't use static variable gram_max_allowed_errors.
	* gettext-tools/src/read-po.h (gram_max_allowed_errors): New declaration.
	* gettext-tools/src/read-po-lex.h (gram_max_allowed_errors): Remove declaration.
	* gettext-tools/src/read-po.c: Include <limits.h>.
	(gram_max_allowed_errors): Moved to here. Change initial value to UINT_MAX.
	* gettext-tools/src/read-po-lex.c: Include read-po.h.
	(gram_max_allowed_errors): Remove variable.
	* gettext-tools/libgettextpo/gettext-po.c: Don't include read-po-lex.h.
	(po_file_read): Don't assign gram_max_allowed_errors.
	* gettext-tools/src/msgattrib.c (main): Initialize gram_max_allowed_errors.
	* gettext-tools/src/msgcat.c (main): Likewise.
	* gettext-tools/src/msgcomm.c (main): Likewise.
	* gettext-tools/src/msgconv.c (main): Likewise.
	* gettext-tools/src/msgen.c (main): Likewise.
	* gettext-tools/src/msgexec.c (main): Likewise.
	* gettext-tools/src/msgfilter.c (main): Likewise.
	* gettext-tools/src/msggrep.c (main): Likewise.
	* gettext-tools/src/msginit.c (main): Likewise.
	* gettext-tools/src/msguniq.c (main): Likewise.
	* gettext-tools/src/xgettext.c (main): Likewise.
	* gettext-tools/src/msgcmp.c: Don't include read-po-lex.h.
	* gettext-tools/src/msgmerge.c: Likewise.
	* gettext-tools/src/msgfmt.c: Don't include read-po-lex.h.
	(main): Initialize gram_max_allowed_errors.

2024-08-05  Bruno Haible  <bruno@clisp.org>

	Refactor: Remove code duplication.
	* gettext-tools/src/po-xerror.h: Include xerror-handler.h. Remove all
	declarations.
	(PO_SEVERITY_*): Define as aliases of CAT_SEVERITY_*.
	(po_xerror, po_xerror2): New macros.
	* gettext-tools/src/po-xerror.c: Remove file.
	* gettext-tools/src/Makefile.am (COMMON_SOURCE): Remove po-xerror.c.
	* gettext-tools/src/msgmerge.c (silent_xerror2): New function.
	(match_domain): Pass a stack-allocated xerror_handler to check_plural_eval.
	* gettext-tools/woe32dll/gettextsrc-exports.c (po_xerror, po_xerror2): Remove
	exports.
	* gettext-tools/po/POTFILES.in: Add src/xerror-handler.c. Remove
	src/po-xerror.c.

2024-08-05  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Remove unused object files.
	* gettext-tools/src/read-po-lex.h: Don't include xerror.h.
	* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES): Remove
	po-xerror.c and po-error.c.
	* autogen.sh (GNULIB_MODULES_LIBGETTEXTPO): Remove xerror.

2024-08-05  Bruno Haible  <bruno@clisp.org>

	Add an xerror_handler parameter to check_message and check_message_list.
	* gettext-tools/src/msgl-check.h: Include xerror-handler.h.
	(check_plural_eval, check_message, check_message_list): Add xerror_handler_ty
	parameter.
	* gettext-tools/src/msgl-check.c (check_plural_eval, check_plural, check_pair,
	check_header_entry, check_message, check_message_list): Add xerror_handler_ty
	parameter. Use it for error handling.
	(struct formatstring_error_logger_locals): Add xeh field.
	(formatstring_error_logger): Use it for error handling.
	* gettext-tools/libgettextpo/gettext-po.c: Don't include po-xerror.h.
	(po_file_check_all, po_message_check_all): Pass a stack-allocated xerror_handler
	to check_message_list.
	(po_message_check_format): Pass a stack-allocated xerror_handler to
	check_message.
	* gettext-tools/src/msgfmt.c (main, msgfmt_operand_list_add_from_directory): Use
	the default xerror_handler.
	* gettext-tools/src/msgmerge.c (match_domain): Likewise.

2024-08-05  Bruno Haible  <bruno@clisp.org>

	Add an xerror_handler parameter to msgdomain_list_print.
	* gettext-tools/src/write-catalog.h: Include xerror-handler.h.
	(struct catalog_output_format): Add xerror_handler_ty parameter to the print
	method.
	(msgdomain_list_print): Add xerror_handler_ty parameter.
	* gettext-tools/src/write-catalog.c: Include xerror-handler.h instead of
	po-xerror.h.
	(msgdomain_list_print): Add xerror_handler_ty parameter. Use it for error
	handling.
	* gettext-tools/src/write-po.c: Include xerror-handler.h instead of po-xerror.h.
	(wrap, message_print, message_print_obsolete, msgdomain_list_print_po): Add
	xerror_handler_ty parameter. Use it for error handling.
	* gettext-tools/src/write-properties.c: Include xerror-handler.h.
	(write_properties, msgdomain_list_print_properties): Add xerror_handler_ty
	parameter. Use it for error handling.
	* gettext-tools/src/write-stringtable.c: Include xerror-handler.h.
	(write_stringtable, msgdomain_list_print_stringtable): Add xerror_handler_ty
	parameter. Use it for error handling.
	* gettext-tools/libgettextpo/gettext-po.c (po_file_write): Pass a
	stack-allocated xerror_handler to msgdomain_list_print.
	* gettext-tools/src/msgl-iconv.h: Include xerror-handler.h.
	(iconv_message_list, iconv_msgdomain_list): Add xerror_handler_ty parameter.
	* gettext-tools/src/msgl-iconv.c: Include xerror-handler.h instead of
	po-xerror.h.
	(conversion_error, convert_string, convert_string_list, convert_prev_msgid,
	convert_msgid, convert_msgstr, iconv_message_list_internal, iconv_message_list,
	iconv_msgdomain_list): Add xerror_handler_ty parameter. Use it for error
	handling.
	(convert_string_directly, convert_string_desc_directly): Use the default
	xerror_handler.
	* gettext-tools/src/msgattrib.c: Include xerror-handler.h.
	(main): Use the default xerror_handler.
	* gettext-tools/src/msgcat.c: Include xerror-handler.h.
	(main): Use the default xerror_handler.
	* gettext-tools/src/msgcmp.c: Include xerror-handler.h.
	(compare): Use the default xerror_handler.
	* gettext-tools/src/msgcomm.c: Include xerror-handler.h.
	(main): Use the default xerror_handler.
	* gettext-tools/src/msgconv.c: Include xerror-handler.h.
	(main): Use the default xerror_handler.
	* gettext-tools/src/msgen.c: Include xerror-handler.h.
	(main): Use the default xerror_handler.
	* gettext-tools/src/msgfilter.c: Include xerror-handler.h.
	(main): Use the default xerror_handler.
	* gettext-tools/src/msgfmt.c: Include xerror-handler.h.
	(msgfmt_operand_list_add_from_directory): Use the default xerror_handler.
	* gettext-tools/src/msggrep.c: Include xerror-handler.h.
	(main): Use the default xerror_handler.
	* gettext-tools/src/msginit.c: Include xerror-handler.h.
	(main): Use the default xerror_handler.
	* gettext-tools/src/msgl-cat.c: Include xerror-handler.h.
	(catenate_msgdomain_list): Use the default xerror_handler.
	* gettext-tools/src/msgmerge.c: Include xerror-handler.h.
	(main, merge): Use the default xerror_handler.
	* gettext-tools/src/msgunfmt.c: Include xerror-handler.h.
	(main): Use the default xerror_handler.
	* gettext-tools/src/msguniq.c: Include xerror-handler.h.
	(main): Use the default xerror_handler.
	* gettext-tools/src/write-csharp.c: Include xerror-handler.h.
	(msgdomain_write_csharp): Use the default xerror_handler.
	* gettext-tools/src/write-desktop.c: Include xerror-handler.h.
	(msgdomain_write_desktop): Use the default xerror_handler.
	* gettext-tools/src/write-java.c: Include xerror-handler.h.
	(msgdomain_write_java): Use the default xerror_handler.
	* gettext-tools/src/write-mo.c: Include xerror-handler.h.
	(msgdomain_write_mo): Use the default xerror_handler.
	* gettext-tools/src/write-qt.c: Include xerror-handler.h.
	(msgdomain_write_qt): Use the default xerror_handler.
	* gettext-tools/src/write-resources.c: Include xerror-handler.h.
	(msgdomain_write_csharp_resources): Use the default xerror_handler.
	* gettext-tools/src/write-tcl.c: Include xerror-handler.h.
	(msgdomain_write_tcl): Use the default xerror_handler.
	* gettext-tools/src/write-xml.c: Include xerror-handler.h.
	(msgdomain_write_xml): Use the default xerror_handler.
	* gettext-tools/src/x-po.c (extract): Use the default xerror_handler.
	* gettext-tools/src/xgettext.c: Include xerror-handler.h.
	(main, finalize_header): Use the default xerror_handler.

2024-08-05  Bruno Haible  <bruno@clisp.org>

	Add an xerror_handler parameter to read_catalog_stream.
	* gettext-tools/src/read-catalog-abstract.h: Include xerror-handler.h.
	(ABSTRACT_CATALOG_READER_TY): Add xeh field.
	(catalog_reader_alloc): Add xerror_handler parameter.
	* gettext-tools/src/read-catalog-abstract.c: Include xerror-handler.h instead of
	po-xerror.h.
	(catalog_reader_alloc): Add xerror_handler parameter.
	(catalog_reader_parse): Use catr->xeh for error handling.
	* gettext-tools/src/read-catalog.h: Include xerror-handler.h.
	(default_catalog_reader_alloc, read_catalog_stream): Add xerror_handler
	parameter.
	* gettext-tools/src/read-catalog.c: Include xerror-handler.h instead of
	po-xerror.h.
	(default_set_domain, default_add_message): Use catr->xeh for error handling.
	(default_catalog_reader_alloc, read_catalog_stream): Add xerror_handler
	parameter.
	* gettext-tools/src/read-po-lex.h: Include read-catalog-abstract.h.
	(po_gram_error_at_line): Add catr parameter.
	* gettext-tools/src/read-po-lex.c: Include xerror-handler.h instead of
	po-xerror.h.
	(po_gram_error): Use ps->catr->xeh for error handling.
	(po_gram_error_at_line): Add catr parameter. Use catr->xeh for error handling.
	(po_lex_charset_set, mbfile_getc, lex_getc): Use ps->catr->xeh for error
	handling.
	(keyword_p, po_gram_lex): Update invocations of po_gram_error_at_line.
	* gettext-tools/src/read-po-gram.y: Update invocations of po_gram_error_at_line.
	* gettext-tools/src/read-properties.c: Include xerror-handler.h instead of
	po-xerror.h.
	(phase4_getuc, read_escaped_string): Add catr parameter. Use catr->xeh for error
	handling.
	(properties_parse): Use catr->xeh for error handling.
	* gettext-tools/src/read-stringtable.c: Include xerror-handler.h instead of
	po-xerror.h.
	(phase1_getc, phase2_getc, phase3_getc): Add catr parameter. Use catr->xeh for
	error handling.
	(phase4_getc): Update.
	(read_string, stringtable_parse): Use catr->xeh for error handling.
	* gettext-tools/libgettextpo/gettext-po.c (po_file_read): Pass a stack-allocated
	xerror_handler to read_catalog_stream.
	* gettext-tools/src/msgfmt.c: Include xerror-handler.h.
	(read_catalog_file_msgfmt): Use the default xerror_handler.
	* gettext-tools/src/read-catalog-file.c: Include xerror-handler.h.
	(read_catalog_file): Use the default xerror_handler.
	* gettext-tools/src/read-csharp.c: Include xerror-handler.h.
	(execute_and_read_po_output): Use the default xerror_handler.
	* gettext-tools/src/read-java.c: Include xerror-handler.h.
	(execute_and_read_po_output): Use the default xerror_handler.
	* gettext-tools/src/read-resources.c: Include xerror-handler.h.
	(execute_and_read_po_output): Use the default xerror_handler.
	* gettext-tools/src/read-tcl.c: Include xerror-handler.h.
	(msgdomain_read_tcl): Use the default xerror_handler.
	* gettext-tools/src/x-po.c: Include xerror-handler.h.
	(extract): Use the default xerror_handler.
	* gettext-tools/src/xgettext.c: Include xerror-handler.h.
	(read_exclusion_file): Use the default xerror_handler.

2024-08-05  Bruno Haible  <bruno@clisp.org>

	Add xerror-handler.
	* gettext-tools/src/xerror-handler.h: New file, based on gettext-tools/src/po-xerror.h.
	* gettext-tools/src/xerror-handler.c: New file, based on gettext-tools/src/po-xerror.c.
	* gettext-tools/src/Makefile.am (noinst_HEADERS): Add xerror-handler.h.
	(COMMON_SOURCE): Add xerror-handler.c.
	* gettext-tools/src/FILES: Update.
	* gettext-tools/woe32dll/gettextsrc-exports.c (textmode_xerror_handler_struct):
	New export.

2024-08-03  Bruno Haible  <bruno@clisp.org>

	Refactor: Remove K&R C cruft.
	* gettext-tools/src/read-po-lex.c: Remove VARARGS1 and VARARGS2 comments.

2024-08-03  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Remove backward compatibility with versions < 0.15 (July 2006).
	* gettext-tools/libgettextpo/gettext-po.c (_GL_NO_INLINE_ERROR): Remove macro.
	Don't include <error.h>, <stdbool.h>, <stdarg.h>, xerror.h, po-error.h,
	format.h.
	(orig_error, orig_error_at_line): Remove variables.
	(void_multiline_warning, void_multiline_error): Remove functions.
	(po_file_read_v2, po_file_read, po_file_write, po_error_logger,
	po_message_check_format): Remove functions.
	* gettext-tools/libgettextpo/gettext-po.in.h (struct po_error_handler): Update
	comment.
	* gettext-tools/src/po-xerror.c: Update comment.

2024-08-02  Bruno Haible  <bruno@clisp.org>

	Refactor: Don't use po_gram_error_at_line outside the PO file reader.
	* gettext-tools/src/msgcmp.c: Include po-xerror.h, xvasprintf.h.
	(match_domain, compare): Use po_xerror, po_xerror2 instead of
	po_gram_error_at_line.
	* gettext-tools/src/msgfmt.c: Include po-xerror.h.
	(msgfmt_set_domain): Use po_xerror instead of po_gram_error_at_line.
	* gettext-tools/src/msgmerge.c: Include xvasprintf.h.
	(match_domain): Use po_xerror, po_xerror2 instead of po_gram_error_at_line.
	* gettext-tools/src/read-catalog.c (default_set_domain): Use po_xerror instead
	of po_gram_error_at_line.
	* gettext-tools/src/xgettext.c: Include po-xerror.h.
	(exclude_directive_domain): Use po_xerror instead of po_gram_error_at_line.

2024-08-02  Bruno Haible  <bruno@clisp.org>

	Rename some files, part 2.

2024-08-02  Bruno Haible  <bruno@clisp.org>

	Rename some files.
	* gettext-tools/src/read-po-internal.h: Renamed from
	gettext-tools/src/po-gram.h.
	* gettext-tools/src/read-po-lex.h: Renamed from gettext-tools/src/po-lex.h.
	* gettext-tools/src/read-po-lex.c: Renamed from gettext-tools/src/po-lex.c.
	* gettext-tools/src/read-po-gram.y: Renamed from
	gettext-tools/src/po-gram-gen.y.
	* gettext-tools/src/*.h: Update.
	* gettext-tools/src/*.c: Update.
	* gettext-tools/src/FILES: Update.
	* gettext-tools/src/Makefile.am: Update.
	* gettext-tools/libgettextpo/Makefile.am: Update.

2024-08-02  Bruno Haible  <bruno@clisp.org>

	Refactor includes.
	* gettext-tools/src/read-catalog-abstract.h: Include <stdio.h>. Don't include
	po-lex.h.
	* gettext-tools/src/read-catalog.c: Include po-lex.h.
	* gettext-tools/src/msgcmp.c: Include po-lex.h.
	* gettext-tools/src/msgfmt.c: Likewise.
	* gettext-tools/src/msgmerge.c: Likewise.
	* gettext-tools/src/xgettext.c: Likewise.
	* gettext-tools/libgettextpo/gettext-po.c: Likewise.
	* gettext-tools/src/x-po.c: Include <error.h>. Don't include po-lex.h.
	* gettext-tools/src/read-desktop.h: Include pos.h. Don't include po-lex.h.
	* gettext-tools/src/read-desktop.c: Don't include po-lex.h.

2024-08-01  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Remove static variable gram_pos.
	* gettext-tools/src/po-gram.h (struct po_parser_state): Add field gram_pos.
	* gettext-tools/src/po-lex.h (gram_pos): Remove declaration.
	* gettext-tools/src/po-lex.c (gram_pos): Remove variable.
	(po_gram_error, lex_start, lex_end, lex_getc, lex_ungetc, keyword_p,
	po_gram_lex): Access ps->gram_pos instead of gram_pos.
	* gettext-tools/src/po-gram-gen.y: Access ps->gram_pos instead of gram_pos.
	* gettext-tools/woe32dll/gettextsrc-exports.c (gram_pos): Remove export.

2024-08-01  Bruno Haible  <bruno@clisp.org>

	Remove some uses of global variable gram_pos.
	* gettext-tools/src/msgfmt.c (msgfmt_comment_special): Use the file name from
	the catalog reader instead of gram_pos.
	* gettext-tools/src/read-desktop.c (gram_pos): Remove declaration.
	(pos): New variable.
	(phase2_getc, phase2_ungetc, desktop_lex, desktop_parse): Use it instead of
	gram_pos.
	* gettext-tools/src/read-properties.c (gram_pos): Remove declaration.
	(pos): New variable.
	(phase2_getc, phase2_ungetc, phase4_getuc, read_escaped_string,
	properties_parse): Use it instead of gram_pos.
	* gettext-tools/src/read-stringtable.c (gram_pos): Remove declaration.
	(pos): New variable.
	(phase3_getc, phase3_ungetc, stringtable_parse): Use it instead of gram_pos.
	(read_string): Likewise. Rename a parameter.
	(conv_from_ucs4): Rename a local variable.

2024-08-01  Bruno Haible  <bruno@clisp.org>

	Refactor directive_domain and set_domain methods.
	* gettext-tools/src/read-catalog-abstract.h
	(abstract_catalog_reader_class_ty::directive_domain): Add name_pos parameter.
	(catalog_reader_seen_domain): Likewise.
	* gettext-tools/src/read-catalog-abstract.c (call_directive_domain,
	catalog_reader_seen_domain): Likewise.
	* gettext-tools/src/read-catalog.h
	(default_catalog_reader_class_ty::set_domain): Add name_pos parameter.
	(default_directive_domain, default_set_domain): Likewise.
	* gettext-tools/src/read-catalog.c (call_set_domain, default_directive_domain):
	Likewise.
	(default_set_domain): Add name_pos parameter. Use it instead of the global
	variable gram_pos.
	* gettext-tools/src/msgfmt.c (msgfmt_set_domain): Likewise.
	* gettext-tools/src/xgettext.c (exclude_directive_domain): Likewise.
	* gettext-tools/src/po-gram-gen.y: Update catalog_reader_seen_domain invocation.

2024-08-01  Bruno Haible  <bruno@clisp.org>

	Refactor read-desktop.h.
	Rename the parameter of type 'struct desktop_reader_ty *' to reader.

	* gettext-tools/src/read-desktop.h (struct desktop_reader_class_ty): Change
	parameter names of methods.

2024-08-01  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Remove static variables 'buf', 'bufmax'.
	* gettext-tools/src/po-gram.h (struct po_parser_state): Add fields buf, bufmax.
	* gettext-tools/src/po-lex.c (lex_start): Initialize them.
	(lex_end): Free the buf field.
	(po_gram_lex): Use these fields instead of static variables.

2024-08-01  Bruno Haible  <bruno@clisp.org>

	build: Enable Automake's dependency tracking.
	Quite often, after changing a struct defined in a .h file, I see "make check"
	fail. After "make clean; make", "make check" passes again. This wastes my time.
	Unlike 20 years ago, I don't want think about which .o files I need to erase
	and rebuild. Build times are now much smaller than they were 20 years ago,
	especially when configuring with --disable-shared and CFLAGS="-ggdb".

	* gnulib-local/modules/gettext-runtime-misc (configure.ac): Don't augment
	AUTOMAKE_OPTIONS.
	* gettext-runtime/Makefile.am (AUTOMAKE_OPTIONS): Remove 'no-dependencies'.
	* gettext-runtime/intl/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
	* gettext-runtime/libasprintf/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
	* gettext-runtime/src/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
	* gettext-runtime/tests/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
	* libtextstyle/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
	* libtextstyle/lib/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
	* gettext-tools/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
	* gettext-tools/gnulib-lib/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
	* gettext-tools/libgettextpo/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
	* gettext-tools/libgrep/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
	* gettext-tools/src/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
	* gettext-tools/system-tests/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
	* gettext-tools/tests/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
	* gettext-tools/tests/gnulib-lib/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
	* Makefile.am (AUTOMAKE_OPTIONS): Likewise.

2024-08-01  Bruno Haible  <bruno@clisp.org>

	Refactor read-catalog-abstract.[hc], read-catalog.[hc], part 2.
	Rename the parameter of type 'struct default_catalog_reader_ty *' to dcatr.

	* gettext-tools/src/read-catalog.h (this): Remove macro.
	(struct default_catalog_reader_class_ty): Change parameter names of methods.

2024-07-29  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Remove static variable pass_comments.
	* gettext-tools/src/read-catalog-abstract.h (ABSTRACT_CATALOG_READER_TY): Add
	pass_comments field.
	* gettext-tools/src/read-catalog-abstract.c (catalog_reader_alloc): Initialize
	pass_comments field.
	* gettext-tools/src/read-catalog.c (default_parse_brief): Assign the
	pass_comments field, instead of calling po_lex_pass_comments.
	* gettext-tools/src/po-lex.h (po_lex_pass_comments): Remove declaration.
	* gettext-tools/src/po-lex.c (pass_comments): Remove variable.
	(po_gram_lex): Update.
	(po_lex_pass_comments): Remove function.

2024-07-29  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Remove static variable pass_obsolete_entries.
	* gettext-tools/src/read-catalog-abstract.h (ABSTRACT_CATALOG_READER_TY): Add
	pass_obsolete_entries field.
	* gettext-tools/src/read-catalog-abstract.c (catalog_reader_alloc): Initialize
	the pass_obsolete_entries field.
	* gettext-tools/src/read-catalog.c (read_catalog_stream): Assign the
	pass_obsolete_entries field, instead of calling po_lex_pass_obsolete_entries.
	* gettext-tools/src/msgfmt.c (read_catalog_file_msgfmt): Likewise.
	* gettext-tools/src/po-lex.h (pass_obsolete_entries): Remove declaration.
	(po_lex_pass_obsolete_entries): Remove declaration.
	* gettext-tools/src/po-lex.c (pass_obsolete_entries): Remove variable.
	(po_lex_pass_obsolete_entries): Remove function.
	* gettext-tools/src/po-gram-gen.y: Update.
	* gettext-tools/woe32dll/gettextsrc-exports.c (pass_obsolete_entries): Remove
	export.

2024-07-28  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Remove static variables po_lex_charset, po_lex_iconv, po_lex_isolate_*, po_lex_weird_cjk.
	* gettext-tools/src/read-catalog-abstract.h (ABSTRACT_CATALOG_READER_TY): Add
	fields po_lex_isolate_start, po_lex_isolate_end.
	* gettext-tools/src/read-catalog-abstract.c (catalog_reader_alloc): Initialize
	the new abstract_catalog_reader_ty fields.
	(parse_comment_filepos): Update.
	* gettext-tools/src/po-gram.h: Include <iconv.h>.
	(struct po_parser_state): Add fields po_lex_charset, po_lex_iconv,
	po_lex_weird_cjk.
	* gettext-tools/src/po-lex.h (lex_end): Add a 'struct po_parser_state *'
	parameter.
	(po_lex_charset_set): New declaration, moved here from po-charset.h.
	* gettext-tools/src/po-lex.c: Include xmalloca.h, basename-lgpl.h, progname.h,
	c-strstr.h.
	(po_lex_charset_init, po_lex_charset_set, po_lex_charset_close): Moved here from
	po-charset.c. Take a 'struct po_parser_state *' as argument.
	(mb_width, mbfile_getc, lex_start): Update.
	(lex_end): Add a 'struct po_parser_state *' parameter.
	* gettext-tools/src/po-charset.h (po_lex_charset, po_lex_isolate_start,
	po_lex_isolate_end, po_lex_iconv, po_lex_weird_cjk): Remove declarations.
	(po_lex_charset_init, po_lex_charset_set, po_lex_charset_close): Remove
	declarations.
	* gettext-tools/src/po-charset.c: Don't include <stdlib.h>, xmalloca.h,
	xvasprintf.h, po-xerror.h, basename-lgpl.h, progname.h, c-strstr.h.
	(po_lex_charset, po_lex_isolate_start, po_lex_isolate_end, po_lex_iconv,
	po_lex_weird_cjk): Remove variables.
	(po_lex_charset_init, po_lex_charset_set, po_lex_charset_close): Moved to
	po-lex.c.
	* gettext-tools/src/po-gram-gen.y: Update.
	* gettext-tools/src/read-po.c (po_parse): Update.
	* gettext-tools/woe32dll/gettextsrc-exports.c (po_lex_charset,
	po_lex_isolate_start, po_lex_isolate_end, po_lex_iconv, po_lex_weird_cjk):
	Remove exports.

2024-07-28  Bruno Haible  <bruno@clisp.org>

	Refactor.
	* gettext-tools/src/its.c (struct its_rule_class_ty): Change parameter names of
	methods.
	(its_rule_destructor, its_translate_rule_constructor, its_translate_rule_eval,
	its_localization_note_rule_constructor, its_localization_note_rule_eval,
	its_element_within_text_rule_constructor, its_element_within_text_rule_eval,
	its_preserve_space_rule_constructor, its_preserve_space_rule_eval,
	its_extension_context_rule_constructor, its_extension_context_rule_eval,
	its_extension_escape_rule_constructor, its_extension_escape_rule_eval,
	its_rule_destroy): Rename parameter 'pop' to 'rule'.
	(its_rule_alloc): Rename local variable 'pop' to 'rule'.

2024-07-28  Bruno Haible  <bruno@clisp.org>

	Refactor: Rename local variables of type '*_catalog_reader_ty *'.
	* gettext-tools/src/xgettext.c (read_exclusion_file): Rename local variable
	'pop' to 'catr'.
	* gettext-tools/src/read-catalog.c (read_catalog_stream): Rename local variable
	'pop' to 'dcatr'.

2024-07-28  Bruno Haible  <bruno@clisp.org>

	Refactor read-catalog-special.[hc], part 2.
	* gettext-tools/src/read-catalog.c: Include read-catalog-special.h.
	* gettext-tools/src/xg-message.c: Include read-catalog-special.h instead of
	read-catalog-abstract.h.
	* gettext-tools/src/x-ruby.c: Likewise.

2024-07-28  Bruno Haible  <bruno@clisp.org>

	Refactor.
	* gettext-tools/src/read-catalog-abstract.h (catalog_reader_seen_domain):
	Renamed from po_callback_domain.
	(catalog_reader_seen_message): Renamed from po_callback_message.
	(catalog_reader_seen_comment): Renamed from po_callback_comment.
	(catalog_reader_seen_comment_dot): Renamed from po_callback_comment_dot.
	(catalog_reader_seen_comment_filepos): Renamed from po_callback_comment_filepos.
	(catalog_reader_seen_comment_special): Renamed from po_callback_comment_special.
	(catalog_reader_seen_generic_comment): Renamed from
	po_callback_comment_dispatcher.
	* gettext-tools/src/read-catalog-abstract.c (catalog_reader_seen_domain):
	Renamed from po_callback_domain.
	(catalog_reader_seen_message): Renamed from po_callback_message.
	(catalog_reader_seen_comment): Renamed from po_callback_comment.
	(catalog_reader_seen_comment_dot): Renamed from po_callback_comment_dot.
	(catalog_reader_seen_comment_filepos): Renamed from po_callback_comment_filepos.
	(catalog_reader_seen_comment_special): Renamed from po_callback_comment_special.
	(parse_comment_filepos, parse_comment_solaris_filepos): Update.
	(catalog_reader_seen_generic_comment): Renamed from
	po_callback_comment_dispatcher. Update.
	* gettext-tools/src/po-gram-gen.y: Update.
	* gettext-tools/src/read-properties.c (properties_parse): Update.
	* gettext-tools/src/read-stringtable.c (special_comment_finish,
	comment_line_end, stringtable_parse): Update.

2024-07-28  Bruno Haible  <bruno@clisp.org>

	Refactor.
	* gettext-tools/src/read-catalog-abstract.c (parse_comment_filepos): Renamed
	from po_parse_comment_filepos.
	(parse_comment_solaris_filepos): Renamed from po_parse_comment_solaris_filepos.
	(po_callback_comment_dispatcher): Update.

2024-07-28  Bruno Haible  <bruno@clisp.org>

	Refactor.
	* gettext-tools/src/read-catalog-special.h (parse_comment_special): Renamed from
	po_parse_comment_special.
	* gettext-tools/src/read-catalog-special.c (parse_comment_special): Renamed from
	po_parse_comment_special.
	* gettext-tools/src/read-catalog.c (default_comment_special): Update.
	* gettext-tools/src/xg-message.c (remember_a_message): Update.
	* gettext-tools/src/x-ruby.c (extract_ruby): Update.
	* gettext-tools/src/xgettext.c (xgettext_record_flag): Update comment.

2024-07-28  Bruno Haible  <bruno@clisp.org>

	Refactor.
	* gettext-tools/src/read-catalog-special.h: New file, extracted from
	gettext-tools/src/read-catalog-abstract.h.
	* gettext-tools/src/read-catalog-special.c: New file, extracted from
	gettext-tools/src/read-catalog-abstract.c.
	* gettext-tools/src/read-catalog-abstract.h (po_parse_comment_special): Remove
	declaration.
	* gettext-tools/src/read-catalog-abstract.c: Don't include <limits.h>.
	(po_parse_comment_special): Moved to read-catalog-special.c.
	* gettext-tools/src/Makefile.am (noinst_HEADERS): Add read-catalog-special.h.
	(libgettextsrc_la_SOURCES): Add read-catalog-special.c.
	* gettext-tools/src/FILES: Update.
	* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES): Add
	../src/read-catalog-special.c.

2024-07-28  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Remove static variable callback_arg.
	* gettext-tools/src/read-catalog-abstract.h (po_callback_domain,
	po_callback_message, po_callback_comment, po_callback_comment_dot,
	po_callback_comment_filepos, po_callback_comment_special,
	po_callback_comment_dispatcher): Add a first parameter 'catr'.
	* gettext-tools/src/read-catalog-abstract.c (callback_arg): Remove variable.
	(parse_start, parse_end): Remove functions.
	(catalog_reader_parse): Inline them here.
	(po_callback_domain, po_callback_message, po_callback_comment,
	po_callback_comment_dot, po_callback_comment_filepos,
	po_callback_comment_special, po_parse_comment_filepos,
	po_parse_comment_solaris_filepos, po_callback_comment_dispatcher): Add a first
	parameter 'catr'.
	* gettext-tools/src/po-gram.h: Include read-catalog-abstract.h.
	(struct po_parser_state): Add field 'catr'.
	* gettext-tools/src/read-po.c (po_parse): Initialize the 'catr' field.
	* gettext-tools/src/po-gram-gen.y: Pass ps->catr to po_callback_message,
	po_callback_comment_dispatcher, po_callback_domain.
	* gettext-tools/src/read-properties.c (properties_parse): Pass catr to
	po_callback_comment_dispatcher, po_callback_message.
	* gettext-tools/src/read-stringtable.c (special_comment_finish,
	comment_line_end, phase4_getc, read_string): Add a first parameter 'catr'.
	(stringtable_parse): Pass catr to the functions that need it.

2024-07-28  Bruno Haible  <bruno@clisp.org>

	Refactor.
	Rename the parameter of type 'abstract_catalog_reader_ty *' to catr.
	Rename the parameter of type 'default_catalog_reader_ty *' to dcatr.
	Rename the parameter of type 'msgfmt_catalog_reader_ty *' to mcatr.

	* gettext-tools/src/read-catalog-abstract.h (abstract_catalog_reader_class_ty):
	Change first parameter name of all methods.
	(struct catalog_input_format): Likewise.
	(catalog_reader_parse, catalog_reader_free): Change first parameter name.
	* gettext-tools/src/read-catalog-abstract.c (catalog_reader_alloc): Rename local
	variable 'pop'.
	(catalog_reader_free, call_parse_brief, call_parse_debrief,
	call_directive_domain, call_directive_message, call_comment, call_comment_dot,
	call_comment_filepos, call_comment_special, parse_start, parse_end,
	catalog_reader_parse): Change first parameter name.
	* gettext-tools/src/read-catalog.h (default_constructor, default_destructor,
	default_parse_brief, default_parse_debrief, default_directive_domain,
	default_directive_message, default_comment, default_comment_dot,
	default_comment_filepos, default_comment_special, default_set_domain,
	 default_add_message): Change first parameter name.
	* gettext-tools/src/read-catalog.c (call_set_domain, call_add_message,
	call_frob_new_message, default_constructor, default_destructor,
	default_parse_brief, default_parse_debrief, default_copy_comment_state,
	default_reset_comment_state, default_directive_domain,
	default_directive_message, default_comment, default_comment_dot,
	default_comment_filepos, default_comment_special, default_set_domain,
	default_add_message): Change first parameter name.
	* gettext-tools/src/msgfmt.c (msgfmt_constructor, msgfmt_parse_debrief,
	msgfmt_set_domain, msgfmt_add_message, msgfmt_frob_new_message,
	msgfmt_comment_special): Change first parameter name.
	(read_catalog_file_msgfmt): Rename local variable 'pop'.
	* gettext-tools/src/x-po.c (extract): Rename local variable 'pop'.
	* gettext-tools/src/xgettext.c (exclude_directive_domain,
	exclude_directive_message): Change first parameter name.
	* gettext-tools/src/read-po.c (po_parse): Change first parameter name.
	* gettext-tools/src/read-properties.c (properties_parse): Likewise.
	* gettext-tools/src/read-stringtable.c (stringtable_parse): Likewise.

2024-07-28  Bruno Haible  <bruno@clisp.org>

	Refactor.
	* gettext-tools/src/read-catalog-abstract.h: Improve comments.
	* gettext-tools/src/read-catalog-abstract.c: Likewise.
	* gettext-tools/src/read-catalog.h: Likewise.
	* gettext-tools/src/read-catalog.c: Likewise.

2024-07-28  Bruno Haible  <bruno@clisp.org>

	Refactor.
	* gettext-tools/src/read-catalog-abstract.h
	(abstract_catalog_reader_class_ty::comment_filepos): Change parameter names.
	(po_callback_comment_filepos): Likewise.
	* gettext-tools/src/read-catalog-abstract.c (call_comment_filepos,
	po_callback_comment_filepos): Likewise.
	* gettext-tools/src/read-catalog.h (default_comment_filepos): Likewise.
	* gettext-tools/src/read-catalog.c (default_comment_filepos): Likewise.

2024-07-28  Bruno Haible  <bruno@clisp.org>

	Refactor.
	* gettext-tools/src/message.h (message_comment_filepos): Change parameter names.
	* gettext-tools/src/message.c (message_comment_filepos): Likewise.

2024-07-27  Bruno Haible  <bruno@clisp.org>

	po-mode: Avoid a compiler warning in Emacs 28.
	Reported by Vincent Lefèvre <vincent@vinc17.net> via Santiago Vila
	at <https://lists.gnu.org/archive/html/bug-gettext/2024-06/msg00031.html>.

	* gettext-tools/emacs/po-mode.el (po-mode-version-string): Bump version.
	(po-mode): Use write-contents-functions instead of write-contents-hooks.

2024-07-27  Bruno Haible  <bruno@clisp.org>

	xgettext: PO: Fix error when a --exclude-file option is present (regression 2023-03-10).
	Reported by Nicolas Peugnet <n.peugnet@free.fr> via Santiago Vila
	at <https://lists.gnu.org/archive/html/bug-gettext/2024-07/msg00030.html>.

	* gettext-tools/src/x-po.c (extract_add_message): If the message is the header
	entry and is among the messages to exclude, save the header charset from it
	before discarding it.
	* gettext-tools/tests/xgettext-po-5: New file, based on
	gettext-tools/tests/xgettext-po-3.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2024-07-27  Bruno Haible  <bruno@clisp.org>

	xgettext: Vala: Improve the support of the method .printf().
	* gettext-tools/src/x-vala.c (enum token_type_ty): New enum item
	token_type_compound_assign.
	(phase3_get): Recognize the compound assignment operators as
	token_type_compound_assign instead of token_type_assign.
	(extract_balanced): Invoke new_sub_region instead of inheriting_region. Invoke
	set_format_flag_on_region instead of iterating through the region. When
	encountering an operator, close the inner_region and open a new inner_region.
	After 'return', use the passthrough_context_list_iterator, not the
	null_context_list_iterator.
	* gettext-tools/tests/xgettext-vala-6: Add many more test cases.

2024-07-27  Bruno Haible  <bruno@clisp.org>

	xgettext: Vala: Recognize the '~' operator.
	* gettext-tools/src/x-vala.c (phase3_get): Recognize '~' as operator.

2024-07-27  Bruno Haible  <bruno@clisp.org>

	xgettext: Vala: Fix recognition of the '%' and '^' operators.
	* gettext-tools/src/x-vala.c (phase3_get): Classify '%' and '^' as arithmetic
	operators, not as logic operators.

2024-07-27  Bruno Haible  <bruno@clisp.org>

	xgettext: Vala: Recognize the operators '*' and '*='.
	* gettext-tools/src/x-vala.c (phase3_get): Recognize '*' and '*='.

2024-07-27  Bruno Haible  <bruno@clisp.org>

	xgettext: Java: Improve the support of the method .formatted().
	* gettext-tools/src/x-java.c (enum token_type_ty): New enum items
	token_type_conditional, token_type_colon, token_type_assign,
	token_type_operator.
	(phase5_get): Recognize all kinds of operators that may occur in expressions.
	(extract_parenthesized): Invoke new_sub_region instead of inheriting_region.
	Handle 'return' keyword specially. Invoke set_format_flag_on_region instead of
	iterating through the region. When encountering an operator, close the
	inner_region and open a new inner_region.
	* gettext-tools/tests/xgettext-java-8: Add many more test cases.

2024-07-27  Bruno Haible  <bruno@clisp.org>

	xgettext: Improve support for string formatting through methods.
	* gettext-tools/src/xg-arglist-context.h: Add comments.
	(struct formatstring_region_ty): Add 'pass_format' field.
	(struct flag_region_ty): Add subregion, nsubregions, nsubregions_max,
	inherit_from_parent_region fields.
	(new_sub_region): New declaration.
	(set_format_flag_on_region): New declaration.
	* gettext-tools/src/xg-arglist-context.c: Include xg-message.h.
	(the_null_context_region): Update initializer.
	(inheriting_region): Initialize the new fields.
	(new_sub_region): New function.
	(unref_region): Unreference also the subregions.
	(set_format_flag_on_region): New function.
	* gettext-tools/src/xg-message.h (set_format_flag_from_context): Fix typo in
	comment.

2024-07-27  Bruno Haible  <bruno@clisp.org>

	Fix a clang warning.
	* gettext-tools/src/write-mo.c (useful_instantiation_rules): Make static.

2024-07-27  Bruno Haible  <bruno@clisp.org>

	Update README-alpha.
	* README-alpha: Don't talk about CVS any more.

2024-07-25  Bruno Haible  <bruno@clisp.org>

	Revisit the locating-rule code.
	* gettext-tools/src/search-path.c: Reorder definitions. Add comments.
	(get_search_path): Use XNMALLOC instead of XCALLOC. Verify the memory
	allocation.
	* gettext-tools/src/locating-rule.h: Add comments.
	(locating_rule_list_locate): Add const to first argument.
	* gettext-tools/src/locating-rule.c: Add comments.
	(locating_rule_list_locate): Add const to first argument.
	* gettext-tools/src/FILES: Update.
	* gettext-tools/doc/gettext.texi (Preparing ITS Rules): Fix a typo.

2024-07-25  Bruno Haible  <bruno@clisp.org>

	build: Make VPATH and non-VPATH builds behave the same.
	* gettext-tools/src/Makefile.am (AM_CPPFLAGS): Add -I option for libgrep
	directory in the build dir.

2024-07-25  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2024-07-22  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.

2024-07-22  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2024-07-22  Bruno Haible  <bruno@clisp.org>

	build: Support "make dist" without prior "make".
	This is required by the GNU Coding Standards
	<https://www.gnu.org/prep/standards/html_node/Standard-Targets.html>.

	Reported by <nroycea+gnu@gmail.com> in
	<https://lists.gnu.org/archive/html/bug-gettext/2024-07/msg00010.html>.

	* Makefile.am (distdir1): New target.
	* configure.ac: Apply FIX_MAKEFILE_DISTRIB on Makefile.
	* gettext-runtime/Makefile.am (distdir1, gen-man1): New targets.
	* gettext-runtime/configure.ac: Apply FIX_MAKEFILE_DISTRIB on Makefile.
	* gettext-tools/Makefile.am (programs-for-distdir, distdir1, gen-man1,
	distdir2): New targets.
	* gettext-tools/configure.ac: Apply FIX_MAKEFILE_DISTRIB on Makefile.
	* gettext-tools/src/Makefile.am (built-sources): New target.

2024-07-22  Bruno Haible  <bruno@clisp.org>

	build: Simplify.
	* gettext-runtime/configure.ac: Remove FIX_MAKEFILE_DISTRIB invocation,
	no longer needed since 2014-04-25.
	* gettext-tools/configure.ac: Likewise.

2024-07-21  Bruno Haible  <bruno@clisp.org>

	doc: Small updates.
	* DEPENDENCIES: Document --with-libncurses-prefix instead of
	--with-ncurses-prefix, since that is what the option would be if
	AC_LIB_LINKFLAGS_BODY([ncurses]) was actually in use.
	* HACKING: Stop suggesting Java 7 implementations, since Java 7 support has
	ended. Suggest to create 3 more locales, needed to avoid SKIPs of gnulib tests.

2024-07-21  Bruno Haible  <bruno@clisp.org>

	xgettext: Fix some test failures on MSVC.
	* gettext-tools/src/locating-rule.c: Include <dirent.h> always.
	(HAVE_DIR): Remove macro.
	(locating_rule_list_add_from_directory): Don't test HAVE_DIR.
	* gettext-tools/src/msginit.c: Include <dirent.h> always.
	(HAVE_DIR): Remove macro.
	(find_pot): Don't test HAVE_DIR.

2024-07-21  Bruno Haible  <bruno@clisp.org>

	lang-tcl: Avoid FAIL on native Windows.
	* gettext-tools/tests/lang-tcl: Set the LANG variable as expected by tclsh.

2024-07-19  Bruno Haible  <bruno@clisp.org>

	Declare expected test failures on native Windows.
	* autogen.sh (GNULIB_MODULES_TOOLS_TESTS): Add test-xfail.
	* gettext-tools/tests/Makefile.am (XFAIL_TESTS): New variable.

2024-07-19  Bruno Haible  <bruno@clisp.org>

	lang-perl-*: Avoid FAIL on NetBSD.
	* gettext-tools/tests/lang-perl-1: On NetBSD, don't test the ISO-8859-1 locale.
	* gettext-tools/tests/lang-perl-2: Likewise.

2024-07-19  Bruno Haible  <bruno@clisp.org>

	lang-clisp: Avoid FAIL on NetBSD.
	* gettext-tools/tests/lang-clisp: Unset CLISP_LANGUAGE, LANGUAGE instead of
	setting them to empty.

2024-07-19  Bruno Haible  <bruno@clisp.org>

	lang-librep: Avoid FAIL on FreeBSD, NetBSD.
	* gettext-tools/tests/lang-librep: On FreeBSD and NetBSD, don't test the
	ISO-8859-1 locale.

2024-07-19  Bruno Haible  <bruno@clisp.org>

	lang-guile: Avoid FAIL on Alpine Linux, macOS, NetBSD.
	* gettext-tools/tests/lang-guile: Mark the test as skipped when it does not
	produce the translations.

2024-07-19  Bruno Haible  <bruno@clisp.org>

	lang-tcl: Avoid FAIL on native Windows.
	* gettext-tools/tests/lang-tcl: Unset LC_ALL, LC_MESSAGES, LC_CTYPE instead of
	setting them to empty.

2024-07-16  Bruno Haible  <bruno@clisp.org>

	java: Create reproducible .jar files if the 'jar' utility supports it.
	Suggested by Bernhard M. Wiedemann <bwiedemann@suse.de> in
	<https://lists.gnu.org/archive/html/bug-gettext/2024-07/msg00020.html>.

	* build-aux/jar-cf: New file.
	* Makefile.am (EXTRA_DIST): Add it.
	* gettext-runtime/intl-java/Makefile.am (libintl.jar): Use jar-cf.
	* gettext-tools/src/Makefile.am (gettext.jar): Likewise.

2024-07-16  Bruno Haible  <bruno@clisp.org>

	autopoint-3: Don't require GNU make.
	* gettext-tools/tests/autopoint-3: Don't invoke "$MAKE --version". Instead,
	just assume that $MAKE works.

2024-07-16  Bruno Haible  <bruno@clisp.org>

	lang-pascal: Modernize.
	* gettext-tools/tests/lang-pascal: Try fpc before ppc386 and ppcx64.

2024-07-16  Bruno Haible  <bruno@clisp.org>

	lang-python-*: Avoid SKIP on macOS.
	* gettext-tools/tests/lang-python-1: Search for 'python3' and 'python'.
	* gettext-tools/tests/lang-python-2: Likewise.

2024-07-16  Bruno Haible  <bruno@clisp.org>

	lang-bash: Fix handling of macOS bash.
	* gettext-tools/tests/lang-bash: Don't test whether bash is localized. Instead,
	on macOS, test only in the UTF-8 locale.

2024-07-16  Bruno Haible  <bruno@clisp.org>

	Find the Objective-C compiler out-of-the-box on AlmaLinux 9 systems.
	* gettext-tools/configure.ac: Invoke AC_PROG_OBJC with a customized search list.
	* gettext-tools/tests/init-env.in (OBJC, OBJCFLAGS): Set to the configure-
	determined values.
	* gettext-tools/tests/lang-objc: Use OBJC instead of CC, and OBJCFLAGS instead
	of CFLAGS.
	* gettext-tools/examples/hello-objc/configure.ac: Invoke AC_PROG_OBJC with a
	customized search list. Don't invoke AC_PROC_CC.

2024-07-16  Bruno Haible  <bruno@clisp.org>

	build: Fix "make dist" after switching to automake 1.17.
	* m4/fixautomake.m4 (FIX_MAKEFILE_TOPDIR_DISTRIB): Also recognize the distdir
	rule generated by automake 1.17.

2024-07-12  Bruno Haible  <bruno@clisp.org>

	build: Switch to autoconf 2.72, automake 1.17.
	* autogen.sh: Update comments.

2024-07-02  Bruno Haible  <bruno@clisp.org>

	msgfmt: Revisit Tcl string handling.
	* gettext-tools/src/write-tcl.c (write_tcl_string): Improve comment.

2024-07-01  Bruno Haible  <bruno@clisp.org>

	msgunfmt: Fix msgunfmt-tcl-1 failure with tcl version 9.0 beta2.
	Reported by Jeffrey Cliff <jeffrey.cliff@gmail.com> in
	<https://lists.gnu.org/archive/html/bug-gettext/2024-07/msg00000.html>.

	* gettext-tools/src/msgunfmt.tcl: Access the ::msgcat::header variable through
	an absolute name syntax, not a relative name syntax.

	Rationale: <https://core.tcl-lang.org/tcl/wiki?name=Migrating+scripts+to+Tcl+9>
	says:
	  "In Tcl 8 variable names that are not absolute are resolved by looking
	   first in the current namespace, and then in the global namespace.
	   In Tcl 9 such variables are always interpreted as relative to the current
	   namespace."

2024-06-10  Bruno Haible  <bruno@clisp.org>

	Modernize Java compiler invocations.
	The currently used Java version in the industry is Java 8 or newer, since 2022.
	See <https://en.wikipedia.org/wiki/Java_version_history>. And on macOS 11..13,
	I'm seeing the "error: Source option 6 is no longer supported. Use 8 or later."

	* gettext-runtime/configure.ac: Search for a Java compiler with source and
	target 1.8.
	* gettext-tools/configure.ac: Search for a Java compiler with source 1.8.
	* gettext-tools/examples/hello-java/configure.ac: Likewise.
	* gettext-tools/examples/hello-java-awt/configure.ac: Likewise.
	* gettext-tools/examples/hello-java-swing/configure.ac: Likewise.

2024-06-10  Bruno Haible  <bruno@clisp.org>

	Fix undefined behaviour according to ISO C 23 § 6.5.6.(9).
	Found by clang's undefined-behaviour sanitizer.

	* gettext-tools/src/msgl-fsearch.c (mult_index_list_accumulate): If len1 == 0,
	skip two loops.

2024-06-05  Bruno Haible  <bruno@clisp.org>

	Update DEPENDENCIES.
	* DEPENDENCIES: libiconv is needed again on macOS 14. Mention win-iconv as an
	alternative.

2024-04-30  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gnulib-local/lib/exitfail.h.diff: Update.

2024-04-30  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2024-04-08  Bruno Haible  <bruno@clisp.org>

	Fix -Wdiscarded-qualifiers warnings caused by a newer libxml2.
	Reported by Manish Tiwari <matiwari@redhat.com> in
	<https://lists.gnu.org/archive/html/bug-gettext/2024-04/msg00001.html>.

	* gettext-tools/src/format-kde-kuit.c (format_parse): Declare the local variable
	err as 'const xmlError *'.
	* gettext-tools/src/its.c (its_rule_list_add_from_file,
	its_rule_list_add_from_string, its_rule_list_extract, its_merge_context_alloc):
	Likewise.
	* gettext-tools/src/locating-rule.c (locating_rule_match): Likewise.

2024-04-04  Bruno Haible  <bruno@clisp.org>

	Fix macro file 'serial' numbers for 'aclocal --install'.
	* gettext-runtime/m4/gettext.m4: Make 'serial' effective.
	* gettext-runtime/m4/glibc2.m4: Likewise.
	* gettext-runtime/m4/nls.m4: Likewise.
	* gettext-runtime/m4/po.m4: Likewise.
	* gettext-runtime/m4/progtest.m4: Likewise.
	* gettext-tools/m4/exported.m4: Likewise.
	* gettext-tools/m4/hostname.m4: Likewise.
	* gettext-tools/m4/locale-de.m4: Likewise.
	* libtextstyle/gnulib-local/m4/libcroco.m4: Likewise.
	* libtextstyle/gnulib-local/m4/libglib.m4: Likewise.
	* libtextstyle/gnulib-local/m4/moo.m4: Likewise.
	* libtextstyle/gnulib-local/m4/term-ostream.m4: Likewise.
	* libtextstyle/m4/init-package-version.m4: Likewise.
	* m4/fixautomake.m4: Likewise.
	* m4/more-warnings.m4: Likewise.
	* m4/woe32-dll.m4: Likewise.
	* gnulib-local/m4/java.m4: Likewise.
	* gnulib-local/m4/libxml.m4: Likewise.
	* gnulib-local/m4/backupfile.m4: Likewise. Make sure to override the gnulib
	version.

2024-03-05  Bruno Haible  <bruno@clisp.org>

	locale-*.m4: Update comments.
	* gettext-tools/m4/locale-de.m4: Update comments for Solaris 10.

2024-03-02  Bruno Haible  <bruno@clisp.org>

	build: Fix "make distcheck" failure.
	* Makefile.am (distcheck-hook): Remove comparison with
	gettext-tools/gnulib-m4/po.m4, since that file no longer exists.

2024-02-28  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Avoid crashing the terminal emulator when using ncurses.
	Reported by Adriaan de Groot <adridg@freebsd.org> in
	<https://lists.gnu.org/archive/html/bug-gettext/2021-12/msg00023.html>.
	Long explanation: <https://euroquis.nl/freebsd/2021/11/24/bison.html>

	* libtextstyle/gnulib-local/lib/term-ostream.oo.c (out_data_string,
	out_data_string_unchecked): New functions.
	(out_hyperlink_change): Don't use tputs on strings that are not escape
	sequences.

2024-02-26  Bruno Haible  <bruno@clisp.org>

	build: Tweak ChangeLog generation.
	* Makefile.am (gen-ChangeLogs): Untabify rule. Pass option '--no-cluster'.

2024-02-26  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.

2024-02-26  Bruno Haible  <bruno@clisp.org>

	build: Improve handling of divergences between gnulib and gettext.
	* autogen.sh: Detect divergence also of gettext.m4, nls.m4, progtest.m4.
	When there is a divergence without a serial number bump, assume it's a copyright
	year update and copy the file from gnulib to gettext.

2024-02-23  Bruno Haible  <bruno@clisp.org>

	Merge from 0.22.x branch: Prepare for 0.22.5 release.
	* 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.
	* gettext-tools/configure.ac (ARCHIVE_VERSION): Bump to 0.22.5.
	* gettext-tools/misc/autopoint.in: Allow version 0.22.5.

2024-02-23  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gettext-runtime/intl/configure.ac: Update list of symbols to rename,
	from modules 'localename-unsafe', 'localename', and 'setlocale-null-unlocked'.

2024-02-23  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2024-02-23  Bruno Haible  <bruno@clisp.org>

	Merge from 0.22.x branch: Update NEWS file for release 0.22.5.

2024-02-23  Bruno Haible  <bruno@clisp.org>

	Remove support for OS/2 (based on EMX directly), part 2.
	* Makefile.am (EXTRA_DIST): Remove os2/*.

2024-02-20  Bruno Haible  <bruno@clisp.org>

	Remove support for OS/2 (based on EMX directly).
	Nowadays, KO Myung-Hun <komh78@gmail.com> uses an approach based on kLIBC
	instead of emx+gcc. This kLIBC (https://github.com/bitwiseworks/libc) contains
	iconv already.

	* os2: Remove directory.

2024-02-20  Bruno Haible  <bruno@clisp.org>

	Write #include <error.h>, not #include "error.h".
	This is required by Gnulib, although <error.h> is not a POSIX or ISO C
	standardized header file.

	Reported by Collin Funk <collin.funk1@gmail.com> in
	<https://lists.gnu.org/archive/html/bug-gettext/2024-02/msg00011.html>.

	* gettext-runtime/src/envsubst.c: Use #include <error.h> instead of
	* gettext-runtime/src/gettext.c: Likewise.
	* gettext-runtime/src/ngettext.c: Likewise.
	* gettext-tools/libgettextpo/gettext-po.c: Likewise.
	* gettext-tools/libgrep/m-fgrep.c: Likewise.
	* gettext-tools/libgrep/m-regex.c: Likewise.
	* gettext-tools/src/file-list.c: Likewise.
	* gettext-tools/src/format-scheme.c: Likewise.
	* gettext-tools/src/format.h: Likewise.
	* gettext-tools/src/hostname.c: Likewise.
	* gettext-tools/src/if-error.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/msgl-cat.c: Likewise.
	* gettext-tools/src/msgl-charset.c: Likewise.
	* gettext-tools/src/msgmerge.c: Likewise.
	* gettext-tools/src/msgunfmt.c: Likewise.
	* gettext-tools/src/msguniq.c: Likewise.
	* gettext-tools/src/po-error.c: Likewise.
	* gettext-tools/src/po-gram-gen.y: Likewise.
	* gettext-tools/src/po-lex.c: Likewise.
	* gettext-tools/src/po-lex.h: Likewise.
	* gettext-tools/src/po-xerror.c: Likewise.
	* gettext-tools/src/read-catalog-abstract.c: Likewise.
	* gettext-tools/src/read-csharp.c: Likewise.
	* gettext-tools/src/read-desktop.c: Likewise.
	* gettext-tools/src/read-java.c: Likewise.
	* gettext-tools/src/read-mo.c: Likewise.
	* gettext-tools/src/read-properties.c: Likewise.
	* gettext-tools/src/read-resources.c: Likewise.
	* gettext-tools/src/read-stringtable.c: Likewise.
	* gettext-tools/src/read-tcl.c: Likewise.
	* gettext-tools/src/recode-sr-latin.c: Likewise.
	* gettext-tools/src/urlget.c: Likewise.
	* gettext-tools/src/write-csharp.c: Likewise.
	* gettext-tools/src/write-desktop.c: Likewise.
	* gettext-tools/src/write-java.c: Likewise.
	* gettext-tools/src/write-mo.c: Likewise.
	* gettext-tools/src/write-properties.c: Likewise.
	* gettext-tools/src/write-qt.c: Likewise.
	* gettext-tools/src/write-resources.c: Likewise.
	* gettext-tools/src/write-tcl.c: Likewise.
	* gettext-tools/src/write-xml.c: Likewise.
	* gettext-tools/src/x-awk.c: Likewise.
	* gettext-tools/src/x-c.c: Likewise.
	* gettext-tools/src/x-csharp.c: Likewise.
	* gettext-tools/src/x-desktop.c: Likewise.
	* gettext-tools/src/x-elisp.c: Likewise.
	* gettext-tools/src/x-java.c: Likewise.
	* gettext-tools/src/x-javascript.c: Likewise.
	* gettext-tools/src/x-librep.c: Likewise.
	* gettext-tools/src/x-lisp.c: Likewise.
	* gettext-tools/src/x-lua.c: Likewise.
	* gettext-tools/src/x-perl.c: Likewise.
	* gettext-tools/src/x-php.c: Likewise.
	* gettext-tools/src/x-python.c: Likewise.
	* gettext-tools/src/x-rst.c: Likewise.
	* gettext-tools/src/x-ruby.c: Likewise.
	* gettext-tools/src/x-scheme.c: Likewise.
	* gettext-tools/src/x-sh.c: Likewise.
	* gettext-tools/src/x-smalltalk.c: Likewise.
	* gettext-tools/src/x-tcl.c: Likewise.
	* gettext-tools/src/x-vala.c: Likewise.
	* gettext-tools/src/x-ycp.c: Likewise.
	* gettext-tools/src/xg-mixed-string.c: Likewise.
	* gettext-tools/src/xgettext.c: Likewise.
	* gettext-tools/tests/tstgettext.c: Likewise.
	* gettext-tools/tests/tstngettext.c: Likewise.
	* gnulib-local/lib/closeout.c: Likewise.
	* gnulib-local/lib/xerror.c: Likewise.
	* libtextstyle/gnulib-local/lib/fd-ostream.oo.c: Likewise.
	* libtextstyle/gnulib-local/lib/html-styled-ostream.oo.c: Likewise.
	* libtextstyle/gnulib-local/lib/iconv-ostream.oo.c: Likewise.
	* libtextstyle/gnulib-local/lib/memory-ostream.oo.c: Likewise.
	* libtextstyle/gnulib-local/lib/term-ostream.oo.c: Likewise.
	* gettext-tools/src/its.c: Likewise, and reorganize #includes.
	* gettext-tools/src/locating-rule.c: Likewise.

2024-02-19  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Use #include <...> style for system headers.
	* libtextstyle/gnulib-local/lib/libcroco/cr-additional-sel.c: Use #include <...>
	style for system headers.
	* libtextstyle/gnulib-local/lib/libcroco/cr-input.c: Likewise.
	* libtextstyle/gnulib-local/lib/libcroco/cr-num.c: Likewise.
	* libtextstyle/gnulib-local/lib/libcroco/cr-parser.c: Likewise.
	* libtextstyle/gnulib-local/lib/libcroco/cr-stylesheet.c: Likewise.
	* libtextstyle/gnulib-local/lib/libcroco/cr-tknzr.c: Likewise.

2024-02-15  Bruno Haible  <bruno@clisp.org>

	Don't treat Apple's new Citrus/FreeBSD-based iconv like GNU libiconv.
	* libtextstyle/gnulib-local/lib/iconv-ostream.oo.c (iconv_ostream::write_mem):
	Don't treat the bastard Apple iconv like GNU libiconv.
	* gettext-tools/src/po-charset.c (po_lex_charset_set): Likewise.

2024-02-14  Bruno Haible  <bruno@clisp.org>

	intl: Improve support of Citrus/FreeBSD iconv.
	* gettext-runtime/intl/dcigettext.c (_nl_find_msg): Use //TRANSLIT with all
	iconv implementations that support it.

2024-01-29  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Add a comment regarding COLORTERM.
	* libtextstyle/gnulib-local/lib/term-ostream.oo.c (term_ostream_create): Add
	comment.

2024-01-29  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Update a few URLs.
	* libtextstyle/doc/libtextstyle.texi (Terminal emulators): Update URL. From
	Simon Sobisch.
	(Style rules): Update URL.
	(Hyperlinks): Reference new state-of-the-art document. From Simon Sobisch.

2024-01-29  Bruno Haible  <bruno@clisp.org>

	intl: Revert "Add special hack for GCC" from 2022-06-21.
	The added option --enable-host-shared has the same effect as the
	libtool-provided option --with-pic, and gcc's Makefile.def actually
	uses --with-pic, not --enable-host-shared.

	* gettext-runtime/intl/configure.ac: Don't accept option --enable-host-shared.
	Don't set PICFLAG.
	* gettext-runtime/intl/Makefile.am (AM_CFLAGS): Remove the PICFLAG.
	* gnulib-local/modules/gettext-runtime-intl-misc (Makefile.am): Remove the
	PICFLAG from AM_CFLAGS.

2024-01-08  Bruno Haible  <bruno@clisp.org>

	intl: Fix the Windows MUI code, so that it works on Windows 10.
	Reported by <lrn1986@gmail.com> at <https://savannah.gnu.org/bugs/?65128>.

	* gettext-runtime/intl/langprefs.c (_nl_language_preferences_win32_mui): Make
	GetUserPreferredUILanguages prototype with Microsoft's current documentation.
	Allow the first GetUserPreferredUILanguages call to succeed.

2023-12-05  Bruno Haible  <bruno@clisp.org>

	xgettext: Java: Flag strings on which the method 'formatted' is used as java-printf-format.
	* gettext-tools/src/x-java.c (token_type_semicolon): New enum item.
	(phase5_get): Recognize semicolon tokens.
	(extract_parenthesized): Handle method invocation .formatted. Return when a
	semicolon was seen.
	* gettext-tools/tests/xgettext-java-8: New file, based on
	gettext-tools/tests/xgettext-vala-6.
	* gettext-tools/tests/xgettext-java-9: New file, based on
	gettext-tools/tests/xgettext-vala-7.
	* gettext-tools/tests/Makefile.am (TESTS): Add them.
	* NEWS: Mention the change.

2023-12-05  Bruno Haible  <bruno@clisp.org>

	xgettext: Python: Add support for f-strings.
	Reported by Ben <gnu@mail.qoben.com>
	at <https://savannah.gnu.org/bugs/?61596>.

	* gettext-tools/src/x-python.c (P7_498_START_OF_EXPRESSION): New macro.
	(token_type_498, token_type_l498, token_type_m498, token_type_r498): New enum
	items.
	(free_token): Treat token_type_498 like token_type_string.
	(phase7_getuc): Accept an f_string parameter. Use it to combine {{ to { and
	}} to }.
	(f_string_depth): New variable.
	(struct f_string_level): New type.
	(f_string_stack, f_string_stack_alloc): New variables.
	(new_f_string_level): New function.
	(open_pb): Renamed from open_pbb.
	(phase5_get): Consider also the f_string_stack. Accept f"...", fr"...", rf"..."
	syntax. Recognize tokens of type token_type_498, token_type_l498,
	token_type_m498, token_type_r498.
	(x_python_lex): Treat token_type_498 like token_type_string.
	(extract_balanced): Handle the new token types.
	(extract_python): Initialize f_string_depth and the f_string_stack.
	* gettext-tools/tests/xgettext-python-1: Test also the backslash handling in
	f-strings.
	* gettext-tools/tests/xgettext-python-8: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.
	* gettext-tools/doc/lang-python.texi (Python): Explain the limitations of
	f-string support.
	* NEWS: Mention the change.

2023-11-30  Bruno Haible  <bruno@clisp.org>

	xgettext: Vala: Flag strings on which the method 'printf' is used as c-format.
	* gettext-tools/src/x-vala.c (token_type_semicolon): New enum item.
	(phase3_get): Recognize semicolon tokens.
	(phase4_pushback, phase4_pushback_length): New variables.
	(phase4_get): Renamed from x_vala_lex. Handle pushback.
	(phase4_unget, x_vala_lex, x_vala_unlex): New functions.
	(extract_balanced): Handle method invocations .printf and .vprintf. Return when
	a semicolon was seen.
	(extract_vala): Initialize phase4_pushback_length.
	* gettext-tools/tests/xgettext-vala-6: Add tests for printf used as method.
	* gettext-tools/tests/xgettext-vala-7: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.
	* NEWS: Mention the change.

2023-11-30  Bruno Haible  <bruno@clisp.org>

	xgettext: Vala: Don't flag printf arguments as c-format.
	Reported by Anders Jonsson <anders.jonsson@norsjovallen.se>
	at <https://savannah.gnu.org/bugs/?64921>.

	* gettext-tools/src/xgettext.c (xgettext_record_flag: Recognize also
	"undecided-...-format".
	* gettext-tools/src/x-vala.c (init_flag_table_vala): Flag the printf function as
	'undecided-c-format', not 'c-format'.
	* gettext-tools/tests/xgettext-vala-5: Use vprintf instead of printf.
	* gettext-tools/tests/xgettext-vala-6: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2023-11-30  Bruno Haible  <bruno@clisp.org>

	xgettext: Support modifying the flags of a message after it has been remembered.
	* gettext-tools/src/xg-arglist-context.h (struct remembered_message_ty,
	struct remembered_message_list_ty): New types.
	(remembered_message_list_append): New declaration.
	(struct formatstring_region_ty): Add a 'remembered' field.
	* gettext-tools/src/xg-arglist-context.c (remembered_message_list_alloc,
	remembered_message_list_append, remembered_message_list_ref,
	remembered_message_list_unref): New functions.
	(the_null_context_region): Update.
	(inheriting_region): Inherit or allocate the 'remembered' fields.
	(unref_region): Unref the 'remembered' fields.
	* gettext-tools/src/xg-message.h (set_format_flag_from_context): New
	declaration.
	* gettext-tools/src/xg-message.c (validate_is_format): New function, extracted
	from set_format_flags_from_context.
	(set_format_flags_from_context): Change parameters. Invoke validate_is_format.
	(set_format_flag_from_context): New function.
	(remember_a_message, remember_a_message_plural): Update.

2023-11-30  Bruno Haible  <bruno@clisp.org>

	xgettext: Refactor the formatstring code.
	Use "regions" instead of "contexts" to keep track of the flags and data that is
	specific to a (usually parenthesized) block in an input file.

	* gettext-tools/src/xg-arglist-context.h (null_context, passthrough_context,
	inherited_context): Remove declarations.
	(struct formatstring_region_ty, struct flag_region_ty): New types.
	(null_context_region, inheriting_region, ref_region, unref_region): New
	declarations.
	(assign_region, assign_new_region): New macros.
	* gettext-tools/src/xg-arglist-context.c: Include attribute.h.
	(null_context): Make static.
	(passthrough_context): Make static. Mark as MAYBE_UNUSED.
	(inherited_context): Remove function.
	(the_null_context_region): New variable.
	(null_context_region, inheriting_region, ref_region, unref_region): New
	functions.
	* gettext-tools/src/xg-arglist-parser.h (struct partial_call,
	arglist_parser_remember, arglist_parser_remember_msgctxt): Use
	'flag_region_ty *' instead of flag_context_ty.
	* gettext-tools/src/xg-arglist-parser.c (arglist_parser_alloc,
	arglist_parser_clone, arglist_parser_remember): Update.
	(arglist_parser_remember_msgctxt, arglist_parser_done): Use 'flag_region_ty *'
	instead of flag_context_ty.
	* gettext-tools/src/xg-message.h (remember_a_message,
	remember_a_message_plural): Use 'flag_region_ty *' instead of flag_context_ty.
	* gettext-tools/src/xg-message.c (set_format_flags_from_context,
	remember_a_message, remember_a_message_plural): Use 'flag_region_ty *' instead
	of flag_context_ty.
	* gettext-tools/src/x-awk.c (extract_parenthesized): Use 'flag_region_ty *'
	instead of flag_context_ty.
	(extract_awk): Update.
	* gettext-tools/src/x-c.c (extract_parenthesized): Use 'flag_region_ty *'
	instead of flag_context_ty.
	(extract_whole_file): Update.
	* gettext-tools/src/x-csharp.c (extract_parenthesized): Use 'flag_region_ty *'
	instead of flag_context_ty.
	(extract_csharp): Update.
	* gettext-tools/src/x-desktop.c (extract_desktop_handle_pair): Update.
	* gettext-tools/src/x-elisp.c (read_object): Use 'flag_region_ty *' instead of
	flag_context_ty.
	(extract_elisp): Update.
	* gettext-tools/src/x-java.c (extract_parenthesized): Use 'flag_region_ty *'
	instead of flag_context_ty.
	(extract_java): Update.
	* gettext-tools/src/x-javascript.c (extract_balanced): Use 'flag_region_ty *'
	instead of flag_context_ty.
	(extract_javascript): Update.
	* gettext-tools/src/x-librep.c (read_object): Use 'flag_region_ty *' instead of
	flag_context_ty.
	(extract_librep): Update.
	* gettext-tools/src/x-lisp.c (read_object): Use 'flag_region_ty *' instead of
	flag_context_ty.
	(extract_lisp): Update.
	* gettext-tools/src/x-lua.c (extract_balanced): Use 'flag_region_ty *' instead
	of flag_context_ty.
	(extract_lua): Update.
	* gettext-tools/src/x-perl.c (extract_variable, interpolate_keywords,
	extract_balanced): Use 'flag_region_ty *' instead of flag_context_ty.
	(extract_perl): Update.
	* gettext-tools/src/x-php.c (extract_balanced): Use 'flag_region_ty *' instead
	of flag_context_ty.
	(extract_php): Update.
	* gettext-tools/src/x-python.c (extract_balanced): Use 'flag_region_ty *'
	instead of flag_context_ty.
	(extract_python): Update.
	* gettext-tools/src/x-rst.c (extract_rst, extract_rsj): Update.
	* gettext-tools/src/x-scheme.c (read_object): Use 'flag_region_ty *' instead of
	flag_context_ty.
	(extract_scheme): Update.
	* gettext-tools/src/x-sh.c (read_word, read_command, read_command_list): Use
	'flag_region_ty *' instead of flag_context_ty.
	(extract_sh): Update.
	* gettext-tools/src/x-smalltalk.c (extract_smalltalk): Update.
	* gettext-tools/src/x-tcl.c (accumulate_word, read_word, read_command,
	read_command_list): Use 'flag_region_ty *' instead of flag_context_ty.
	(extract_tcl): Update.
	* gettext-tools/src/x-vala.c (extract_balanced): Use 'flag_region_ty *' instead
	of flag_context_ty.
	(extract_vala): Update.
	* gettext-tools/src/x-ycp.c (extract_parenthesized): Use 'flag_region_ty *'
	instead of flag_context_ty.
	(extract_ycp): Update.
	* gettext-tools/src/xgettext.c (xgettext_its_extract_callback): Update.

2023-11-30  Bruno Haible  <bruno@clisp.org>

	xgettext: Refactor the formatstring code.
	* gettext-tools/src/xg-formatstring.h (NXFORMATS, XFORMAT_PRIMARY,
	XFORMAT_SECONDARY, XFORMAT_TERTIARY, XFORMAT_FOURTH): New macros.
	(current_formatstring_parser1, current_formatstring_parser2,
	current_formatstring_parser3, current_formatstring_parser4): Remove
	declarations.
	(current_formatstring_parser): New declaration.
	* gettext-tools/src/xg-formatstring.c (current_formatstring_parser1,
	current_formatstring_parser2, current_formatstring_parser3,
	current_formatstring_parser4): Remove variables.
	(current_formatstring_parser): New variable.
	* gettext-tools/src/xg-arglist-context.h: Include xg-formatstring.h.
	(struct formatstring_context_ty): New type.
	(struct flag_context_ty): Replace individual fields with an array.
	(flag_context_list_table_add): Rename parameter 'index' to 'fi'.
	* gettext-tools/src/xg-arglist-context.c (null_context, passthrough_context):
	Update.
	(inherited_context): Loop over the four formatstring types.
	(passthrough_context_circular_list): Update.
	(set_flags_for_formatstring_type): Simplify.
	(flag_context_list_table_add): Rename parameter 'index' to 'fi'.
	* gettext-tools/src/xg-arglist-parser.c (arglist_parser_done): Update.
	* gettext-tools/src/xg-message.c (set_format_flags_from_context): Loop over the
	four formatstring types.
	(is_relevant): New function.
	(decide_is_format, remember_a_message_plural): Use it.
	* gettext-tools/src/xgettext.c (struct extractor_ty): Replace individual fields
	with an array.
	(main): Update.
	(flag_context_list_table_insert): Rename parameter 'index' to 'fi'.
	(xgettext_record_flag): Use XFORMAT_* macros.
	(extract_from_file): Loop over the four formatstring types.
	(recognize_qt_formatstrings): Update.
	(language_to_extractor): Use XFORMAT_* macros and a loop.

2023-11-30  Bruno Haible  <bruno@clisp.org>

	xgettext: Refactor.
	* gettext-tools/src/xg-formatstring.h: New file, extracted from xgettext.h.
	* gettext-tools/src/xg-formatstring.c: New file, extracted from xgettext.c.
	* gettext-tools/src/FILES: Mention them.
	* gettext-tools/src/Makefile.am (noinst_HEADERS): Add xg-formatstring.h.
	(xgettext_SOURCES): Add xg-formatstring.c.
	* gettext-tools/src/xgettext.h (current_formatstring_parser1,
	current_formatstring_parser2, current_formatstring_parser3,
	current_formatstring_parser4): Remove declarations.
	* gettext-tools/src/xgettext.c: Include xg-formatstring.h.
	(current_formatstring_parser1, current_formatstring_parser2,
	current_formatstring_parser3, current_formatstring_parser4): Remove variables.
	* gettext-tools/src/xg-message.c: Include xg-formatstring.h.

2023-11-30  Bruno Haible  <bruno@clisp.org>

	xgettext: Refactor.
	* gettext-tools/src/xg-message.c (remember_a_message): Simplify: Don't cache
	mp->do_syntax_check in a local variable.

2023-11-30  Bruno Haible  <bruno@clisp.org>

	xgettext: Refactor.
	* gettext-tools/src/xg-message.c (remember_a_message): Simplify: Don't cache
	mp->do_wrap in a local variable.

2023-11-30  Bruno Haible  <bruno@clisp.org>

	xgettext: Refactor.
	* gettext-tools/src/xg-message.c (remember_a_message): Simplify: Don't cache
	mp->is_format in a local variable.

2023-11-30  Bruno Haible  <bruno@clisp.org>

	tests: Avoid an autopoint-3 failure caused by an Autoconf 2.71 bug.
	* gettext-tools/tests/autopoint-3: Remove the autom4te cache before invoking
	automake.

2023-11-30  Bruno Haible  <bruno@clisp.org>

	Fix clang -Wunused-function warnings.
	* gettext-runtime/src/envsubst.c: Include attribute.h.
	(string_list_member, string_list_destroy): Mark as MAYBE_UNUSED.
	* gettext-tools/src/format-scheme.c: Include attribute.h.
	(II): Mark as MAYBE_UNUSED.
	* gettext-tools/src/msgl-fsearch.c: Include attribute.h.
	(add_index): Mark as MAYBE_UNUSED.
	* gettext-tools/src/po-lex.c: Include attribute.h.
	(mb_isnul, mb_cmp, mb_equal, mb_isascii, mb_putc, mb_setascii): Mark as
	MAYBE_UNUSED.
	* gettext-tools/src/write-qt.c: Include attribute.h.
	(write_u16): Mark as MAYBE_UNUSED.
	* gettext-tools/src/x-awk.c (free_token): Mark as MAYBE_UNUSED.
	* gettext-tools/src/x-python.c (phase0_ungetc): Mark as MAYBE_UNUSED.

2023-11-30  Bruno Haible  <bruno@clisp.org>

	tests: Fix a typo.
	* gettext-tools/tests/autopoint-3: Fix a typo in a file name.

2023-11-19  Bruno Haible  <bruno@clisp.org>

	Merge from 0.22.x branch: Prepare for 0.22.4 release.
	* 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.
	* gettext-tools/configure.ac (ARCHIVE_VERSION): Bump to 0.22.3.
	* gettext-tools/misc/autopoint.in: Allow version 0.22.3.

2023-11-19  Bruno Haible  <bruno@clisp.org>

	Merge from 0.22.x branch: Update NEWS file for release 0.22.4.

2023-11-17  Bruno Haible  <bruno@clisp.org>

	build: Obey --disable-threads also regarding msgmerge and OpenMP.
	* gettext-tools/configure.ac: If --disable-threads was specified, just set
	OPENMP_CFLAGS to empty.

2023-11-17  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.

2023-11-17  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2023-11-17  Bruno Haible  <bruno@clisp.org>

	Add installation instructions for AIX.
	* INSTALL.aix: New file.
	* Makefile.am (EXTRA_DIST): Add it.

2023-11-17  Bruno Haible  <bruno@clisp.org>

	gettext.m4: Recognize a statically built libintl on macOS and AIX.
	Reported by David Edelsohn <dje.gcc@gmail.com> in
	<https://gcc.gnu.org/pipermail/gcc-patches/2023-November/636558.html>.

	* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): In the
	"checking for GNU gettext in libintl..." test, add also the special
	system library dependencies needed on macOS and AIX.

2023-11-17  Bruno Haible  <bruno@clisp.org>

	build: Fix a build issue on AIX.
	How to reproduce:
	$ cd gettext-20231111
	$ ~/build-64-gcc --disable-shared
	$ (cd build-64-gcc && gmake install)
	$ cd ..
	$ cd gettext-0.22.3
	$ ~/build-64-gcc
	=> Fails with "ERROR: Undefined symbol: .syntax_check_message_list"
	because the link uses $PREFIX/lib/libgettextsrc.a, which is a non-shared
	library that does not export 'syntax_check_message_list'.

	* gettext-tools/configure.ac (INSTALL_PRIVATE_LIBRARIES): New conditional.
	* gettext-tools/src/Makefile.am (noinst_LTLIBRARIES): Define as alternative to
	lib_LTLIBRARIES.
	(install-exec-clean): Remove rule.
	* gettext-tools/gnulib-lib/Makefile.am (lib_LTLIBRARIES): Initialize.
	* gnulib-local/modules/gettext-tools-misc (Makefile.am): Define
	noinst_LTLIBRARIES as alternative to lib_LTLIBRARIES. Remove
	'install-exec-clean' rule.

2023-11-15  Bruno Haible  <bruno@clisp.org>

	build: Fix a compilation failure on AIX with gcc 10.
	* m4/more-warnings.m4 (gt_MORE_WARNINGS): Turn off -fanalyzer with GCC 10
	or older.

2023-11-12  Bruno Haible  <bruno@clisp.org>

	xgettext: Fix memory overrun while parsing a C++ brace format string.
	Found with CHERI on CheriBSD.

	* gettext-tools/src/format-c++-brace.c (format_parse): Compare the first
	character after ':' against '\0', not '0'.

2023-11-11  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Remove static variables gram_pos_column, gram_pot_role, signal_eilseq, po_lex_obsolete, po_lex_previous, mbf.
	* gettext-tools/src/po-gram.h: Include <stdbool.h>, <stdio.h>, unistr.h.
	(MBCHAR_BUF_SIZE, struct mbchar, mbchar_t, NPUSHBACK, struct mbfile, mbfile_t):
	Moved to here, from po-lex.c.
	(struct po_parser_state): Add fields gram_pot_role, gram_pos_column,
	signal_eilseq, mbf, po_lex_obsolete, po_lex_previous.
	* gettext-tools/src/po-gram-gen.y: Add %lex-param declaration.
	(do_callback_message): Add 'struct po_parser_state *ps' parameter. Update all
	callers.
	* gettext-tools/src/po-lex.h (gram_pos_column, gram_pot_role): Remove
	declarations.
	(lex_start): Add 'struct po_parser_state *ps' parameter. Remove is_pot_role
	parameter.
	(po_gram_lex): Add 'struct po_parser_state *ps' parameter.
	* gettext-tools/src/po-lex.c: Don't include unistr.h.
	(gram_pos_column, gram_pot_role, signal_eilseq, mbf, po_lex_obsolete,
	po_lex_previous): Remove variables.
	(po_gram_error): Update.
	(MBCHAR_BUF_SIZE, struct mbchar, mbchar_t, NPUSHBACK, struct mbfile, mbfile_t):
	Remove declarations.
	(mb_width): Add 'struct po_parser_state *ps' parameter.
	(mbfile_getc): Likewise. Pass it to po_gram_error.
	(lex_start): Add 'struct po_parser_state *ps' parameter. Remove is_pot_role
	parameter.
	(lex_end): Remove assignments to variables.
	(lex_getc, lex_ungetc, keyword_p, control_sequence, po_gram_lex): Add
	'struct po_parser_state *ps' parameter.
	* gettext-tools/src/read-po.c (po_parse): Iniitialize gram_pot_role field here.
	Pass 'struct po_parser_state *' to lex_start.
	* gettext-tools/woe32dll/gettextsrc-exports.c: Remove gram_pos_column,
	gram_pot_role.

2023-11-11  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Remove static variable 'plural_counter'.
	* gettext-tools/src/po-gram.h (struct po_parser_state): New type.
	(po_gram_parse): Add 'struct po_parser_state *ps' parameter.
	* gettext-tools/src/po-gram-gen.y: Add %parse-param declaration.
	Access ps->plural_counter instead of plural_counter.
	(plural_counter): Remove variable.
	* gettext-tools/src/po-lex.h (po_gram_error): Add 'struct po_parser_state *ps'
	parameter.
	* gettext-tools/src/po-lex.c: Include po-gram.h.
	(po_gram_error): Add 'struct po_parser_state *ps' parameter.
	(mbfile_getc, control_sequence): Update po_gram_error calls.
	* gettext-tools/src/read-po.c (po_parse): Pass a 'struct po_parser_state *' to
	po_gram_parse.

2023-11-11  Bruno Haible  <bruno@clisp.org>

	build: Remove po-gram-gen2.h.
	* gettext-tools/src/po-lex.c: Include po-gram-gen.h instead of po-gram-gen2.h.
	* gettext-tools/src/po-lex.h: Update comment.
	* gettext-tools/src/Makefile.am (noinst_HEADERS): Remove po-gram-gen2.h.
	(po-gram-gen2.h): Remove rule.
	(BUILT_SOURCES, MAINTAINERCLEANFILES, EXTRA_DIST): Don't add it.
	(po-lex.o, po-lex.lo): Don't depend on it.

2023-11-11  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Remove static variables po_gram_lval, po_gram_char, po_gram_nerrs.
	* gettext-tools/src/po-gram-gen.y: Request a pure parser.
	* gettext-tools/src/po-lex.h (po_gram_lex): Add lval parameter.
	* gettext-tools/src/po-lex.c (po_gram_lex): Add lval parameter. Store the result
	in *lval instead of in po_gram_lval.
	* gettext-tools/woe32dll/gettextsrc-exports.c: Remove po_gram_lval.

2023-11-11  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Remove static variable 'width.0'.
	* gnulib-local/lib/xerror.h: Include <stddef.h>.
	(multiline_warning, multiline_error): Change return type to size_t. Don't
	suggest to pass a NULL prefix.
	(multiline_append): New declaration.
	* gnulib-local/lib/xerror.c (multiline_internal): New function, extracted from
	multiline_warning.
	(multiline_warning, multiline_error): Reject a NULL prefix. Call
	multiline_internal.
	(multiline_append): New function.
	* gettext-tools/src/msgl-charset.c (compare_po_locale_charsets): Invoke
	multiline_append instead of multiline_warning with NULL argument.
	* gettext-tools/src/msgfmt.c (msgfmt_parse_debrief): Invoke multiline_append
	instead of multiline_error with NULL argument.
	* gettext-tools/src/po-error.c (void_multiline_warning, void_multiline_error):
	New functions.
	(po_multiline_warning, po_multiline_error): Use them as initializer.
	* gettext-tools/libgettextpo/gettext-po.c (void_multiline_warning,
	void_multiline_error): New functions.
	(po_file_read_v2, po_file_write): Use them as defaults for po_multiline_warning,
	po_multiline_error.

2023-11-11  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Remove static variable 'result.0'.
	* gettext-tools/src/write-po.h (make_format_description_string): Change return
	type to 'char *'.
	* gettext-tools/src/write-po.c (make_format_description_string): Return a
	freshly allocated string.
	(message_print_comment_flags, message_print_obsolete): Free the result of
	make_format_description_string when done.
	* gettext-tools/src/write-stringtable.c (write_message): Likewise.

2023-11-11  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Remove static variables curr_mp, curr_msgid_pos.
	* gettext-tools/src/format.h (formatstring_error_logger_t): Add a 'data'
	parameter.
	(struct formatstring_parser): In the 'check' method, add an 'error_logger_data'
	parameter.
	(check_msgid_msgstr_format_i, check_msgid_msgstr_format): Add an
	'error_logger_data' parameter.
	* gettext-tools/src/format-awk.c (format_check): Add an 'error_logger_data'
	parameter. Pass it to each error_logger invocation.
	* gettext-tools/src/format-boost.c (format_check): Likewise.
	* gettext-tools/src/format-c.c (format_check): Likewise.
	* gettext-tools/src/format-c++-brace.c (format_check): Likewise.
	* gettext-tools/src/format-csharp.c (format_check): Likewise.
	* gettext-tools/src/format-elisp.c (format_check): Likewise.
	* gettext-tools/src/format-gcc-internal.c (format_check): Likewise.
	* gettext-tools/src/format-gfc-internal.c (format_check): Likewise.
	* gettext-tools/src/format-java-printf.c (format_check): Likewise.
	* gettext-tools/src/format-java.c (format_check): Likewise.
	* gettext-tools/src/format-javascript.c (format_check): Likewise.
	* gettext-tools/src/format-kde-kuit.c (format_check): Likewise.
	* gettext-tools/src/format-kde.c (format_check): Likewise.
	* gettext-tools/src/format-librep.c (format_check): Likewise.
	* gettext-tools/src/format-lisp.c (format_check): Likewise.
	* gettext-tools/src/format-lua.c (format_check): Likewise.
	* gettext-tools/src/format-pascal.c (format_check): Likewise.
	* gettext-tools/src/format-perl-brace.c (format_check): Likewise.
	* gettext-tools/src/format-perl.c (format_check): Likewise.
	* gettext-tools/src/format-php.c (format_check): Likewise.
	* gettext-tools/src/format-python-brace.c (format_check): Likewise.
	* gettext-tools/src/format-python.c (format_check): Likewise.
	* gettext-tools/src/format-qt-plural.c (format_check): Likewise.
	* gettext-tools/src/format-qt.c (format_check): Likewise.
	* gettext-tools/src/format-ruby.c (format_check): Likewise.
	* gettext-tools/src/format-scheme.c (format_check): Likewise.
	* gettext-tools/src/format-sh.c (format_check): Likewise.
	* gettext-tools/src/format-smalltalk.c (format_check): Likewise.
	* gettext-tools/src/format-tcl.c (format_check): Likewise.
	* gettext-tools/src/format.c (check_msgid_msgstr_format_i,
	check_msgid_msgstr_format): Add an 'error_logger_data' parameter.
	* gettext-tools/src/msgl-check.c (curr_mp, curr_msgid_pos): Remove variables.
	(struct formatstring_error_logger_locals): New type.
	(formatstring_error_logger): Add a 'data' parameter.
	(check_pair): Set up a 'struct formatstring_error_logger_locals' on the stack
	and pass it to check_msgid_msgstr_format.
	* gettext-tools/src/msgmerge.c (silent_error_logger): Add a 'data' parameter.
	(message_merge): Pass a null error_logger_data.
	* gettext-tools/libgettextpo/gettext-po.c (po_error_logger): Add a 'data'
	parameter.
	(po_message_check_format): Pass a null error_logger_data.

2023-11-11  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Remove static variable bullet_stack.
	* gettext-tools/src/xg-check.h: New file, extracted from
	gettext-tools/src/msgl-check.h.
	* gettext-tools/src/xg-check.c: New file, extracted from
	gettext-tools/src/msgl-check.c.
	* gettext-tools/src/msgl-check.h (syntax_check_message_list): Remove
	declaration.
	* gettext-tools/src/msgl-check.c: Don't include quote.h, sentence.h, unictype.h,
	unistr.h.
	(struct callback_arg, struct bullet_ty, struct bullet_stack_ty,
	syntax_check_function): Remove types.
	(bullet_stack, sc_funcs): Remove variables.
	(syntax_check_ellipsis_unicode, syntax_check_space_ellipsis,
	syntax_check_quote_unicode_callback, syntax_check_quote_unicode,
	syntax_check_bullet_unicode, syntax_check_message, syntax_check_message_list):
	Remove functions.
	* gettext-tools/src/xgettext.c: Include xg-check.h instead of msgl-check.h.
	* gettext-tools/src/Makefile.am (noinst_HEADERS): Add xg-check.h.
	(xgettext_SOURCES): Add xg-check.c.
	* gettext-tools/src/FILES: Mention xg-check.h, xg-check.c.
	* gettext-tools/po/POTFILES.in: Add src/xg-check.c.

2023-11-11  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Remove static variable 'directory'.
	* gettext-tools/src/read-catalog-file.h: New file, extracted from
	gettext-tools/src/read-catalog.h.
	* gettext-tools/src/read-catalog.h (read_catalog_file): Remove declaration.
	* gettext-tools/src/read-catalog-file.c: New file, extracted from
	gettext-tools/src/read-catalog.c.
	* gettext-tools/src/read-catalog.c: Don't include open-catalog.h.
	(read_catalog_file): Remove function.
	* gettext-tools/src/msgl-cat.c: Include read-catalog-file.h instead of
	read-catalog.h.
	* gettext-tools/src/msgattrib.c: Likewise.
	* gettext-tools/src/msgcmp.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/FILES: Mention read-catalog-file.h, read-catalog-file.c.
	* gettext-tools/src/Makefile.am (noinst_HEADERS): Add read-catalog-file.h.
	(libgettextsrc_la_SOURCES): Add read-catalog-file.c.
	* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES): Remove
	dir-list.c, open-catalog.c.

2023-10-20  KO Myung-Hun  <komh78@gmail.com>  (tiny change)

	build: Use $(PATH_SEPARATOR) as a path separator
	':' is not a path separator on Windows and OS/2.

	PATH_SEPARATOR is defined and AC_SUBSTed by Autoconf.

	* gettext-tools/examples/po/Makefile.am (USE_BUILT_PROGS): Use
	$(PATH_SEPARATOR) instead of ':'.

2023-10-07  Bruno Haible  <bruno@clisp.org>

	xgettext: Mention last changes in NEWS.
	* NEWS: Mention diagnostics changes.

2023-10-07  Bruno Haible  <bruno@clisp.org>

	xgettext: Simplify code that emits diagnostics with error number.
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add xstrerror.
	(GNULIB_MODULES_LIBGETTEXTPO_OTHER): Add strerror_r-posix.
	* gettext-tools/src/x-csharp.c: Include xstrerror.h.
	(phase2_getc): Invoke 'xstrerror' and 'if_error' instead of 'error'.
	* gettext-tools/src/x-javascript.c: Include xstrerror.h.
	(phase2_getc): Invoke 'xstrerror' and 'if_error' instead of 'error'.
	* gettext-tools/src/x-python.c: Include xstrerror.h.
	(phase2_getc): Invoke 'xstrerror' and 'if_error' instead of 'error'.

2023-10-07  Bruno Haible  <bruno@clisp.org>

	xgettext: Simplify code that emits diagnostics.
	Also, for Perl input, clarify some diagnostics as errors vs. warnings.

	* gettext-tools/src/if-error.h: New file.
	* gettext-tools/src/if-error.c: New file.
	* gettext-tools/src/xg-mixed-string.c: Include if-error.h instead of
	error-progname.h.
	(mixed_string_buffer_append_lone_surrogate): Invoke 'if_error' instead of
	'error'.
	* gettext-tools/src/x-awk.c: Include if-error.h instead of error-progname.h.
	(phase7_getc, x_awk_lex, extract_parenthesized): Invoke 'if_error' instead of
	'error'.
	* gettext-tools/src/x-c.c: Include if-error.h instead of error-progname.h.
	(phase7_getc, phase5_get, extract_parenthesized): Invoke 'if_error' instead of
	'error'.
	* gettext-tools/src/x-csharp.c: Include if-error.h instead of error-progname.h.
	(do_getc_unicode_escaped, accumulate_escaped, extract_parenthesized): Invoke
	'if_error' instead of 'error'.
	* gettext-tools/src/x-elisp.c: Include if-error.h instead of error-progname.h.
	(do_getc_escaped, read_object): Invoke 'if_error' instead of 'error'.
	* gettext-tools/src/x-java.c: Include if-error.h instead of error-progname.h.
	(accumulate_escaped, phase5_get, extract_parenthesized): Invoke 'if_error'
	instead of 'error'.
	* gettext-tools/src/x-javascript.c: Include if-error.h instead of
	error-progname.h.
	(phase7_getuc, phase5_scan_regexp, phase5_scan_xml_markup, phase5_get,
	extract_balanced): Invoke 'if_error' instead of 'error'.
	* gettext-tools/src/x-librep.c: Include if-error.h instead of error-progname.h.
	(read_object): Invoke 'if_error' instead of 'error'.
	* gettext-tools/src/x-lisp.c: Include if-error.h instead of error-progname.h.
	(read_object): Invoke 'if_error' instead of 'error'.
	* gettext-tools/src/x-lua.c: Include if-error.h instead of error-progname.h.
	(extract_balanced): Invoke 'if_error' instead of 'error'.
	* gettext-tools/src/x-perl.c: Include if-error.h instead of error-progname.h.
	(get_here_document, extract_quotelike_pass3, interpolate_keywords, x_perl_lex,
	extract_balanced): Invoke 'if_error' instead of 'error'.
	(interpolate_keywords): Update extract_quotelike_pass3 invocations.
	(extract_balanced): Update collect_message invocations. Call fflush before
	abort (needed for MSVC).
	* gettext-tools/src/x-php.c: Include if-error.h instead of error-progname.h.
	(extract_balanced): Invoke 'if_error' instead of 'error'.
	* gettext-tools/src/x-python.c: Include if-error.h instead of error-progname.h.
	(phase7_getuc, extract_balanced): Invoke 'if_error' instead of 'error'.
	* gettext-tools/src/x-rst.c: Include if-error.h instead of error-progname.h.
	(extract_rst, extract_rsj): Invoke 'if_error' instead of 'error'.
	* gettext-tools/src/x-scheme.c: Include if-error.h instead of error-progname.h.
	(read_object): Invoke 'if_error' instead of 'error'.
	* gettext-tools/src/x-sh.c: Include if-error.h instead of error-progname.h.
	(read_word, read_command_list): Invoke 'if_error' instead of 'error'.
	* gettext-tools/src/x-tcl.c: Include if-error.h instead of error-progname.h.
	(accumulate_word, read_word): Invoke 'if_error' instead of 'error'.
	* gettext-tools/src/x-vala.c: Include if-error.h instead of error-progname.h.
	(phase7_getc, phase3_scan_regex, phase3_get, extract_balanced): Invoke
	'if_error' instead of 'error'.
	* gettext-tools/src/x-ycp.c: Include if-error.h instead of error-progname.h.
	(extract_parenthesized): Invoke 'if_error' instead of 'error'.
	* gettext-tools/src/xg-arglist-parser.c: Include if-error.h instead of error.h,
	error-progname.h.
	(arglist_parser_done): Invoke 'if_error' instead of 'error_at_line'.
	* gettext-tools/src/xg-message.c: Include if-error.h instead of
	error-progname.h.
	(set_format_flags_from_context, warn_format_string, remember_a_message): Invoke
	'if_error' instead of 'multiline_warning'.
	* gettext-tools/src/Makefile.am (noinst_HEADERS): Add if-error.h.
	(xgettext_SOURCES): Add if-error.c.
	* gettext-tools/src/FILES: Mention if-error.h, if-error.c.
	* gettext-tools/po/Makevars (XGETTEXT_OPTIONS): Add option regarding the
	'if_error' function.
	* gettext-tools/po/POTFILES.in: Add src/if-error.c.

2023-10-07  Bruno Haible  <bruno@clisp.org>

	xgettext: Clarify some diagnostics as errors vs. warnings.
	* gettext-tools/src/x-csharp.c (phase2_getc): Clarify role of diagnostics.
	* gettext-tools/src/x-javascript.c (phase2_getc): Likewise.
	* gettext-tools/src/x-perl.c (get_here_document, extract_balanced): Likewise.
	* gettext-tools/src/x-python.c (phase2_getc): Likewise.
	* gettext-tools/src/x-rst.c (extract_rst, extract_rsj): Likewise.
	* gettext-tools/src/xg-arglist-parser.c (arglist_parser_done): Likewise.

2023-10-07  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2023-10-07  Bruno Haible  <bruno@clisp.org>

	Avoid possible problems in C++ mode.
	* gettext-tools/src/po-xerror.h: Move the #include outside the extern "C" {...}
	block.

2023-10-06  Bruno Haible  <bruno@clisp.org>

	Avoid crash by SIGFPE during plural form expression evaluation.
	Libraries (such as libintl and libgettextpo) should not raise signals, because
	catching such signals cannot be done in a multithread-safe way.

	* gettext-runtime/intl/plural-exp.h (enum eval_status): New enum items
	PE_INTDIV, PE_INTOVF.
	* gettext-runtime/intl/eval-plural.h (plural_eval_recurse): When a division
	argument is zero, return status PE_INTDIV instead of raising SIGFPE.
	* gettext-runtime/intl/dcigettext.c (INTDIV0_RAISES_SIGFPE): Remove macro.
	Don't include <signal.h>.
	* gettext-runtime/intl/configure.ac: Don't invoke gt_INTDIV0.
	* gettext-runtime/intl/m4/intdiv0.m4: Remove file.
	* gettext-runtime/intl/Makefile.am (ACLOCAL_AMFLAGS): Remove option '-I m4'.
	(EXTRA_DIST): Remove m4/intdiv0.m4.
	* autogen.sh: When invoking aclocal in gettext-runtime/intl, omit option
	'-I m4'.

	* gettext-tools/src/msgl-check.c: Don't include <setjmp.h>, <signal.h>.
	(plural_expression_histogram): Don't invoke install_sigfpe_handler,
	uninstall_sigfpe_handler.
	(check_plural_eval): Don't invoke setjmp, install_sigfpe_handler,
	uninstall_sigfpe_handler. Remove 'volatile' from array variable.
	Produce error message when status PE_INTDIV or PE_INTOVF occurred.
	* gettext-tools/src/plural-eval.h: Don't include <setjmp.h>.
	(sigjmp_buf, sigsetjmp, siglongjmp): Remove definitions.
	(USE_SIGINFO): Remove macro.
	(sigfpe_exit, sigfpe_code, install_sigfpe_handler, uninstall_sigfpe_handler):
	Remove declarations.
	* gettext-tools/src/plural-eval.c: Don't include <signal.h>.
	(sigfpe_exit, sigfpe_code): Remove variables.
	(sigfpe_handler, install_sigfpe_handler, uninstall_sigfpe_handler): Remove
	functions.
	* gettext-tools/configure.ac: Don't invoke gt_SIGINFO.
	* gettext-tools/m4/siginfo.m4: Remove file.
	* gettext-tools/m4/Makefile.am (EXTRA_DIST): Remove it.

2023-10-06  Bruno Haible  <bruno@clisp.org>

	tests: Check against SIGFPE signal during plural expression evaluation.
	* gettext-tools/tests/plural-4: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2023-10-06  Bruno Haible  <bruno@clisp.org>

	Avoid crash by stack overflow during plural expression evaluation.
	* gettext-runtime/intl/plural-exp.h (enum eval_status, struct eval_result): New
	types.
	(plural_eval): Change return type to 'struct eval_result'.
	* gettext-runtime/intl/eval-plural.h (EVAL_MAXDEPTH, OK): New macros.
	(plural_eval_recurse): New function, extracted from plural_eval.
	(plural_eval): Change return type to 'struct eval_result'. Invoke
	plural_eval_recurse.
	* gettext-runtime/intl/dcigettext.c (plural_lookup): Update.
	* gettext-tools/src/plural-eval.h: Update comment.
	* gettext-tools/src/msgl-check.c (plural_expression_histogram): Update.
	(check_plural_eval): Update. Fail with an error message if the plural expression
	evaluation produced a stack overflow.
	* gettext-tools/tests/plural-3: Update.

2023-10-06  Bruno Haible  <bruno@clisp.org>

	tests: Check against stack overflow during plural expression evaluation.
	* gettext-tools/tests/plural-1: Add comment.
	* gettext-tools/tests/plural-2: Add comment.
	* gettext-tools/tests/plural-3: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2023-10-06  Bruno Haible  <bruno@clisp.org>

	tests: Add option --thread to tstgettext, tstngettext.
	* gettext-tools/tests/tstgettext.c: Include glthread/thread.h.
	(inhibit_added_newline, do_expand): Remove variables.
	(long_options): Add --thread option.
	(struct worker_context): New type.
	(main): Move some local variables into a context. Recognize option --thread.
	At the end, invoke worker_thread.
	(worker_thread): New function, extracted from main.
	* gettext-tools/tests/tstngettext.c: Include glthread/thread.h.
	(long_options): Add --thread option.
	(struct worker_context): New type.
	(main): Move some local variables into a context. Recognize option --thread.
	At the end, invoke worker_thread.
	(worker_thread): New function, extracted from main.
	* gettext-tools/tests/Makefile.am (tstgettext_LDADD, tstngettext_LDADD): Add
	gnulib-lib/libtestsgnu.a and $(LIBMULTITHREAD).

2023-10-06  Bruno Haible  <bruno@clisp.org>

	build: Use a separate gnulib-tool invocation for gettext-tools/tests/.
	* autogen.sh (GNULIB_MODULES_LIBGETTEXTLIB, GNULIB_MODULES_TOOLS_TESTS): New
	variables.
	Add a gnulib-tool invocation for gettext-tools/tests/gnulib-{m4,lib}.
	Add option -I tests/gnulib-m4 when generating gettext-tools/configure.
	* gettext-tools/tests/gnulib-lib/Makefile.am: New file.
	* gettext-tools/tests/Makefile.am (SUBDIRS): New variable.
	(AM_CPPFLAGS): Add more -I options.
	(EXTRA_DIST): Add gnulib-m4/gnulib-cache.m4.
	* gettext-tools/Makefile.am (ACLOCAL_AMFLAGS): Add -I tests/gnulib-m4.
	* gettext-tools/configure.ac: Invoke gttgl_EARLY and gttgl_INIT. Add an
	AC_CONFIG_FILES of tests/gnulib-lib/Makefile.

2023-10-06  Bruno Haible  <bruno@clisp.org>

	build: Remove redundant -I options from AM_CPPFLAGS.
	https://www.gnu.org/software/automake/manual/html_node/Program-Variables.html
	documents that -I. -I$(srcdir) and -I$(top_builddir) (for config.h)
	are already part of Automake's $(DEFAULT_INCLUDES), which is used
	before $(AM_CPPFLAGS).

	* gettext-runtime/src/Makefile.am (AM_CPPFLAGS): Remove redundant -I options.
	* gettext-tools/gnulib-lib/Makefile.am (AM_CPPFLAGS): Likewise.
	* gettext-tools/libgettextpo/Makefile.am (AM_CPPFLAGS): Likewise.
	* gettext-tools/libgrep/Makefile.am (AM_CPPFLAGS): Likewise.
	* gettext-tools/src/Makefile.am (AM_CPPFLAGS): Likewise.
	* gettext-tools/system-tests/Makefile.am (AM_CPPFLAGS): Likewise.
	* gettext-tools/tests/Makefile.am (AM_CPPFLAGS): Likewise.
	* libtextstyle/adhoc-tests/Makefile.am (AM_CPPFLAGS): Likewise.
	* libtextstyle/lib/Makefile.am (AM_CPPFLAGS): Likewise.
	* gettext-runtime/intl/Makefile.am (AM_CPPFLAGS): Add comment.
	* gettext-runtime/libasprintf/Makefile.am (AM_CPPFLAGS): Likewise.

2023-10-06  Bruno Haible  <bruno@clisp.org>

	build: Remove unused -I options from AM_CPPFLAGS.
	* gnulib-local/modules/gettext-runtime-misc (Makefile.am): Remove
	-I$(top_srcdir)/intl from AM_CPPFLAGS.
	* gettext-runtime/tests/Makefile.am (AM_CPPFLAGS): Set to empty.
	* gettext-tools/gnulib-lib/Makefile.am (AM_CPPFLAGS): Remove
	-I$(top_srcdir)/../gettext-runtime/intl.
	* gettext-tools/gnulib-tests/Makefile.am (AM_CPPFLAGS): Update comment.
	* gettext-tools/src/Makefile.am (AM_CPPFLAGS): Add comment.
	* gettext-tools/libgettextpo/Makefile.am (AM_CPPFLAGS): Likewise.
	* libtextstyle/lib/Makefile.am (AM_CPPFLAGS): Remove -I$(top_srcdir).

2023-10-06  Bruno Haible  <bruno@clisp.org>

	po-mode: Remove support for Emacs versions < 23.
	Reported by Julien Palard <julien@palard.fr>
	at <https://savannah.gnu.org/bugs/?64748>.

	* gettext-tools/emacs/po-mode.el (po-mode-version-string): Bump to 2.29.
	(po-buffer-substring, po-match-string, po-with-temp-buffer, po-kill-new,
	po-read-event, po-force-mode-line-update): Remove portability polyfills.
	(easy-menu-define, format-time-string): Assume present as well.
	* gettext-tools/emacs/po-compat.el: Update.

2023-10-06  Bruno Haible  <bruno@clisp.org>

	po-mode: Add a HACKING file.
	* gettext-tools/emacs/HACKING: New file.
	* gettext-tools/emacs/Makefile.am (EXTRA_DIST): Add it.

2023-10-04  Bruno Haible  <bruno@clisp.org>

	Merge from 0.22.x branch: Prepare for 0.22.3 release.
	* 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.
	* gettext-tools/configure.ac (ARCHIVE_VERSION): Bump to 0.22.3.
	* gettext-tools/misc/autopoint.in: Allow version 0.22.3.

2023-10-04  Bruno Haible  <bruno@clisp.org>

	Merge from 0.22.x branch: Update NEWS file for release 0.22.3.

2023-10-04  Bruno Haible  <bruno@clisp.org>

	build: Fix link error on native Windows (regression 2023-09-17).
	* gettext-tools/woe32dll/gettextsrc-exports.c: Export also gram_pos_column,
	gram_pot_role.

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Avoid compiler warning from previous commit.
	* gettext-runtime/intl/localealias.c (__libc_localealias_freemem): Don't define
	outside of _LIBC.

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Merge from glibc.
	Apply commit
	2022-12-27  Adhemerval Zanella Netto  <adhemerval.zanella@linaro.org>
	Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Merge from glibc.
	Apply commit
	2023-02-03  Wilco Dijkstra  <wilco.dijkstra@arm.com>
	Replace rawmemchr (s, '\0') with strchr

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Fix portability problem in previous commit.
	* gettext-runtime/intl/localealias.c (read_alias_file): Use
	"#pragma GCC diagnostic ..." only with new enough GCC versions.

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Merge from glibc.
	Apply commit
	2022-01-25  Martin Sebor  <msebor@redhat.com>
	intl: Avoid -Wuse-after-free [BZ #26779]

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Merge from glibc.
	Apply commit
	2021-12-12  Andrea Monaco  <andrea.monaco@autistici.org>
	intl/plural.y: Avoid conflicting declarations of yyerror and yylex

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Merge from glibc.
	Apply commit
	2021-03-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
	Use 64 bit time_t stat internally

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Merge from glibc.
	Apply commit
	2020-09-25  Arjun Shankar  <arjun@redhat.com>
	intl: Handle translation output codesets with suffixes [BZ #26383]

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Merge from glibc.
	Apply commit
	2020-07-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
	Remove internal usage of extensible stat functions

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Merge from glibc.
	Apply commit
	2020-07-07  Arjun Shankar  <arjun@redhat.com>
	Rewrite iconv option parsing [BZ #19519]

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Merge from glibc.
	Apply commit
	2019-09-05  Florian Weimer  <fweimer@redhat.com>
	locale: Avoid zero-length array in _nl_category_names [BZ #24962]

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Merge from glibc.
	Apply commit
	2018-02-15  Joseph Myers  <joseph@codesourcery.com>
	Fix -Os feof_unlocked linknamespace, localplt issues (bug 15105, bug 19463).

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Fix compilation error from previous commit.
	* gettext-runtime/intl/hash-string.h (attribute_hidden): Add fallback
	definition.

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Merge from glibc.
	Apply commit
	2017-10-01  H.J. Lu  <hjl.tools@gmail.com>
	Hide internal __hash_string function [BZ #18822]

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Merge from glibc.
	Apply commit
	2017-10-01  H.J. Lu  <hjl.tools@gmail.com>
	Hide internal __gettextparse function [BZ #18822]

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Merge from glibc.
	Apply commit
	2017-10-01  H.J. Lu  <hjl.tools@gmail.com>
	Mark internal intl functions with attribute_hidden [BZ #18822]

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Merge from glibc.
	Apply commit
	2017-10-01  H.J. Lu  <hjl.tools@gmail.com>
	Mark internal functions with attribute_hidden [BZ #18822]

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Merge from glibc.
	Apply commit
	2017-08-15  Florian Weimer  <fweimer@redhat.com>
	iconv, intl, locale, wcsmbs: Remove internal_function

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Merge from glibc.
	Apply commit
	2017-07-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
	Consolidate non cancellable close call

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Merge from glibc.
	Apply commit
	2017-07-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
	Consolidate non cancellable read call

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Merge from glibc.
	Apply commit
	2017-07-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
	Consolidate non cancellable open call

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Fix compilation error from previous commit.
	* gettext-runtime/intl/loadmsgcat.c (_nl_load_domain): Use free() instead of
	freea().

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Merge from glibc.
	Apply commit
	2017-06-21  Florian Weimer  <fweimer@redhat.com>
	_nl_load_domain: Use calloc instead of alloca

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Remove use of alloca() for wdirname handling.
	* autogen.sh (GNULIB_MODULES_LIBINTL): Add wgetcwd-lgpl.
	* gettext-runtime/intl/dcigettext.c: Include <wchar.h>.
	(DCIGETTEXT): Allocate resolved_wdirname through malloc() instead of through
	alloca().

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Fix compilation error from previous commit.
	* gettext-runtime/intl/dcigettext.c (DCIGETTEXT) [!_LIBC]: Compute the resolved
	dirname without using __asprintf.

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Merge from glibc.
	Apply commits
	2017-06-21  Florian Weimer  <fweimer@redhat.com>
	DCIGETTEXT: Use getcwd, asprintf to construct absolute pathname
	and
	2018-12-21  Florian Weimer  <fweimer@redhat.com>
	intl: Do not return NULL on asprintf failure in gettext [BZ #24018]

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Use gnulib module 'getcwd-lgpl'.
	* autogen.sh (GNULIB_MODULES_LIBINTL): Add getcwd-lgpl.

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Merge from glibc.
	Apply commit
	2017-06-19  Florian Weimer  <fweimer@redhat.com>
	DCIGETTEXT: Do not make copy of localename

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Merge from glibc.
	Apply commit
	2017-03-13  Wilco Dijkstra  <wdijkstr@arm.com>
	Remove the str(n)dup inlines from string/bits/string2.h...

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Merge from glibc.
	Apply commit
	2016-09-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
	hurd: fix pathconf visibility

2023-10-01  Bruno Haible  <bruno@clisp.org>

	intl: Merge from glibc.
	Apply commit
	2015-09-08  Joseph Myers  <joseph@codesourcery.com>
	Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).

2023-10-01  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2023-09-29  Bruno Haible  <bruno@clisp.org>

	Allow different --libtool options from multiple gnulib-tool invocations.
	* gnulib-local/modules/libxml (Makefile.am): Don't test GL_COND_LIBTOOL, since
	gnulib-tool already eliminates lib_LDFLAGS augmentations for non-libtool
	libraries.
	* libtextstyle/gnulib-local/modules/libcroco (Makefile.am): Likewise.
	* libtextstyle/gnulib-local/modules/libglib (Makefile.am): Likewise.

2023-09-29  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2023-09-22  Bruno Haible  <bruno@clisp.org>

	intl: Assume ISO C 99 or newer.
	* gettext-runtime/intl/plural-exp.h (HAVE_STRUCT_INITIALIZER): Remove macro.
	(GERMANIC_PLURAL): Assume HAVE_STRUCT_INITIALIZER is 1.
	* gettext-runtime/intl/plural-exp.c: Assume HAVE_STRUCT_INITIALIZER is 1.
	(init_germanic_plural): Remove function.
	(INIT_GERMANIC_PLURAL): Remove macro.
	(EXTRACT_PLURAL_EXPRESSION): Update.

2023-09-20  Bruno Haible  <bruno@clisp.org>

	Fix intl-7 test failure on Solaris 11.
	* gettext-tools/tests/init.cfg (prepare_locale_): Preserve the existing contents
	of "$2".
	* gettext-tools/tests/intl-7: While calling prepare_locale_, ensure that fr_FR
	has higher priority than fr.

2023-09-20  Bruno Haible  <bruno@clisp.org>

	Merge from 0.22.x branch: Prepare for 0.22.2 release.
	* 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.
	* gettext-tools/configure.ac (ARCHIVE_VERSION): Bump to 0.22.2.
	* gettext-tools/misc/autopoint.in: Allow version 0.22.2.

2023-09-20  Bruno Haible  <bruno@clisp.org>

	Merge from 0.22.x branch: Update NEWS file for release 0.22.2.

2023-09-19  Bruno Haible  <bruno@clisp.org>

	Merge from 0.22.x branch: Prepare for 0.22.1 release.
	* gettext-runtime/intl/Makefile.am (LTV_*): Bump to 12:0:4.
	* 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.
	* libtextstyle/lib/Makefile.am (LTV_*): Bump to 2:1:2.
	* gettext-tools/libgettextpo/Makefile.am (LTV_*): Bump to 5:10:5.
	* gettext-tools/configure.ac (ARCHIVE_VERSION): Bump to 0.22.1.
	* gettext-tools/misc/autopoint.in: Allow version 0.22.1.

2023-09-19  Bruno Haible  <bruno@clisp.org>

	Merge from 0.22.x branch: Update translations from TP.

2023-09-19  Bruno Haible  <bruno@clisp.org>

	Merge from 0.22.x branch: Update NEWS file for release 0.22.1.

2023-09-19  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.

2023-09-19  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2023-09-18  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Fix compilation error on FreeBSD (regression 2023-09-16).
	* gettext-tools/libgettextpo/gettext-po.c (po_file_write, po_error_logger,
	po_message_check_format): Use orig_error, orig_error_at_line instead of the
	error, error_at_line symbols.

2023-09-18  Bruno Haible  <bruno@clisp.org>

	xgettext: Perl: Avoid unnecessary nesting_depth growth.
	* gettext-tools/src/x-perl.c: Ensure the top-level extract_balanced call returns
	when a closing paren or bracket is seen.
	(token_type_r_any): New enum item.
	(prefer_regexp_over_division, extract_balanced): Handle it.
	(extract_perl): Pass token_type_r_any instead of token_type_rbrace.

2023-09-18  Bruno Haible  <bruno@clisp.org>

	xgettext: Perl: Add test against unbounded nesting_depth growth.
	Reported by Gavin D. Smith <gavinsmith0123@gmail.com> at
	<https://lists.gnu.org/archive/html/bug-gettext/2023-07/msg00008.html>
	and <https://savannah.gnu.org/bugs/?64552>.

	* gettext-tools/tests/xgettext-perl-stackovfl-5: New file.
	* gettext-tools/tests/testdata/xg-pl-so-5.pl: New file, taken from
	https://git.savannah.gnu.org/gitweb/?p=texinfo.git;a=blob;f=tp/Texinfo/Convert/HTML.pm;hb=c8d9edd94d9b1a3e675e811208d9e66eaf9a7daa
	* gettext-tools/tests/Makefile.am (TESTS): Add xgettext-perl-stackovfl-5.
	(EXTRA_DIST): Add testdata/xg-pl-so-5.pl.

2023-09-18  Bruno Haible  <bruno@clisp.org>

	xgettext: Perl: Avoid unbounded nesting_depth growth, part 4.
	* gettext-tools/src/x-perl.c: Improve parsing of array dereferences.
	(extract_variable): After parsing a braced {variable_name}, increment
	varbody_length, so as to not parse the following character. If this character
	is a closing parenthesis, is would disturb the enclosing extract_balanced call.

	Test case:
	==========================================
	sub in_multi_expanded($)
	{
	  if (@{$self}) {
	  }
	}
	==========================================

2023-09-18  Bruno Haible  <bruno@clisp.org>

	xgettext: Perl: Avoid unbounded nesting_depth growth, part 3.
	* gettext-tools/src/x-perl.c: Return from extract_balanced when a subroutine's
	definition terminates and that subroutine was defined after a declaration that
	ended with a semicolon.
	(extract_perl): Pass semicolon_delim=true.

	Test case:
	==========================================
	my %a = 4;

	sub b
	{
	}
	==========================================

2023-09-18  Bruno Haible  <bruno@clisp.org>

	xgettext: Perl: Avoid unbounded nesting_depth growth, part 2.
	* gettext-tools/src/x-perl.c: Return from extract_balanced when a subroutine's
	definition terminates.
	(extract_balanced): Test whether the first token is 'sub'. If so, don't use
	the usual symbol parsing and return when a token_type_lbrace was seen.

	Test cases:
	==========================================
	sub import {
	}
	==========================================
	sub import {
	  if (!$module_loaded) {
	    Texinfo::XSLoader::override("", "");
	    Texinfo::XSLoader::override("", "");
	    $module_loaded = 1;
	  }
	  goto &Exporter::import;
	}
	==========================================

2023-09-18  Bruno Haible  <bruno@clisp.org>

	xgettext: Perl: Avoid unbounded nesting_depth growth, part 1.
	* gettext-tools/src/x-perl.c: Return from extract_balanced when a semicolon
	outside parentheses is seen.
	(extract_balanced): Add parameters semicolon_delim, eat_semicolon_delim.
	All callers changed.

	Test case:
	=================
	use strict;
	=================

2023-09-18  Bruno Haible  <bruno@clisp.org>

	xgettext: Perl: Add ability to debug the nesting_depth.
	* gettext-tools/src/x-perl.c (DEBUG_NESTING_DEPTH): New macro.
	(extract_balanced): Use it.

2023-09-18  Bruno Haible  <bruno@clisp.org>

	xgettext: Perl: Refactor.
	* gettext-tools/src/x-perl.c: Reindent all '#if DEBUG_PERL' lines.

2023-09-18  Bruno Haible  <bruno@clisp.org>

	build: Fix "make install" failure on Android.
	This patch fixes two problems with "make install" on Android:

	1) On this platform, libtool is configured to relink libraries during
	"make install".
	This leads to a problem during the installation of libgettextsrc: The relink
	command that libtool emits has the form

	  $CC -shared -fPIC -DPIC .libs/*.o -L$(libdir) ... -lgettextlib ... \
	      -o .libs/libgettextsrc-@VERSION@.soT

	The option -lgettextlib resolves to $(libdir)/libgettextlib.a, not to
	$(libdir)/libgettextlib-@VERSION@.so.
	Thus the linker attempts to include many object files from libgettextlib.a
	into libgettextsrc-@VERSION@.soT, but some of these reference global variables
	in a non-PIC way, and the linker thus complains

	  ld.lld: error: relocation R_ARM_REL32 cannot be used against symbol 'program_name'; recompile with -fPIC

	2) The installed executables don't have a RUNPATH property that points to the
	directory that contains the shared libraries. Thus these executables don't run.

	Reported at <https://savannah.gnu.org/patch/index.php?10393>.

	* m4/libtool.m4: On Android, fix library_names_spec and
	hardcode_libdir_flag_spec.

2023-09-17  Bruno Haible  <bruno@clisp.org>

	doc: Document how to combine POT files.
	Triggered by <https://savannah.gnu.org/bugs/index.php?64490>.

	* gettext-tools/doc/gettext.texi (Combining POTs): New section.

2023-09-17  Bruno Haible  <bruno@clisp.org>

	xgettext: Avoid a warning 'Charset "CHARSET" is not a portable encoding name'.
	* gettext-tools/src/po-charset.h (po_lex_charset_set): Add is_pot_role
	parameter.
	* gettext-tools/src/po-charset.c (po_lex_charset_set): Likewise.
	* gettext-tools/src/po-lex.h (gram_pot_role): New declaration.
	(lex_start): Add is_pot_role parameter.
	* gettext-tools/src/po-lex.c (gram_pot_role): New variable.
	(lex_start): Add is_pot_role parameter.
	(lex_end): Update.
	* gettext-tools/src/po-gram-gen.y (do_callback_message): Pass gram_pot_role to
	po_lex_charset_set.
	* gettext-tools/src/read-catalog-abstract.h (struct catalog_input_format): Add
	is_pot_role parameter to the 'parse' member.
	(catalog_reader_parse): Add is_pot_role parameter.
	* gettext-tools/src/read-po.c (po_parse): Add is_pot_role parameter.
	* gettext-tools/src/read-properties.c (properties_parse): Likewise.
	* gettext-tools/src/read-stringtable.c (stringtable_parse): Likewise.
	* gettext-tools/src/read-catalog-abstract.c (catalog_reader_parse): Add
	is_pot_role parameter.
	* gettext-tools/src/x-po.c (extract): Pass is_pot_role as true.
	* gettext-tools/src/xgettext.c (read_exclusion_file): Likewise.
	* gettext-tools/src/read-catalog.c (read_catalog_stream): Pass is_pot_role as
	false.
	* gettext-tools/src/msgfmt.c (read_catalog_file_msgfmt): Likewise.

2023-09-17  Bruno Haible  <bruno@clisp.org>

	Fix typo in comment.
	* gettext-tools/src/po-lex.h (po_gram_lex): Fix typo in comment.

2023-09-17  Bruno Haible  <bruno@clisp.org>

	build: Install auxiliary programs in $(libexecdir), not $(libdir). Part 3.
	* PACKAGING: Update accordingly.

2023-09-17  Bruno Haible  <bruno@clisp.org>

	xgettext: Avoid error 'present charset "CHARSET" is not a portable encoding name' when possible.
	Reported by Arsen Arsenović <arsen@aarsen.me>
	at <https://savannah.gnu.org/bugs/?64490>.

	This changes the behaviour back to the one from gettext 0.21.1, where this
	xgettext invocation produced just a warning.

	* gettext-tools/src/msgl-iconv.c (iconv_message_list_internal): Don't give an
	error when a PO file has a header entry with charset=CHARSET and is entirely
	ASCII.
	* gettext-tools/src/msgl-cat.c (catenate_msgdomain_list): Likewise.
	* gettext-tools/tests/xgettext-combine-1: New file.
	* gettext-tools/tests/xgettext-combine-2: New file.
	* gettext-tools/tests/xgettext-combine-3: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add them.

2023-09-16  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Fix compilation error on Android.
	* gettext-tools/libgettextpo/gettext-po.c: Include error.h second.
	(orig_error, orig_error_at_line): New variables.
	(error, error_at_line): Undefine afterwards.
	(po_file_read_v2): Use these variables instead of the error, error_at_line
	symbols.

2023-09-16  Bruno Haible  <bruno@clisp.org>

	Fix another misnomer.
	* gettext-runtime/intl/Makefile.am (AM_CPPFLAGS): Set BUILDING_LIBRARY instead
	of BUILDING_DLL.
	* gettext-runtime/intl/intl-compat.c (SHLIB_EXPORTED): Test BUILDING_LIBRARY
	instead of BUILDING_DLL.
	* gettext-runtime/intl/printf.c (SHLIB_EXPORTED): Likewise.
	* gettext-runtime/intl/setlocale.c (SHLIB_EXPORTED): Likewise.

2023-09-16  Bruno Haible  <bruno@clisp.org>

	Fix a misnomer.
	* gettext-runtime/configure.ac: Prefer the term "shared library", since the term
	"DLL" applies only to Windows.
	* gettext-runtime/intl/configure.ac: Likewise.
	* gettext-tools/configure.ac: Likewise.
	* gettext-runtime/intl/export.h (LIBINTL_SHLIB_EXPORTED): Renamed from
	LIBINTL_DLL_EXPORTED. Prefer the term "shared library", since the term "DLL"
	applies only to Windows.
	* gettext-runtime/intl/Makefile.am (AM_CPPFLAGS): Update comment.
	(libgnuintl.h): Insert LIBINTL_SHLIB_EXPORTED instead of LIBINTL_DLL_EXPORTED.
	* gettext-runtime/intl/gettextP.h: Use LIBGLOCALE_SHLIB_EXPORTED instead of
	LIBGLOCALE_DLL_EXPORTED. Use LIBINTL_SHLIB_EXPORTED instead of
	LIBINTL_DLL_EXPORTED.
	* gettext-runtime/intl/loadinfo.h (LIBINTL_SHLIB_EXPORTED): Renamed from
	LIBINTL_DLL_EXPORTED.
	* gettext-runtime/intl/intl-compat.c (SHLIB_EXPORTED): Renamed from
	DLL_EXPORTED. Prefer the term "shared library", since the term "DLL" applies
	only to Windows.
	* gettext-runtime/intl/printf.c (SHLIB_EXPORTED): Likewise.
	* gettext-runtime/intl/setlocale.c (SHLIB_EXPORTED): Likewise.
	* gettext-tools/woe32dll/export.h: Update comment.

2023-09-16  Bruno Haible  <bruno@clisp.org>

	intl: Improve support for clang.
	* gettext-runtime/intl/libgnuintl.in.h (_INTL_MAY_RETURN_STRING_ARG): Use
	__attribute__ also for clang.

2023-09-15  Bruno Haible  <bruno@clisp.org>

	intl: Don't export the symbol 'rpl_isnanf' on MSVC.
	* gettext-runtime/intl/configure.ac: Define rpl_isnanf to _libintl_isnanf.

2023-09-15  Bruno Haible  <bruno@clisp.org>

	intl: Don't export the symbol 'mbszero' on Windows platforms.
	* gettext-runtime/intl/configure.ac: Define mbszero to _libintl_mbszero.

2023-09-15  Bruno Haible  <bruno@clisp.org>

	intl: Don't export libintl_hash_string.
	* gettext-runtime/intl/hash-string.h (__hash_string): Expand to
	_libintl_hash_string, not libintl_hash_string.

2023-09-15  Bruno Haible  <bruno@clisp.org>

	intl: Fix list of exported symbols (regression 2021-06-19).
	Reported by <fxcoudert@gcc.gnu.org>
	and Christian Weisgerber <naddy@mips.inka.de>
	in <https://savannah.gnu.org/bugs/?64323>
	and <https://lists.gnu.org/archive/html/bug-gettext/2023-07/msg00005.html>.
	Analyzed by Christian Weisgerber <naddy@mips.inka.de> and
	Tijl Coosemans <tijl@FreeBSD.org>.

	* gettext-runtime/intl/Makefile.am (AM_CPPFLAGS): Set BUILDING_DLL.
	* gettext-runtime/intl/intl-compat.c: Update comments.

2023-09-15  Bruno Haible  <bruno@clisp.org>

	intl: Fix a build error on Android.
	The declaration in Android's <math.h>
	  long double frexpl(long double, int*) __RENAME_LDBL(frexp, 3, 21);
	has the effect that frexpl.o defines the symbol _libintl_frexp, not
	_libintl_frexpl, if config.h contains
	  #define frexp _libintl_frexp
	  #define frexpl _libintl_frexpl

	* gettext-runtime/intl/configure.ac:
	If REPLACE_FREXP is 1, don't redirect frexp to _libintl_frexp.
	If REPLACE_FREXPL is 1, don't redirect frexpl to _libintl_frexp.

2023-09-14  Bruno Haible  <bruno@clisp.org>

	intl: Annotate *printf functions with __attribute__ __nonnull__.
	* gettext-runtime/intl/libgnuintl.in.h (_INTL_ARG_NONNULL): New macro.
	(fprintf, vfprintf, printf, vprintf, sprintf, vsprintf, snprintf, vsnprintf,
	asprintf, vasprintf, fwprintf, vfwprintf, wprintf, vwprintf, swprintf,
	vswprintf): Annotate with _INTL_ARG_NONNULL.

2023-09-14  Bruno Haible  <bruno@clisp.org>

	intl: Annotate *printf functions with __attribute__ __format__.
	Reported by Pierre Ossman <ossman@cendio.se> at
	<https://savannah.gnu.org/bugs/?64384>.

	* gettext-runtime/intl/libgnuintl.in.h (_INTL_ATTRIBUTE_FORMAT,
	_INTL_ATTRIBUTE_SPEC_PRINTF_STANDARD, _INTL_ATTRIBUTE_FORMAT_PRINTF_STANDARD):
	New macros.
	(fprintf, vfprintf, printf, vprintf, sprintf, vsprintf, snprintf, vsnprintf,
	asprintf, vasprintf): Annotate with _INTL_ATTRIBUTE_FORMAT_PRINTF_STANDARD.
	* gettext-runtime/intl/printf.c: Update comment.

2023-09-13  Bruno Haible  <bruno@clisp.org>

	intl: Don't compile relocatable.c any more.
	The library does not need relocatable.h any more since today.

	As a side effect, libintl.la gets installed again and "make uninstall" erases
	the installed libintl.{a,so} again (regressions from 2021-06-20).
	Reported by David Bohman <debohman@gmail.com> at
	<https://savannah.gnu.org/bugs/?64536>.

	* autogen.sh (GNULIB_MODULES_LIBINTL): Remove relocatable-lib-lgpl.
	* gnulib-local/modules/gettext-runtime-intl-misc (Makefile.am): Don't augment
	AM_CPPFLAGS.
	* gettext-runtime/intl/configure.ac: Don't set enable_relocatable.
	Don't define the C symbols relocate, relocate2.
	* gettext-runtime/intl/compat.c: New file.
	* gettext-runtime/intl/Makefile.am: Update comments.
	(LIBINTLSOURCES): Add compat.c.
	(compat.lo): New rule.

2023-09-13  Bruno Haible  <bruno@clisp.org>

	intl: Use a locale.alias file only on glibc systems.
	On systems without glibc, it makes no sense if libintl supports locale name
	aliases that the system's setlocale() does not support. Therefore better
	disable the locale.alias processing on these platforms.

	Also, stop installing locale.alias, because on systems without glibc we won't
	read it any more, and on systems with glibc we need to use the preinstalled
	one in /usr/share/locale/locale.alias.

	* gettext-runtime/intl/localealias.c: Don't include relocatable.h.
	(relocate, relocate2): Remove macros.
	(LOCALE_ALIAS_PATH): Define a fallback.
	(_nl_expand_alias): Simplify on systems without glibc.
	(read_alias_file, extend_alias_table, alias_compare): Don't define on systems
	without glibc.
	* gettext-runtime/intl/Makefile.am (AM_CPPFLAGS): Don't set LOCALE_ALIAS_PATH.
	(EXTRA_DIST): Remove locale.alias, ref-add.sin, ref-del.sin.
	(MOSTLYCLEANFILES): Remove ref-add.sed, red-del.sed.
	(ref-add.sed, ref-del.sed, install-data-aliasfile, installdirs-aliasfile,
	uninstall-aliasfile): Remove rules.
	* gettext-runtime/intl/locale.alias: Remove file.
	* gettext-runtime/intl/ref-add.sin: Remove file.
	* gettext-runtime/intl/ref-del.sin: Remove file.
	* gettext-tools/src/Makefile.am (aliaspath): Remove variable.
	(DEFS): Don't set LOCALE_ALIAS_PATH.
	* PACKAGING: Don't mention locale.alias.

2023-09-13  Bruno Haible  <bruno@clisp.org>

	intl: Clarify the role of locale.alias.
	This is part of the patch
	<https://sourceware.org/pipermail/libc-alpha/2023-September/151524.html>.

	* gettext-runtime/intl/localealias.c: Explain the form and the purpose of the
	locale.alias file.

2023-09-12  Bruno Haible  <bruno@clisp.org>

	intl: Fix build failure with "make -j".
	Reported by Christian Weisgerber <naddy@mips.inka.de> at
	<https://lists.gnu.org/archive/html/bug-gettext/2023-09/msg00005.html>.

	* gettext-runtime/intl/Makefile.am (langprefs.lo, log.lo): Depend on gettextP.h
	and its subordinate includes.

2023-09-10  Bruno Haible  <bruno@clisp.org>

	intl: Treat C.UTF-8 locale like C locale.
	The wiki page https://sourceware.org/glibc/wiki/Proposals/C.UTF-8
	says that "Setting LC_ALL=C.UTF-8 will ignore LANGUAGE just like it
	does with LC_ALL=C." This is now implemented in glibc. Implement it
	for other platforms as well.

	* gettext-runtime/intl/dcigettext.c (DCIGETTEXT, guess_category_value): Treat
	C.<encoding> locale like the C locale.
	* gettext-runtime/NEWS: Mention it.
	* NEWS: Likewise.
	* gettext-tools/tests/intl-0: New file, based on gettext-tools/tests/intl-1.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2023-09-07  Bruno Haible  <bruno@clisp.org>

	Sync woe32dll/export.h with GNU libiconv and GNU libunistring.
	* gettext-tools/woe32dll/export.h: Update comments. Correct indentation.

2023-09-07  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.

2023-09-07  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2023-09-07  Bruno Haible  <bruno@clisp.org>

	Don't export symbols from static object files on Windows.
	* gettext-tools/configure.ac (DLL_VARIABLE): Test DLL_EXPORT, not WOE32DLL.
	(WOE32DLL): Don't define as a C macro.
	* gettext-runtime/configure.ac: Likewise.
	(DLL_VARIABLE): Drop special assumption regarding 'exit_failure'.

2023-09-07  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Don't export symbols from static MSVC .obj files.
	* libtextstyle/lib/Makefile.am (config.h): Don't alias isatty to
	libtextstyle_isatty here, before the Windows header files have been included.
	* libtextstyle/gnulib-local/lib/isatty.c.diff: New file.
	* libtextstyle/Makefile.am (EXTRA_DIST): Add it.

2023-09-07  Bruno Haible  <bruno@clisp.org>

	intl: Don't export symbols from static MSVC .obj files.
	* gettext-runtime/intl/configure.ac (WOE32DLL): Set to 1 or 0, not 'yes' or
	'no'. Don't define as C macro any more.
	(DLL_VARIABLE): Test DLL_EXPORT, not _DLL.
	* gettext-runtime/intl/export.h: Use the value of WOE32DLL at configure time.
	Set LIBINTL_DLL_EXPORTED to empty on MSVC when DLL_EXPORT is not defined.
	* gettext-runtime/intl/Makefile.am (libgnuintl.h): Substitute the value of
	@WOE32DLL@.
	* gettext-runtime/intl/intl-compat.c (DLL_EXPORTED): Set to empty on MSVC when
	DLL_EXPORT is not defined.
	* gettext-runtime/intl/printf.c (DLL_EXPORTED): Likewise.
	* gettext-runtime/intl/setlocale.c (DLL_EXPORTED): Likewise.

2023-09-06  Bruno Haible  <bruno@clisp.org>

	Recognize the *-*-windows* config triplets introduced on 2023-06-26.
	* libtextstyle/lib/Makefile.am: Treat windows* as equivalent to mingw*.

2023-08-30  Bruno Haible  <bruno@clisp.org>

	Recognize the *-*-windows* config triplets introduced on 2023-06-26.
	* gettext-runtime/configure.ac: Treat windows* as equivalent to mingw*.
	* gettext-runtime/intl/configure.ac: Likewise.
	* gettext-runtime/libasprintf/configure.ac: Likewise.
	* gettext-tools/configure.ac: Likewise.
	* gettext-tools/m4/locale-de.m4 (gt_LOCALE_DE_UTF8): Likewise.
	* libtextstyle/configure.ac: Likewise.
	* m4/woe32-dll.m4 (gl_WOE32_DLL): Likewise.

2023-07-14  Bruno Haible  <bruno@clisp.org>

	msgmerge: Deprecate option '--sort-output'.
	Reported by Ben Siemerink <gnu@mail.qoben.com> in
	<https://savannah.gnu.org/bugs/?61249>.

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

2023-07-14  Bruno Haible  <bruno@clisp.org>

	Improve support for GtkBuilder 4.
	Reported by Stuart <stuart.a.hayhurst@gmail.com> in
	<https://lists.gnu.org/archive/html/bug-gettext/2023-07/msg00010.html>.

	* gettext-tools/its/gtkbuilder.its: Recognize translatable="1" and similar as
	equivalent to translatable="yes".
	* NEWS: Mention it.

2023-06-29  Bruno Haible  <bruno@clisp.org>

	Update the installation instructions for Windows.
	* INSTALL.windows: Add a note about MSYS2.

2023-06-23  Bruno Haible  <bruno@clisp.org>

	build: Stop using the gnulib module 'gettext'. Part 2.
	* Makefile.am (distcheck-hook): Remove checks of nls.m4 and progtest.m4.

2023-06-23  Bruno Haible  <bruno@clisp.org>

	build: Ensure that makeinfo ≥ 6.8 checks the @menu structure.
	See <https://lists.gnu.org/archive/html/bug-texinfo/2023-06/msg00015.html>.

	* gettext-tools/doc/Makefile.am (MAKEINFO): Add option
	"-c CHECK_NORMAL_MENU_STRUCTURE=1".

2023-06-19  Bruno Haible  <bruno@clisp.org>

	Fix lang-python-* failures when a traditional French locale is present.
	This is caused by the new UTF-8 encoded messages in .mo files, together
	with a bug in gettext.py from Python 2.7 that prohibits reencoding of the
	looked-up messages at run time.

	* gettext-tools/tests/lang-python-1: Instead of conditionally skipping the test
	in the $LOCALE_FR_UTF8 locale, conditionally skip the test in the $LOCALE_FR
	locale.
	* gettext-tools/tests/lang-python-2: Likewise.

2023-06-19  Bruno Haible  <bruno@clisp.org>

	build: Stop using the gnulib module 'gettext'.
	This avoids possible trouble due to divergences between gettext and gnulib.

	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Remove 'gettext'.
	Avoid an error message if gettext-tools/gnulib-m4/po.m4 does not yet exist.

2023-06-19  Bruno Haible  <bruno@clisp.org>

	build: Silence most warnings from gcc 11.
	* m4/more-warnings.m4 (gt_MORE_WARNINGS): With gcc 11 or older, silence three
	more types of warnings.

2023-06-19  Bruno Haible  <bruno@clisp.org>

	build: Remove redundant .m4 file.
	* gettext-runtime/m4/intlmacosx.m4: Remove file.
	* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.
	* Makefile.am (distcheck-hook): Don't check it.
	* gettext-tools/m4/Makefile.am (aclocal_DATA): Take it from the
	gettext-runtime/gnulib-m4/ directory.

2023-06-19  Bruno Haible  <bruno@clisp.org>

	build: Remove redundant .m4 file.
	* autogen.sh (GNULIB_MODULES_LIBINTL): Add iconv.
	* gettext-runtime/m4/iconv.m4: Remove file.
	* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.
	* Makefile.am (distcheck-hook): Don't check it.
	* gettext-tools/m4/Makefile.am (aclocal_DATA): Take it from the
	gettext-runtime/gnulib-m4/ directory.

2023-06-19  Bruno Haible  <bruno@clisp.org>

	build: Move a .m4 file to where it belongs.
	* autogen.sh: Pass '-I m4' when generating gettext-runtime/intl/configure.
	* gettext-runtime/intl/m4/intdiv0.m4: Moved here from
	gettext-runtime/m4/intdiv0.m4.
	* gettext-runtime/intl/Makefile.am (ACLOCAL_AMFLAGS): Add '-I m4'.
	(EXTRA_DIST): Add m4/intdiv0.m4.
	* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove intdiv0.m4.

2023-06-19  Bruno Haible  <bruno@clisp.org>

	build: Remove redundant .m4 file.
	* gettext-runtime/m4/inttypes_h.m4: Remove file.
	* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.
	* Makefile.am (distcheck-hook): Don't check it.

2023-06-19  Bruno Haible  <bruno@clisp.org>

	build: Remove redundant .m4 file.
	* gettext-runtime/intl/configure.ac: Don't invoke gl_AC_HEADER_STDINT_H.
	* gettext-runtime/m4/stdint_h.m4: Remove file.
	* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.
	* Makefile.am (distcheck-hook): Don't check it.

2023-06-19  Bruno Haible  <bruno@clisp.org>

	build: Simplify.
	* gettext-runtime/intl/configure.ac: Inline the gt_INTL_SUBDIR_CORE macro.
	* gettext-runtime/m4/intl.m4: Remove file.
	* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.

2023-06-19  Bruno Haible  <bruno@clisp.org>

	build: Assume that <stdint.h> or <inttypes.h> defines uintmax_t.
	OpenBSD has it since OpenBSD 3.9 (2006).

	* gettext-runtime/m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't invoke
	gl_AC_TYPE_UINTMAX_T.
	* gettext-runtime/m4/uintmax_t.m4: Remove file.
	* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.

2023-06-19  Bruno Haible  <bruno@clisp.org>

	build: Remove unused .m4 file.
	* gettext-runtime/m4/intmax.m4: Remove file.
	* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.

2023-06-19  Bruno Haible  <bruno@clisp.org>

	build: Remove redundant .m4 file.
	* gettext-runtime/m4/size_max.m4: Remove file.
	* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.
	* Makefile.am (distcheck-hook): Don't check it.

2023-06-19  Bruno Haible  <bruno@clisp.org>

	build: Remove redundant .m4 file.
	* gettext-runtime/libasprintf/configure.ac: Don't invoke gl_XSIZE.
	* gettext-runtime/m4/xsize.m4: Remove file.
	* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.
	* Makefile.am (distcheck-hook): Don't check it.

2023-06-19  Bruno Haible  <bruno@clisp.org>

	build: Remove redundant .m4 file.
	* gettext-runtime/m4/flexmember.m4: Remove file.
	* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.
	* Makefile.am (distcheck-hook): Don't check it.

2023-06-19  Bruno Haible  <bruno@clisp.org>

	build: Remove redundant .m4 file.
	* gettext-runtime/m4/fcntl-o.m4: Remove file.
	* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.
	* Makefile.am (distcheck-hook): Don't check it.

2023-06-18  Bruno Haible  <bruno@clisp.org>

	build: Install auxiliary programs in $(libexecdir), not $(libdir). Part 2.
	* gettext-tools/src/user-email.sh.in: Use libexecdir instead of libdir.

2023-06-18  Bruno Haible  <bruno@clisp.org>

	build: Install auxiliary programs in $(libexecdir), not $(libdir).
	The GNU Coding Standards say that auxiliary programs should be installed in a
	subdir of $(libexecdir).
	<https://www.gnu.org/prep/standards/html_node/Directory-Variables.html>

	Originally, I did not do this because I also wanted to follow the Linux
	Filesystem Hierarchy Standard, which in version 2 did not support /usr/libexec.
	This has changed in 2015: The FHS version 3 now allows installation into
	/usr/libexec.
	<https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s07.html>

	Reported by Bastien Roucariès <rouca@debian.org> in
	<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1032010>.

	* gettext-tools/src/Makefile.am (pkglibexecdir): New variable.
	(DEFS): Pass a LIBEXECDIR macro.
	(hostname_CPPFLAGS, urlget_CPPFLAGS, cldr_plurals_CPPFLAGS, hostname_LDFLAGS,
	urlget_LDFLAGS, cldr_plurals_LDFLAGS, install-exec-local, installdirs-local,
	uninstall-local): Use pkglibexecdir instead of pkglibdir.
	* gettext-tools/src/msginit.c (project_id, project_id_version, plural_forms):
	Test $GETTEXTLIBEXECDIR_SRCDIR instead of $GETTEXTLIBDIR_SRCDIR. Use LIBEXECDIR
	instead of LIBDIR.
	(get_user_email, language_team_address): Use LIBEXECDIR instead of LIBDIR.
	* gettext-tools/tests/msginit-3: Set GETTEXTLIBEXECDIR_SRCDIR instead of
	GETTEXTLIBDIR_SRCDIR.
	* gettext-tools/tests/msginit-4: Likewise. Set GETTEXTLIBEXECDIR_BUILDDIR
	instead of GETTEXTLIBDIR_BUILDDIR.

2023-06-18  Bruno Haible  <bruno@clisp.org>

	build: Remove a .m4 file that duplicates gnulib functionality.
	* gettext-runtime/m4/printf-posix.m4: Remove file.
	* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.
	* gettext-runtime/intl/configure.ac: Use gl_PRINTF_POSITIONS instead of
	gt_PRINTF_POSIX.
	* gettext-runtime/libasprintf/configure.ac: Likewise.

2023-06-18  Bruno Haible  <bruno@clisp.org>

	build: Remove unused and outdated .m4 file.
	* gettext-runtime/m4/visibility.m4: Remove file.
	* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.

2023-06-17  Bruno Haible  <bruno@clisp.org>

	Update release steps.

2023-06-17  Bruno Haible  <bruno@clisp.org>

	Update release steps.

2023-06-17  Bruno Haible  <bruno@clisp.org>

	examples: Use infrastructure from gettext version 0.22.
	* gettext-tools/examples/hello-*/configure.ac: Use AM_GNU_GETTEXT_VERSION with
	version 0.22.
	* gettext-tools/examples/hello-c++-kde/configure.in.in: Likewise.
	* gettext-tools/examples/hello-*/m4/Makefile.am: Update .m4 file list.
	* gettext-tools/examples/hello-*/autoclean.sh: Likewise.

2023-06-17  Bruno Haible  <bruno@clisp.org>

	Update translations from TP.
	* gettext-runtime/po/*.po: Update from TP.
	* gettext-runtime/po/LINGUAS: Add ka.
	* gettext-tools/po/*.po: Update from TP.
	* gettext-tools/po/LINGUAS: Add hr.
	* gettext-tools/examples/po/*.po: Update from TP.

2023-06-17  Bruno Haible  <bruno@clisp.org>

	Prepare for 0.22 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.
	* gettext-runtime/po/Makefile.in.in: Bump Origin version.
	* gettext-runtime/m4/gettext.m4: Update version at the first line.
	* gettext-runtime/m4/intl.m4: Likewise.
	* NEWS, libtextstyle/NEWS: Update.
	* libtextstyle/lib/Makefile.am (LTV_*): Bump to 2:0:2.
	* gettext-tools/libgettextpo/Makefile.am (LTV_*): Bump to 5:9:5.
	* gettext-tools/emacs/po-mode.el (po-mode-version-string): Bump.
	* gettext-tools/configure.ac (ARCHIVE_VERSION): Bump to 0.22.
	* gettext-tools/misc/autopoint.in: Allow version 0.22.

2023-06-17  Bruno Haible  <bruno@clisp.org>

	Update copyright year in --version output.
	* gettext-runtime/src/envsubst.c (main): Update copyright year in --version
	output.
	* gettext-runtime/src/gettext.c (main): Likewise.
	* gettext-runtime/src/ngettext.c (main): Likewise.
	* gettext-runtime/src/gettext.sh.in (func_version): Likewise.
	* gettext-tools/src/cldr-plurals.c (main): Likewise.
	* gettext-tools/src/hostname.c (main): Likewise.
	* gettext-tools/src/msgattrib.c (main): Likewise.
	* gettext-tools/src/msgcat.c (main): Likewise.
	* gettext-tools/src/msgcmp.c (main): Likewise.
	* gettext-tools/src/msgcomm.c (main): Likewise.
	* gettext-tools/src/msgconv.c (main): Likewise.
	* gettext-tools/src/msgen.c (main): Likewise.
	* gettext-tools/src/msgexec.c (main): Likewise.
	* gettext-tools/src/msgfilter.c (main): Likewise.
	* gettext-tools/src/msgfmt.c (main): Likewise.
	* gettext-tools/src/msggrep.c (main): Likewise.
	* gettext-tools/src/msginit.c (main): Likewise.
	* gettext-tools/src/msgmerge.c (main): Likewise.
	* gettext-tools/src/msgunfmt.c (main): Likewise.
	* gettext-tools/src/msguniq.c (main): Likewise.
	* gettext-tools/src/recode-sr-latin.c (main): Likewise.
	* gettext-tools/src/urlget.c (main): Likewise.
	* gettext-tools/src/xgettext.c (main): Likewise.
	* gettext-tools/misc/autopoint.in (func_version): Likewise.
	* gettext-tools/misc/convert-archive.in (func_version): Likewise.
	* gettext-tools/misc/gettextize.in (func_version): Likewise.

2023-06-17  Bruno Haible  <bruno@clisp.org>

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

2023-06-17  Bruno Haible  <bruno@clisp.org>

	intl: Fix translation lookup failure when wbindtextdomain is used.
	Reported by Luca Bacci <luca.bacci@outlook.com> at
	<https://savannah.gnu.org/bugs/index.php?64311>.

	The bug showed up when a call to bindtextdomain() with an absolute directory
	and a call to wbindtextdomain() for a different domain was in effect.
	Translations in the first referenced domain worked, translations in the second
	referenced domain did not.

	* gettext-runtime/intl/loadinfo.h (struct loaded_l10nfile, _nl_make_l10nflist):
	Improve comments.
	* gettext-runtime/intl/finddomain.c (_nl_loaded_domains): Likewise.
	* gettext-runtime/intl/l10nflist.c (_nl_make_l10nflist): Fix code that looks up
	the loaded_l10nfile in the given list, and make it more maintainable.
	* gettext-tools/tests/intl-6: Improve comments.
	* gettext-tools/tests/intl-6-prg.c (main): Restructure.
	* gettext-tools/tests/intl-7: New file, based on gettext-tools/tests/intl-6.
	* gettext-tools/tests/intl-6-prg.c: New file, based on
	gettext-tools/tests/intl-6-prg.c.
	* gettext-tools/tests/Makefile.am (TESTS): Add intl-7.
	(check_PROGRAMS): Add intl-7-prg.
	(intl_7_prg_SOURCES, intl_7_prg_LDADD): New variables.

2023-06-16  Bruno Haible  <bruno@clisp.org>

	Add comments about tests that fail on Solaris derivatives.
	* gettext-tools/tests/msgmerge-compendium-6: Add comment about Solaris 11
	derivatives.

2023-06-16  Bruno Haible  <bruno@clisp.org>

	Add comments about tests that fail on Alpine Linux.
	* gettext-tools/tests/format-c-5: Add comment about musl libc.

2023-06-16  Bruno Haible  <bruno@clisp.org>

	Make internationalization tests stricter on Solaris 11 systems.
	* gettext-tools/tests/format-c-5-prg.c (main): Don't expect an Arabic digit
	output in a locale other than Farsi.
	* gettext-tools/tests/format-c-5: Try an Arabic locale as well.

2023-06-16  Bruno Haible  <bruno@clisp.org>

	Fix a bug in the last commit.
	* gettext-tools/src/write-mo.c (write_table): Include the number of system
	dependent string pairs in the computation of the hash table's size.
	* gettext-tools/tests/msgfmt-20: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2023-06-15  Bruno Haible  <bruno@clisp.org>

	Make translations of strings with <inttypes.h> macros work with musl libc.
	* gettext-tools/src/write-mo.h (no_redundancy): New declaration.
	* gettext-tools/src/write-mo.c (SIZEOF): New macro.
	(no_redundancy): New variable.
	(struct sysdep_instantiation_rule): New type.
	(useful_instantiation_rules): New variable.
	(concat_prefix_cs, get_sysdep_segment_value): New functions.
	(write_table): Add a second pass, that instantiates system dependent string
	pairs.
	* gettext-tools/src/msgfmt.c (long_options): Add --no-redundancy.
	(main): Handle the --no-redundancy option.
	(usage): Document the --no-redundancy option.
	* gettext-tools/doc/msgfmt.texi: Document the --no-redundancy option.
	* gettext-tools/tests/msgfmt-12: Test the msgfmt result with and without
	--no-redundancy.
	* gettext-tools/tests/msgunfmt-2: Pass option --no-redundancy to msgfmt.
	* NEWS: Mention the change.
	* gettext-tools/tests/format-c-3: Include the redundant instantiations in the
	expected result of msgunfmt.
	* gettext-tools/tests/format-c-4: Likewise.

2023-06-15  Bruno Haible  <bruno@clisp.org>

	Simplify code.
	* gettext-tools/src/locating-rule.c: Don't include mem-hash-map.h.

2023-06-15  Bruno Haible  <bruno@clisp.org>

	mem-hash-map: Fix a left-over from 2001-11-20.
	* gnulib-local/lib/mem-hash-map.h (hash_init): Fix comment.
	* gnulib-local/lib/mem-hash-map.c (hash_init): Likewise.
	* gettext-tools/src/msgl-fsearch.c (message_fuzzy_index_alloc): Don't test the
	return value of hash_init.

2023-06-15  Bruno Haible  <bruno@clisp.org>

	Change some tests to give more insights.
	* gettext-tools/tests/format-c-3-prg.c (_): Remove macro.
	(main): Test also a simple translation.
	* gettext-tools/tests/format-c-4-prg.c: Likewise.
	* gettext-tools/tests/format-c-5-prg.c: Likewise.
	* gettext-tools/tests/format-c-3: Update.
	* gettext-tools/tests/format-c-4: Likewise.
	* gettext-tools/tests/format-c-5: Likewise.

2023-06-15  Bruno Haible  <bruno@clisp.org>

	Fix another system-tests failure on musl libc.
	* gettext-tools/tests/intl-3: With gettext from musl libc, use a different
	expected output.

2023-06-15  Bruno Haible  <bruno@clisp.org>

	Avoid the need for charset conversion at run time on musl libc.
	This fixes 1 system-tests failure (intl-2) and 3 tests failures (lang-c,
	lang-c++, lang-sh).

	* gettext-tools/src/write-mo.h (no_convert_to_utf8): New declaration.
	(msgdomain_write_mo): Add a 4th parameter.
	* gettext-tools/src/write-mo.c: Include po-charset.h, msgl-iconv.h.
	(no_convert_to_utf8): New variable.
	(msgdomain_write_mo): Add a 4th parameter. Convert the message list to UTF-8.
	* gettext-tools/src/msgfmt.c (long_options): Add --no-convert.
	(main): Handle the --no-convert option. Pass a 4th argument to
	msgdomain_write_mo.
	(usage): Document the --no-convert option.
	* gettext-tools/doc/msgfmt.texi: Document the --no-convert option.
	* gettext-tools/doc/gettext.texi (MO Files): Document the character encoding of
	strings in MO files.
	* gettext-tools/tests/msgfmt-5: Use msgfmt option --no-convert.
	* gettext-tools/tests/msgfmt-12: Likewise.
	* gettext-tools/tests/lang-pascal: Likewise.
	* NEWS: Mention the change.

2023-06-15  Bruno Haible  <bruno@clisp.org>

	Trivial refactoring.
	* gettext-tools/src/msgcmp.c (compare): Pass po_charset_utf8 to
	iconv_msgdomain_list.
	* gettext-tools/src/msgmerge.c (merge): Likewise.
	* gettext-tools/src/xgettext.c (main): Likewise.

2023-06-15  Bruno Haible  <bruno@clisp.org>

	Make internationalization tests stricter on musl systems.
	* gettext-tools/m4/locale-de.m4 (gt_LOCALE_DE_UTF8): On musl systems, set
	LOCALE_DE_UTF8 to "de_DE.UTF-8" instead of "none".

2023-06-15  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.

2023-06-15  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib

2023-06-12  Bruno Haible  <bruno@clisp.org>

	msgfmt: Silence javac note "uses unchecked or unsafe operations".
	* gettext-tools/src/write-java.c (write_java_code): Add template parameters to
	Hashtable and Enumeration references.

2023-06-11  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* NEWS: Mention the newly supported Java versions.

2023-06-11  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2023-06-09  Bruno Haible  <bruno@clisp.org>

	Fix Windows exports list regarding C++ format strings.
	* gettext-tools/woe32dll/gettextsrc-exports.c: Add formatstring_cplusplus_brace.

2023-06-09  Bruno Haible  <bruno@clisp.org>

	New example 'hello-c++20'.
	* gettext-tools/examples/hello-c++20: New directory, based on
	gettext-tools/examples/hello-c++.
	* gettext-tools/examples/Makefile.am (EXAMPLESFILES, EXAMPLESDIRS): Update.
	* gettext-tools/examples/po/Makefile.am (POTFILES, SMALLPOTS,
	SMALLPOFILES_FOR_lang): Update.
	(hello-c++20.pot, hello-c++20/po/$(LL).po): New rules.
	* gettext-tools/examples/README: Update.
	* gettext-tools/examples/check-examples (func_check_autoclean_all,
	func_check_distclean_all, func_check_maintainerclean_all,
	func_check_maintainerclean_vpath_all, func_check_dist_all,
	func_check_dist_vpath_all, func_check_install_all, func_check_uninstall_all,
	func_check_distcheck_all, func_check_all): Handle this directory as well.
	* NEWS: Mention the new example.

2023-06-08  Bruno Haible  <bruno@clisp.org>

	Add support for C++ format strings.
	* gettext-tools/src/message.h (enum format_type): New enum item
	format_cplusplus_brace.
	(NFORMATS): Increment.
	* gettext-tools/src/message.c (format_language, format_language_pretty): Add
	entries for format_cplusplus_brace.
	* gettext-tools/src/format.h (formatstring_cplusplus_brace): New declaration.
	* gettext-tools/src/format-c++-brace.c: New file, based on
	gettext-tools/src/format-awk.c.
	* gettext-tools/src/format.c (formatstring_parsers): Add an entry for
	format_cplusplus_brace.
	* gettext-tools/src/Makefile.am (FORMAT_SOURCE): Add format-c++-brace.c.
	* gettext-tools/src/FILES: Update.
	* gettext-tools/src/x-c.h (SCANNERS_C): In language C++, use
	formatstring_cplusplus_brace as second format string parser.
	* gettext-tools/src/x-c.c (init_flag_table_c): Initialize flags related to
	c++-format.
	* gettext-tools/src/xgettext.c (xgettext_record_flag): Handle
	format_cplusplus_brace.
	(recognize_qt_formatstrings, language_to_extractor): Update.
	* gettext-tools/src/xg-arglist-parser.c (arglist_parser_done): Update.
	* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES): Add
	format-c++-brace.c.
	* gettext-tools/tests/format-c++-brace-1: New file, based on
	gettext-tools/tests/format-c-1.
	* gettext-tools/tests/format-c++-brace-2: New file, based on
	gettext-tools/tests/format-c-2.
	* gettext-tools/tests/lang-c++20: New file, based on
	gettext-tools/tests/lang-c++.
	* gettext-tools/tests/Makefile.am (TESTS): Add them.
	* gettext-tools/doc/gettext.texi (PO Files): Mention c++-format and
	no-c++-format.
	(Preparing strings): Add subheading "No programmer-defined format string
	directives".
	(Mark Keywords): Mention the need to use std::vformat instead of std::format.
	(c++-format): New subsection.
	* gettext-tools/doc/lang-c.texi: Mention the syntax for C++ format strings.
	* NEWS: Mention the change.

	tweak c++-format

2023-06-08  Bruno Haible  <bruno@clisp.org>

	NEWS: Mention Unicode 15.
	* NEWS: Mention that Unicode 15 is supported. Done in gnulib on 2022-10-16.

2023-06-08  Bruno Haible  <bruno@clisp.org>

	Simplify format-c-1 test.
	* gettext-tools/tests/format-c-1: Remove a redundant test case.

2023-06-08  Bruno Haible  <bruno@clisp.org>

	Simplify lang-c++ test.
	* gettext-tools/tests/lang-c++: Remove unneeded include.

2023-06-08  Bruno Haible  <bruno@clisp.org>

	Tweak comments.

2023-06-07  Bruno Haible  <bruno@clisp.org>

	xgettext: Avoid side effects of the Vala extractor on the C extractor.
	* gettext-tools/src/xgettext.h (xgettext_record_flag): Add more comments.
	* gettext-tools/src/xgettext.c (xgettext_record_flag): Parse an optional
	'!BACKEND' suffix. When present, limit the effects of c-format related flags to
	the specified flag table(s).
	* gettext-tools/src/x-vala.c (init_flag_table_vala): Append '!Vala' to all
	xgettext_record_flag arguments.
	* gettext-tools/tests/xgettext-c-format-6: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2023-06-07  Bruno Haible  <bruno@clisp.org>

	xgettext: In language Python, fix a format string handling bug.
	The option --flag=my_new_format:1:python-brace-format used to mark strings
	inside my_new_format invocations as being 'python-format' instead of
	'python-brace-format'.

	* gettext-tools/src/xgettext.c (xgettext_record_flag): Use the correct index
	into flag_table_python.
	* gettext-tools/tests/xgettext-python-7: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2023-06-07  Bruno Haible  <bruno@clisp.org>

	xgettext: In language Vala, fix a format string handling bug.
	* gettext-tools/src/xgettext.c (xgettext_record_flag): Store format_c related
	flags also in flag_table_vala.
	* gettext-tools/tests/xgettext-vala-5: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2023-06-07  Bruno Haible  <bruno@clisp.org>

	xgettext: Reduce code duplication.
	* gettext-tools/src/xg-arglist-context.h (flag_context_list_table_add): Add
	comment.
	* gettext-tools/src/xg-arglist-context.c (set_flags_for_formatstring_type): New
	function, extracted from flag_context_list_table_add.
	(flag_context_list_table_add): Use it.

2023-06-07  Bruno Haible  <bruno@clisp.org>

	xgettext: Support up to 4 format string parsers at the same time.
	* gettext-tools/src/xg-arglist-context.h (struct flag_context_ty): Add fields
	is_format4, pass_format4.
	* gettext-tools/src/xg-arglist-context.c (null_context, passthrough_context,
	inherited_context, passthrough_context_circular_list,
	flag_context_list_table_add): Update.
	* gettext-tools/src/xg-message.c (set_format_flags_from_context,
	decide_is_format, remember_a_message_plural): Update.
	* gettext-tools/src/xgettext.h (current_formatstring_parser4): New declaration.
	* gettext-tools/src/xgettext.c (struct extractor_ty): Add field
	formatstring_parser4.
	(current_formatstring_parser4): New variable.
	(main, extract_from_file, language_to_extractor): Update.

2023-06-05  Bruno Haible  <bruno@clisp.org>

	Fix libintl exports.
	On mingw, rpl_mbrtowc, rpl_mbsinit, hard_locale were exported.
	On Cygwin, rpl_mbrtowc, rpl_vasnprintf were exported.

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

2023-06-05  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2023-06-04  Bruno Haible  <bruno@clisp.org>

	build: Don't rename error{_at_line} to rpl_error{_at_line} on native Windows.
	* gettext-tools/configure.ac (GNULIB_REPLACE_ERROR): Define only on Cygwin and
	Android.
	* gettext-tools/woe32dll/gettextlib-exports.c: Don't assume that
	GNULIB_DEFINED_ERROR implies GNULIB_REPLACE_ERROR.

2023-06-04  Bruno Haible  <bruno@clisp.org>

	build: Make the Windows exports lists more maintainable.
	* gettext-tools/woe32dll/gettextlib-exports.c: Fix file title.
	* gettext-tools/woe32dll/gettextsrc-exports.c: Likewise.
	* gettext-tools/woe32dll/gettextpo-exports.c: Likewise.

2023-06-04  Bruno Haible  <bruno@clisp.org>

	build: Take advantage of gcc warning options not included in -Wall.
	* autogen.sh (GNULIB_MODULES_RUNTIME_OTHER, GNULIB_MODULES_LIBINTL,
	GNULIB_MODULES_LIBASPRINTF, GNULIB_MODULES_TOOLS_OTHER): Add manywarnings.
	* m4/more-warnings.m4: New file.

	* libtextstyle/autogen.sh (GNULIB_MODULES): Add manywarnings.
	Copy also more-warnings.m4.
	* gnulib-local/modules/libxml (Makefile.am): New variable libxml_rpl_la_CFLAGS.
	* libtextstyle/gnulib-local/modules/libcroco (Makefile.am): New variable
	libcroco_rpl_la_CFLAGS.
	* libtextstyle/gnulib-local/modules/libglib (Makefile.am): New variable
	libglib_rpl_la_CFLAGS.
	* libtextstyle/configure.ac: Invoke gt_MORE_WARNINGS, gl_CC_INHIBIT_WARNINGS.
	* libtextstyle/lib/Makefile.am (AM_CFLAGS): Set to WARN_CFLAGS.
	(config.h): Do the compilations with GL_CFLAG_INHIBIT_WARNINGS.

	* gettext-runtime/configure.ac: Invoke gt_MORE_WARNINGS.
	* gettext-runtime/src/Makefile.am (AM_CFLAGS): Set to WARN_CFLAGS.
	* gnulib-local/modules/gettext-runtime-misc (Makefile.am): Add WARN_CFLAGS to
	AM_CFLAGS.

	* gettext-runtime/intl/configure.ac: Invoke gt_MORE_WARNINGS.
	* gettext-runtime/intl/Makefile.am (AM_CFLAGS): Add WARN_CFLAGS.
	* gnulib-local/modules/gettext-runtime-intl-misc (Makefile.am): Add WARN_CFLAGS
	to AM_CFLAGS.

	* gettext-runtime/libasprintf/configure.ac: Invoke gt_MORE_WARNINGS.
	* gettext-runtime/libasprintf/Makefile.am (AM_CFLAGS): Set to WARN_CFLAGS.

	* gettext-tools/configure.ac: Invoke gt_MORE_WARNINGS, gl_CC_INHIBIT_WARNINGS.
	* gettext-tools/gnulib-lib/Makefile.am (AM_CFLAGS): Set to WARN_CFLAGS.
	* gettext-tools/libgrep/Makefile.am (AM_CFLAGS): Set to WARN_CFLAGS.
	* gettext-tools/src/Makefile.am (AM_CFLAGS): Set to WARN_CFLAGS.
	* gettext-tools/libgettextpo/Makefile.am (AM_CFLAGS): Set to WARN_CFLAGS.
	(config.h): Do the compilations with GL_CFLAG_INHIBIT_WARNINGS.

2023-06-04  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gettext-tools/src/po-error.c (_GL_NO_INLINE_ERROR): New macro.
	* gettext-tools/libgettextpo/gettext-po.c (_GL_NO_INLINE_ERROR): Likewise.

2023-06-04  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2023-06-04  Bruno Haible  <bruno@clisp.org>

	Silence "inlining failed" warnings.
	* gettext-tools/src/read-stringtable.c (comment_line_end): Remove 'inline'
	marker.
	* gettext-tools/src/x-scheme.c (is_other_number_syntax): Likewise.

2023-06-04  Bruno Haible  <bruno@clisp.org>

	Enable better malloc/free checking in a few cases.
	Pinpointed by gcc 13 warning:
	warning: function might be candidate for attribute 'malloc' [-Wsuggest-attribute=malloc]

	* gettext-tools/src/po-time.h: Include attribute.h.
	(po_strftime): Mark with attribute 'malloc'.
	* gettext-tools/src/write-po.h: Include attribute.h.
	(make_range_description_string): Mark with attribute 'malloc'.

2023-06-04  Bruno Haible  <bruno@clisp.org>

	Silence "potential null pointer dereference" warnings.
	Pinpointed by gcc 13 warning:
	warning: potential null pointer dereference [-Wnull-dereference]

	* gettext-tools/src/xg-arglist-context.c: Include verify.h.
	(flag_context_list_table_add): Assert that the entry is non-NULL.

2023-06-04  Bruno Haible  <bruno@clisp.org>

	Silence "use of possibly-NULL ‘class_name’" warnings.
	* gettext-tools/src/write-java.c: Include verify.h.
	(msgdomain_write_java): Assume that this xasprintf call returns non-NULL.

2023-06-04  Bruno Haible  <bruno@clisp.org>

	Silence "use of possibly-NULL ‘string’ where non-null expected" warning.
	* gettext-tools/src/write-po.c (make_range_description_string): Assume that this
	xasprintf call returns non-NULL.

2023-06-04  Bruno Haible  <bruno@clisp.org>

	Silence "use of possibly-NULL ‘msgstr’" warnings.
	* gettext-tools/src/write-po.c: Include verify.h.
	(message_print_comment_filepos): Assume that this xasprintf call returns
	non-NULL.
	* gettext-tools/src/xg-message.c: Include verify.h.
	(remember_a_message, remember_a_message_plural): Assume that this xasprintf call
	returns non-NULL.
	* gettext-tools/src/xgettext.c: Include verify.h.
	(construct_header): Assume that this xasprintf call returns non-NULL.

2023-06-04  Bruno Haible  <bruno@clisp.org>

	Silence "assignment discards ‘const’ qualifier from pointer target type" warnings.
	* gettext-tools/src/msginit.c (language_team_address): New local variable
	'result'.
	(plural_forms): Adjust type of local variable 'dirs'.
	* gettext-tools/src/xg-message.c (remember_a_message): Reduce scope and adjust
	type of local variable 'msgstr'.
	(remember_a_message_plural): New local variable 'msgstr1_malloc'.
	* gettext-tools/src/xgettext.c (main): New local variable
	'defaulted_output_dir'.

2023-06-04  Bruno Haible  <bruno@clisp.org>

	Silence "initialization discards ‘const’ qualifier from pointer target type" warnings.
	* gettext-tools/src/pos.h (struct lex_pos_ty): Change type of file_name field to
	'const char *'.
	* gettext-tools/src/read-catalog.c (default_destructor,
	default_reset_comment_state): Cast file_name to 'char *' before free()ing it.
	* gettext-tools/src/xg-arglist-parser.h (arglist_parser_remember,
	arglist_parser_remember_msgctxt): Change type of file_name parameter.
	* gettext-tools/src/xg-arglist-parser.c (arglist_parser_remember,
	arglist_parser_remember_msgctxt): Likewise.

2023-06-04  Bruno Haible  <bruno@clisp.org>

	Silence -Wformat warnings regarding 'int' vs. 'unsigned int' arguments.
	* gettext-tools/src/read-catalog-abstract.c (catalog_reader_parse): Use %u
	instead of %d in format string.
	* gettext-tools/src/read-properties.c (UTF16_VALUE): Cast result to
	'unsigned short'.
	* gettext-tools/src/write-java.c (write_lookup_code,
	write_java2_init_statements, write_java_code): Use %u instead of %d in format
	strings.
	* gettext-tools/src/x-perl.c (extract_balanced): Cast enum-typed fprintf
	argument to 'int'.

2023-06-04  Bruno Haible  <bruno@clisp.org>

	Silence "may write a terminating nul past the end of the destination" warnings.
	* gettext-tools/src/write-po.c (message_print_comment_filepos): Increase size of
	buffer by 1.
	* gettext-tools/src/xg-encoding.c (non_ascii_error_message,
	non_utf8_error_message): Likewise.
	* gettext-tools/src/xg-message.c (set_format_flags_from_context,
	warn_format_string, remember_a_message): Likewise.

2023-06-04  Bruno Haible  <bruno@clisp.org>

	Silence "this statement may fall through" warnings.
	* gettext-tools/src/x-lua.c: Include attribute.h.
	(phase2_getc, phase3_get): Use FALLTHROUGH macro.

2023-06-03  Bruno Haible  <bruno@clisp.org>

	Silence "missing initializer for field" warnings.
	* gettext-tools/src/xgettext.c (main, language_to_extractor): Initialize all
	fields of extractor_ty.

2023-06-03  Bruno Haible  <bruno@clisp.org>

	Silence "... shadows a previous local" warnings.
	* gettext-tools/src/its.c (its_rule_apply): Reduce scope of local variable 'i'.
	(_its_collect_text_content): Rename local variable 'buffer' to 'obuffer'.
	(its_rule_list_extract_nodes): Reduce scope of local variable 'n'.
	(_its_get_content): Reduce scope of local variable 'i'. Rename local variable
	'i' to 'j'.
	* gettext-tools/src/msgmerge.c (message_merge): Reduce scope of local variables
	'i', 'len', 'cnt'.
	(match_domain): Reduce scope of some local variables.
	* gettext-tools/src/write-mo.c (write_table): Reduce scope of local variables
	'j', 'm'.
	* gettext-tools/src/xg-arglist-parser.c (arglist_parser_done): Rename local
	variable 'i' to 'j'.
	* gettext-tools/src/x-csharp.c (phase2_getc): Reduce scope of local variable
	'c'.
	* gettext-tools/src/x-javascript.c (phase2_getc): Likewise.
	* gettext-tools/src/x-python.c (phase2_getc): Likewise.
	* gettext-tools/src/x-lisp.c (read_object): Rename some uses of local variable
	'c' to 'dmc'.
	* gettext-tools/src/x-elisp.c (read_object): Rename some uses of local variable
	'c' to 'ch' or 'dmc'.
	* gettext-tools/src/x-librep.c (read_object): Likewise.
	* gettext-tools/src/x-scheme.c (read_object): Likewise.
	* gettext-tools/src/x-perl.c (extract_variable): Reduce scope of local variable
	'c'.
	* gettext-tools/src/x-vala.c (phase3_get): Reduce scope of local variable 'c2'.

2023-06-03  Bruno Haible  <bruno@clisp.org>

	Silence "... shadows a parameter" warning.
	* gettext-tools/src/msgl-fsearch.c (message_fuzzy_index_alloc): Rename local
	variable mlp.

2023-06-03  Bruno Haible  <bruno@clisp.org>

	Code perfectionism.
	* gettext-tools/src/x-javascript.c (max): Remove unused macro.
	(phase2_ungetc): Fix comment.

2023-06-03  Bruno Haible  <bruno@clisp.org>

	Code perfectionism.
	* gettext-tools/src/write-po.c (putc): Remove unused macro.

2023-06-03  Bruno Haible  <bruno@clisp.org>

	Code perfectionism.
	* gettext-tools/src/msgfmt.c (SIZEOF): Remove unused macro.
	* gettext-tools/src/read-desktop.c (SIZEOF): Likewise.
	* gettext-tools/src/x-desktop.c (SIZEOF): Likewise.

2023-06-03  Bruno Haible  <bruno@clisp.org>

	Code perfectionism.
	* gettext-tools/src/format-lisp.c (VERIFY_LIST): Remove first, unused definition
	of this macro.
	* gettext-tools/src/format-scheme.c (VERIFY_LIST): Likewise.

2023-06-03  Bruno Haible  <bruno@clisp.org>

	Code perfectionism.
	* gettext-tools/src/write-po.c (is_stylable): Define in both cases.

2023-06-03  Bruno Haible  <bruno@clisp.org>

	intl: Silence warnings "no previous prototype" and "nested extern declaration".
	* gettext-runtime/intl/gettextP.h (_nl_log_untranslated): New declaration.
	* gettext-runtime/intl/dcigettext.c: Remove nested declaration of _nl_log_untranslated.
	* gettext-runtime/intl/log.c: Include gettextP.h.

2023-06-03  Bruno Haible  <bruno@clisp.org>

	intl: Silence a "no previous prototype" warning.
	* gettext-runtime/intl/langprefs.c: Include gettextP.h.

2023-06-03  Bruno Haible  <bruno@clisp.org>

	intl: Improve declaration of 'struct binding'.
	* autogen.sh (GNULIB_MODULES_LIBINTL): Add flexmember.
	* gettext-runtime/intl/gettextP.h (struct binding): Use FLEXIBLE_ARRAY_MEMBER
	instead of ZERO.
	* gettext-runtime/intl/bindtextdom.c: Include flexmember.h.
	(offsetof): Remove fallback definition.
	(set_binding_values): Use FLEXNSIZEOF.

2023-06-03  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Silence a "missing initializer for field" warning.
	* libtextstyle/lib/color.c (print_color_test): Fill the r, g, b values of all
	colors[] elements.

2023-06-03  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Silence a "no previous prototype" warning.
	* libtextstyle/gnulib-local/lib/memory-ostream.oo.c (memory_ostream::contents):
	Mark as static.

2023-06-03  Bruno Haible  <bruno@clisp.org>

	Fix support for Qt4 plural forms format strings.
	Pinpointed by gcc 13 warning:
	warning: missing initializer for field ‘is_format3’ of ‘flag_context_ty’ [-Wmissing-field-initializers]

	* gettext-tools/src/xg-arglist-context.c (null_context, passthrough_context,
	passthrough_context_circular_list): Initialize also the fields is_format3,
	pass_format3.

2023-06-03  Bruno Haible  <bruno@clisp.org>

	xgettext: Fix a portability problem: Don't assume anything about the value of EOF.
	Pinpointed by gcc 13 warning:
	warning: macro "P7_EOF" is not used [-Wunused-macros]

	* gettext-tools/src/x-c.c (P7_STRING_END): Remove macro.
	(phase7_getc): Transform EOF to P7_EOF.
	(phase5_get): Test for P7_EOF, not EOF.
	* gettext-tools/src/x-vala.c (P7_STRING_END): Remove macro.
	(phase7_getc): Transform EOF to P7_EOF.
	(phase3_get): Test for P7_EOF, not EOF.

2023-06-03  Bruno Haible  <bruno@clisp.org>

	libgrep: Don't crash upon out-of-memory.
	Pinpointed by gcc 13 warning:
	warning: use of possibly-NULL ‘mb_properties’ where non-null expected [CWE-690] [-Wanalyzer-possible-null-argument]

	* gettext-tools/libgrep/m-fgrep.c (check_multibyte_string): Check the malloc()
	return value.

2023-06-03  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Don't crash if xgethostname() returns NULL.
	Pinpointed by gcc 13 warning:
	warning: dereference of possibly-NULL ‘p’ [CWE-690] [-Wanalyzer-possible-null-dereference]

	* libtextstyle/gnulib-local/lib/term-ostream.oo.c (term_ostream_create): If
	xgethostname() returns NULL, use a dummy hash code.

2023-06-03  Bruno Haible  <bruno@clisp.org>

	libxml: Fix possible null pointer access (regression 2023-05-26).
	Pinpointed by gcc 13 warning:
	warning: dereference of NULL ‘clone’ [CWE-476] [-Wanalyzer-null-dereference]

	* gnulib-local/lib/libxml/tree.c (xmlDOMWrapCloneNode): Assign clone from
	cloneAttr.

2023-05-29  Bruno Haible  <bruno@clisp.org>

	libxml: Fix compilation error with gcc < 10 (regression 2023-05-26).
	* gnulib-local/lib/libxml/tree.c (xmlDOMWrapCloneNode): Add braces.

2023-05-28  Bruno Haible  <bruno@clisp.org>

	format-c: Recognize size specifiers w8, w16, w32, w64, wf8, wf16, wf32, wf64.
	* gettext-tools/src/format-c.c (INVALID_SIZE_SPECIFIER): New macro.
	* gettext-tools/src/format-c-parse.h (format_parse_entrails): Accept only one
	size specifier, not a sequence of size specifiers. Accept "wN" and "wfN",
	where N = 8, 16, 32, 64. Reject integer size specifiers for floating-point
	directives. Reject integer size specifiers other than "l" for %c and %s.
	* gettext-tools/tests/format-c-1: Add more test cases.
	* gettext-tools/tests/format-c-2: Likewise.
	* NEWS: Mention it.

2023-05-28  Bruno Haible  <bruno@clisp.org>

	c-format: Recognize the %b format directive.
	* gettext-tools/src/format-c-parse.h (format_parse_entrails): Recognize %b as
	a directive that takes an unsigned integer argument.
	* gettext-tools/tests/format-c-1: Add test of %b.
	* gettext-tools/tests/format-c-2: Add type compatibility test for %b.
	* NEWS: Mention it.

2023-05-28  Bruno Haible  <bruno@clisp.org>

	xgettext: Support digit separators as in ISO C 23.
	* gettext-tools/src/x-c.c (phase5_get): Recognize digit separators.
	* gettext-tools/tests/xgettext-c-2: Add more test cases of integer and
	floating-point literals.
	* NEWS: Mention it.

2023-05-27  Bruno Haible  <bruno@clisp.org>

	intl: Support bison ≥ 3.7 better.
	* gettext-runtime/intl/Makefile.am (generate-plural): Renamed from
	$(srcdir)/plural.c.
	(plural.c, plural.h): New parallel-safe rules.
	(BUILT_SOURCES): Add plural.c, plural.h.

2023-05-27  Bruno Haible  <bruno@clisp.org>

	build: Make bison rules more reliable.
	* gettext-runtime/intl/Makefile.am ($(srcdir)/plural.c): Fix sed expressions.
	* gettext-tools/src/Makefile.am (po-gram-gen.c, cldr-plural.c): Likewise.

2023-05-27  Bruno Haible  <bruno@clisp.org>

	Silence a gcc warning "array subscript ... is partly outside array bounds".
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add flexmember.
	* gettext-tools/src/xg-arglist-parser.h (struct arglist_parser): Use
	FLEXIBLE_ARRAY_MEMBER.
	* gettext-tools/src/xg-arglist-parser.c: Include flexmember.h.
	(arglist_parser_alloc, arglist_parser_clone): Use FLEXNSIZEOF instead of
	hand-made size computations.

2023-05-27  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2023-05-27  Bruno Haible  <bruno@clisp.org>

	libgrep: Optimize and silence gcc warning.
	* gettext-tools/libgrep/m-fgrep.c (Fexecute): Set mb_properties to NULL in a
	unibyte locale.

2023-05-27  Bruno Haible  <bruno@clisp.org>

	libgrep: Modernize.
	* gettext-tools/libgrep/m-fgrep.c: Include <wchar.h> unconditionally. Assume
	mbrlen function, by virtue of the gnulib module 'mbrlen'. Don't include
	<wctype.h>. Assume ANSI C.

2023-05-27  Bruno Haible  <bruno@clisp.org>

	Silence a gcc warning.
	* gettext-tools/src/write-po.c (memset_small): Use
	'#pragma GCC diagnostic ignored' to silence a bogus gcc warning.

2023-05-27  Bruno Haible  <bruno@clisp.org>

	Silence a gcc warning.
	* gettext-tools/src/format-scheme.c (II): Mark as possibly unused.

2023-05-27  Bruno Haible  <bruno@clisp.org>

	libxml: Silence several gcc warnings.
	* gnulib-local/lib/libxml/SAX2.c (xmlNsErrMsg): Mark as possibly unused.
	(xmlSAX2AttributeDecl, xmlSAX2ElementDecl, xmlSAX2NotationDecl): Mark a local
	variable as possibly unused.
	* gnulib-local/lib/libxml/encoding.c (xmlCharEncCloseFunc): Likewise.
	* gnulib-local/lib/libxml/trionan.c (compute_minus_zerod, minus_zerod): Mark as
	possibly unused.
	* gnulib-local/lib/libxml/tree.c (xmlDOMWrapCloneNode): Use a differently typed
	variable cloneAttr.

2023-05-27  Bruno Haible  <bruno@clisp.org>

	intl: Silence a gcc warning.
	* gettext-runtime/intl/localealias.c (read_alias_file): Silence a bogus
	-Wuse-after-free warning.

2023-05-27  Bruno Haible  <bruno@clisp.org>

	build: Improve autoconf quoting.
	* gettext-runtime/intl/configure.ac: Fix quoting of AS_HELP_STRING argument.
	* gettext-tools/configure.ac: Likewise.

2023-05-21  Bruno Haible  <bruno@clisp.org>

	Support creating shared libraries on Hurd/x86_64.
	Patch from
	<https://lists.gnu.org/archive/html/bug-hurd/2023-05/msg00086.html>.

	* m4/libtool.m4 (_LT_ENABLE_LOCK): Treat Hurd/x86_64 like
	Linux/x86_64.

2023-05-03  Bruno Haible  <bruno@clisp.org>

	doc: Clarify when extracted comments get extracted.
	Fixes the fix from <https://savannah.gnu.org/bugs/index.php?42376>.
	Prompted by <https://savannah.gnu.org/bugs/index.php?64136>.

	* gettext-tools/doc/xgettext.texi: Clarify that it's not blank lines, but lines
	with tokens, that prevent the extraction of a preceding comment block.

2023-04-01  Bruno Haible  <bruno@clisp.org>

	hostname: Use more modern network APIs.
	Reported by Jens Petersen <petersen@redhat.com>
	at <https://savannah.gnu.org/bugs/?63983>.

	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add getaddrinfo.
	* gettext-tools/src/hostname.c (HAVE_GETADDRINFO): Define to 1.
	Do the #includes for gethostname() after those for getaddrinfo().
	(ipv4_is_linklocal, ipv6_is_linklocal): New functions.
	(print_hostname): For long_format and ip_format, prefer getaddrinfo over
	gethostbyname.
	* gettext-tools/src/Makefile.am (hostname_LDADD): New variable.

2023-04-01  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2023-04-01  Bruno Haible  <bruno@clisp.org>

	xgettext: In language Tcl, fix the \u, \U handling.
	* gettext-tools/src/x-tcl.c (do_getc_escaped_low_surrogate): Actually store the
	read characters in buf.

2023-03-30  Bruno Haible  <bruno@clisp.org>

	Use string-desc module from gnulib.
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add string-desc. Remove memmem,
	memrchr.
	(GNULIB_MODULES_LIBGETTEXTPO): Likewise.
	* gettext-tools/src/str-desc.h: Remove file.
	* gettext-tools/src/str-desc.c: Remove file.
	* gettext-tools/src/FILES: Update.
	* gettext-tools/src/msgl-ascii.h: Include string-desc.h instead of str-desc.h.
	Use string_desc_t instead of string_desc_ty.
	* gettext-tools/src/msgl-ascii.c: Use string_desc_t instead of string_desc_ty.
	* gettext-tools/src/msgl-iconv.h: Include string-desc.h instead of str-desc.h.
	Use string_desc_t instead of string_desc_ty.
	* gettext-tools/src/msgl-iconv.c: Include string-desc.h instead of str-desc.h.
	Use string_desc_t instead of string_desc_ty.
	* gettext-tools/src/xg-encoding.h: Include string-desc.h instead of str-desc.h.
	Use string_desc_t instead of string_desc_ty.
	* gettext-tools/src/xg-encoding.c (string_desc_from_current_source_encoding):
	Use string_desc_t instead of string_desc_ty.
	* gettext-tools/src/x-perl.c: Include string-desc.h instead of str-desc.h.
	(extract_quotelike_pass1, extract_quotelike_pass1_utf8, extract_quotelike,
	extract_triple_quotelike, interpolate_keywords): Use string_desc_t instead of
	string_desc_ty.
	* gettext-tools/src/Makefile.am (noinst_HEADERS): Remove str-desc.h.
	(libgettextsrc_la_SOURCES): Remove str-desc.c.
	* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES): Remove
	str-desc.c.

2023-03-30  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2023-03-17  Bruno Haible  <bruno@clisp.org>

	intl: Simplify use of vasnprintf from Gnulib.
	* autogen.sh (GNULIB_MODULES_LIBINTL): Use vasnprintf-posix instead of vasnprintf.
	* gettext-runtime/intl/vasnprintf.h: Remove file, moved to gnulib.
	* gettext-runtime/intl/Makefile.am (EXTRA_DIST): Remove vasnprintf.h.
	(printf.lo): Simplify dependencies accordingly.

2023-03-17  Bruno Haible  <bruno@clisp.org>

	intl: Fix bug in the exported *wprintf functions.
	* autogen.sh (GNULIB_MODULES_LIBINTL): Add vasnwprintf-posix.
	* gettext-runtime/intl/configure.ac: Hide the symbols from the gnulib modules
	isnand-nolibm, isnanl-nolibm, printf-frexp, printf-frexpl, signbit, vasnwprintf,
	frexp-nolibm, frexpl-nolibm.
	* gettext-runtime/intl/printf.c: Don't instantiate the vasnwprintf code here.
	* gettext-runtime/intl/wprintf-parse.h: Remove file, moved to gnulib.
	* gettext-runtime/intl/vasnwprintf.h: Remove file, moved to gnulib.
	* gettext-runtime/intl/Makefile.am (EXTRA_DIST): Remove wprintf-parse.h,
	vasnwprintf.h.
	(printf.lo): Simplify dependencies accordingly.

2023-03-17  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2023-03-17  Bruno Haible  <bruno@clisp.org>

	build: Fix link error on native Windows (regression 2023-03-15).
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC, GNULIB_MODULES_LIBGETTEXTPO): Add
	memmem and memrchr, needed by str-desc.c.

2023-03-16  Bruno Haible  <bruno@clisp.org>

	doc: Add a clarification.
	Reported by Christian Ohm <chr.ohm@gmx.net>
	in <https://savannah.gnu.org/bugs/?36084>.

	* gettext-tools/doc/gettext.texi (c-format Flag): Clarify that an xgettext:...
	comment applies only to the next string.

2023-03-15  Bruno Haible  <bruno@clisp.org>

	xgettext: In language Perl, avoid a crash.
	* gettext-tools/src/xg-arglist-parser.c (arglist_parser_clone): Clone the
	msgid_pos correctly.
	* gettext-tools/tests/xgettext-perl-10: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2023-03-15  Bruno Haible  <bruno@clisp.org>

	xgettext: In language Perl, avoid a crash when NUL is used as delimiter.
	* gettext-tools/src/str-desc.h: New file.
	* gettext-tools/src/str-desc.c: New file.
	* gettext-tools/src/FILES: Describe them.
	* gettext-tools/src/Makefile.am (noinst_HEADERS): Add str-desc.h.
	(libgettextsrc_la_SOURCES): Add str-desc.c.
	* gettext-tools/src/msgl-ascii.h: Include str-desc.h.
	(is_ascii_string_desc): New declaration.
	* gettext-tools/src/msgl-ascii.c (is_ascii_string_desc): New function.
	* gettext-tools/src/msgl-iconv.h: Include str-desc.h.
	(convert_string_desc_directly): New declaration.
	* gettext-tools/src/msgl-iconv.c: Include str-desc.h.
	(convert_string_desc_directly): New function.
	* gettext-tools/src/xg-encoding.h: Include str-desc.h.
	(string_desc_from_current_source_encoding): New declaration.
	* gettext-tools/src/xg-encoding.c (string_desc_from_current_source_encoding):
	New function.
	* gettext-tools/src/x-perl.c: Include str-desc.h, c-ctype.h.
	(extract_quotelike_pass1): Return a string_desc_ty instead of a 'char *'.
	(extract_quotelike_pass1_utf8): Likewise.
	(extract_quotelike, extract_triple_quotelike): Update.
	(interpolate_keywords): Take a string_desc_ty instead of a 'const char *' as
	argument.
	(x_perl_prelex): Update.
	* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES): Add
	str-desc.c.
	* gettext-tools/tests/xgettext-perl-9: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2023-03-14  Bruno Haible  <bruno@clisp.org>

	po: In the Makefiles, enable --quiet by default when possible.
	This is possible because msgmerge became faster
	- through an index-based fuzzy search (msgl-fsearch.c) in 2006,
	- through OpenMP parallelization in 2006,
	- through processor speedups over the years.
	The only case where msgmerge is still slow is when a compendium is in use.

	Suggested by Marcus Müller <marcus_savannah@hostalia.de> in
	<https://lists.gnu.org/archive/html/bug-gnulib/2023-03/msg00034.html>.

	* gettext-runtime/po/Makefile.in.in ($(POFILES), update-po): If msgmerge has
	version ≥ 0.11, pass option --quiet.
	* gettext-runtime/po/Makevars (MSGMERGE_OPTIONS): Don't suggest --quiet any
	more.
	* gettext-tools/po/Makevars (MSGMERGE_OPTIONS): Likewise.
	* gettext-tools/examples/hello-*/po/Makevars (MSGMERGE_OPTIONS): Likewise.
	* gettext-tools/examples/hello-*/po/Makefile.am ($(POFILES), update-po): If
	msgmerge has version ≥ 0.11, pass option --quiet.
	(MSGMERGE_OPTIONS): Don't suggest --quiet any more.
	* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile: Likewise.
	* gettext-tools/examples/po/Makefile.am ($(POFILES), update-po): Pass option
	--quiet to msgmerge.
	(MSGMERGE_OPTIONS): Don't suggest --quiet any more.

2023-03-14  Bruno Haible  <bruno@clisp.org>

	xgettext: In language Tcl, support \x, \u, \U escapes as specified in Tcl 8.6.
	* gettext-tools/src/x-tcl.c: Update comments.
	(phase1_pushback): Increase size to 5.
	(do_getc_escaped): For \x, parse only up to 2 hexadecimal characters.
	Handle '\U'.
	(do_getc_escaped_low_surrogate): New function.
	(accumulate_word): After reading a high surrogate, see if it is followed by a
	low surrogate.
	* gettext-tools/tests/xgettext-tcl-4: Change expected outcome for \x. Add test
	cases for \u with surrogates and for \U.
	* gettext-tools/tests/xgettext-tcl-5: Add more test cases.
	* NEWS: Mention the change.

2023-03-14  Bruno Haible  <bruno@clisp.org>

	xgettext: In language Tcl, avoid a crash at surrogate character escapes.
	* gettext-tools/src/x-tcl.c (accumulate_word): Warn when seeing a surrogate
	character, instead of aborting.
	* gettext-tools/tests/xgettext-tcl-5: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2023-03-14  Bruno Haible  <bruno@clisp.org>

	xgettext: In language Shell, avoid a crash.
	* gettext-tools/src/x-sh.c (phase1_pushback): Increase size by 1.
	* gettext-tools/tests/xgettext-sh-8: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2023-03-14  Bruno Haible  <bruno@clisp.org>

	lisp-format, scheme-format: Fix a loop transformation.
	* gettext-tools/src/format-lisp.c (rotate_loop): Assign the new
	list->repeated.count.
	* gettext-tools/src/format-scheme.c (rotate_loop): Likewise.
	* gettext-tools/tests/xgettext-lisp-6: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2023-03-14  Bruno Haible  <bruno@clisp.org>

	lisp-format: Fix a crash in format string that contains "~@?" before "~V".
	* gettext-tools/src/format-lisp.c (nocheck_params): Don't call
	add_req_type_constraint if position < 0.
	* gettext-tools/tests/xgettext-lisp-5: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2023-03-14  Bruno Haible  <bruno@clisp.org>

	lisp-format, scheme-format: Fix a memory overrun.
	* gettext-tools/src/format-lisp.c (make_repeated_list): Fix upper bound of a
	loop.
	* gettext-tools/src/format-scheme.c (make_repeated_list): Likewise.
	* gettext-tools/tests/xgettext-lisp-4: New file.
	* gettext-tools/tests/xgettext-scheme-6: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add them.

2023-03-14  Bruno Haible  <bruno@clisp.org>

	lisp-format, scheme-format: Improve run-time checks.
	* gettext-tools/src/format-lisp.c (add_type_constraint,
	add_listtype_constraint): Always check the result.
	* gettext-tools/src/format-scheme.c (add_type_constraint,
	add_listtype_constraint): Likewise.

2023-03-14  Bruno Haible  <bruno@clisp.org>

	Fix lisp-format, scheme-format: Add a loop normalization.
	* gettext-tools/src/format-lisp.c (normalize_outmost_list): Algorithmic fixes.
	* gettext-tools/src/format-scheme.c (normalize_outmost_list): Likewise.
	* gettext-tools/tests/format-lisp-2: Add another test.
	* gettext-tools/tests/format-scheme-2: Likewise.

2023-03-14  Bruno Haible  <bruno@clisp.org>

	Fix lisp-format, scheme-format: Fix a memory corruption bug.
	* gettext-tools/src/format-lisp.c (make_repeated_list): Access the correct
	array.
	* gettext-tools/src/format-scheme.c (make_repeated_list): Likewise.
	* gettext-tools/tests/xgettext-lisp-3: New file.
	* gettext-tools/tests/xgettext-scheme-5: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add them.

2023-03-14  Bruno Haible  <bruno@clisp.org>

	xgettext: In language JavaScript, avoid a crash.
	This avoids a crash
	"Assertion `phase2_pushback_length + j < SIZEOF (phase2_pushback)' failed.".

	* gettext-tools/src/x-javascript.c (phase2_pushback): Increase size by 1.
	* gettext-tools/tests/xgettext-javascript-12: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2023-03-14  Bruno Haible  <bruno@clisp.org>

	xgettext: In language JavaScript, avoid a crash at an XML comment, CDATA, or PI.
	* gettext-tools/src/x-javascript.c (phase5_scan_xml_markup): Return int instead
	of bool.
	(phase5_get): Ignore XML markup parsed by phase5_scan_xml_markup.
	* gettext-tools/tests/xgettext-javascript-9: New file.
	* gettext-tools/tests/xgettext-javascript-10: New file.
	* gettext-tools/tests/xgettext-javascript-11: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add them.

2023-03-14  Bruno Haible  <bruno@clisp.org>

	xgettext: In language JavaScript, avoid a crash for some non-ASCII input.
	* gettext-tools/src/xg-encoding.c (non_ascii_error_message,
	non_utf8_error_message): Handle all possible lexical_context_ty values.
	* gettext-tools/tests/xgettext-javascript-8: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2023-03-14  Bruno Haible  <bruno@clisp.org>

	xgettext: In language C#, avoid a crash due to a too small buffer.
	* gettext-tools/src/x-csharp.c (phase3_pushback): Increase size to 10.
	* gettext-tools/tests/xgettext-csharp-9: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2023-03-14  Bruno Haible  <bruno@clisp.org>

	Fix python-brace-format: Fix placement of FMTDIR_ERROR marker.
	* gettext-tools/src/format-python-brace.c (parse_directive): Simplify. Fix
	placement of FMTDIR_ERROR marker and improve error message in one case.
	* gettext-tools/tests/format-python-brace-1: Add more test cases.

2023-03-14  Bruno Haible  <bruno@clisp.org>

	Fix python-brace-format: Disallow empty precision.
	* gettext-tools/src/format-python-brace.c (parse_directive): After '.', expect
	at least one digit.
	* gettext-tools/tests/format-python-brace-1: Add a test case.

2023-03-14  Bruno Haible  <bruno@clisp.org>

	xgettext: Avoid a crash due to a python-brace-format string with a NUL byte.
	* gettext-tools/src/format-python-brace.c: Improve comments.
	(parse_directive): Don't read past the string end if c1 is NUL.
	* gettext-tools/tests/xgettext-python-6: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2023-03-14  Bruno Haible  <bruno@clisp.org>

	xgettext: Fix abort when outputting a msgid that has an invalid UTF-8 character.
	* gettext-tools/src/xg-encoding.c: Include unistr.h.
	(non_utf8_error_message): New function.
	(from_current_source_encoding): When xgettext_current_source_encoding is
	"UTF-8", check that the string is well-formed UTF-8.
	* gettext-tools/tests/xgettext-c-8: New file.
	* gettext-tools/tests/xgettext-python-5: New file.
	* gettext-tools/tests/xgettext-elisp-3: New file.
	* gettext-tools/tests/xgettext-librep-3: New file.
	* gettext-tools/tests/xgettext-awk-3: New file.
	* gettext-tools/tests/xgettext-lua-3: New file.
	* gettext-tools/tests/xgettext-vala-4: New file.
	* gettext-tools/tests/xgettext-php-5: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add them.

2023-03-14  Bruno Haible  <bruno@clisp.org>

	Simplify code.
	* gettext-tools/src/format-python-brace.c (parse_upto): Remove redundant
	declaration.

2023-03-14  Bruno Haible  <bruno@clisp.org>

	xgettext: In language Vala, report out-of-range hexadecimal escapes.
	This avoids a later crash
	"Assertion `UNICODE_VALUE (c) >= 0 && UNICODE_VALUE (c) < 0x110000' failed."

	* gettext-tools/src/x-vala.c (phase7_getc): When the value of a hexadecimal
	escape sequence overflows, warn and use the last value before it overflowed.
	* gettext-tools/tests/xgettext-vala-7: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2023-03-14  Bruno Haible  <bruno@clisp.org>

	xgettext: In language C, report out-of-range hexadecimal escapes.
	This avoids a later crash
	"Assertion `UNICODE_VALUE (c) >= 0 && UNICODE_VALUE (c) < 0x110000' failed."

	* gettext-tools/src/x-c.c (phase7_getc): When the value of a hexadecimal escape
	sequence overflows, warn and use the last value before it overflowed.
	* gettext-tools/tests/xgettext-c-7: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2023-03-14  Bruno Haible  <bruno@clisp.org>

	xgettext: In language PO, handle non-ASCII non-UTF-8 input files correctly.
	* gettext-tools/src/x-po.c: Include msgl-iconv.h, msgl-ascii.h, po-charset.h.
	(extract): If a header charset is present, convert the messages to UTF-8;
	otherwise verify that they are all ASCII.
	* gettext-tools/tests/xgettext-po-3: New file.
	* gettext-tools/tests/xgettext-po-4: New file.
	* gettext-tools/tests/testdata/xg-po-3.po: New file.
	* gettext-tools/tests/testdata/xg-po-4.po: New file.
	* gettext-tools/tests/Makefile.am (TESTS, EXTRA_DIST): Add them.
	* NEWS: Mention the change.

2023-03-10  Bruno Haible  <bruno@clisp.org>

	po-mode: Fix incompatibility with the forthcoming Emacs 29.
	Patch by Takesi Ayanokoji <ayanokoji.takesi@gmail.com>.

	* gettext-tools/emacs/po-mode.el (po-font-lock-keywords): Use
	font-lock-constant-face, introduced in Emacs 20.3, instead of the
	long-deprecated font-lock-reference-face.
	* NEWS: Mention it.

2023-03-09  Bruno Haible  <bruno@clisp.org>

	xgettext: In language YCP, avoid stack overflow.
	* gettext-tools/src/x-ycp.c: Include error-progname.h.
	(MAX_NESTING_DEPTH): New macro.
	(nesting_depth): New variable.
	(extract_parenthesized): Increase and check nesting_depth before calling
	extract_parenthesized recursively.
	(extract_ycp): Initialize nesting_depth.
	* gettext-tools/tests/xgettext-ycp-stackovfl-1: New file.
	* gettext-tools/tests/xgettext-ycp-stackovfl-2: New file.
	* gettext-tools/tests/xgettext-ycp-stackovfl-3: New file.
	* gettext-tools/tests/xgettext-ycp-stackovfl-4: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add them.

2023-03-09  Bruno Haible  <bruno@clisp.org>

	xgettext: In language PHP, avoid stack overflow.
	* gettext-tools/src/x-php.c: Include error-progname.h.
	(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-php-stackovfl-1: New file.
	* gettext-tools/tests/xgettext-php-stackovfl-2: New file.
	* gettext-tools/tests/xgettext-php-stackovfl-3: New file.
	* gettext-tools/tests/xgettext-php-stackovfl-4: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add them.

2023-03-09  Bruno Haible  <bruno@clisp.org>

	xgettext: In language Perl, avoid stack overflow.
	* gettext-tools/src/x-perl.c (MAX_NESTING_DEPTH): New macro.
	(nesting_depth): New variable.
	(interpolate_keywords): Increase and check nesting_depth. Revert it before
	returning.
	(x_perl_lex): Likewise.
	(extract_balanced): Increase and check nesting_depth before calling
	extract_balanced recursively.
	(extract_perl): Initialize nesting_depth.
	* gettext-tools/tests/xgettext-perl-stackovfl-1: New file.
	* gettext-tools/tests/xgettext-perl-stackovfl-2: New file.
	* gettext-tools/tests/xgettext-perl-stackovfl-3: New file.
	* gettext-tools/tests/xgettext-perl-stackovfl-4: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add them.

2023-03-09  Bruno Haible  <bruno@clisp.org>

	xgettext: In language Tcl, avoid stack overflow.
	* gettext-tools/src/x-tcl.c: Include error-progname.h.
	(MAX_NESTING_DEPTH): New macro.
	(bracket_nesting_depth, brace_nesting_depth): New variables.
	(accumulate_word, read_word): Increase and check bracket_nesting_depth or
	brace_nesting_depth before calling read_command_list recursively.
	(extract_tcl): Initialize bracket_nesting_depth and brace_nesting_depth.
	* gettext-tools/tests/xgettext-tcl-stackovfl-1: New file.
	* gettext-tools/tests/xgettext-tcl-stackovfl-2: New file.
	* gettext-tools/tests/xgettext-tcl-stackovfl-3: New file.
	* gettext-tools/tests/xgettext-tcl-stackovfl-4: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add them.

2023-03-09  Bruno Haible  <bruno@clisp.org>

	xgettext: In language Vala, avoid stack overflow.
	* gettext-tools/src/x-vala.c (MAX_NESTING_DEPTH): New macro.
	(nesting_depth): New variable.
	(extract_balanced): Increase and check nesting_depth before calling
	extract_balanced recursively.
	(extract_vala): Initialize nesting_depth.
	* gettext-tools/tests/xgettext-vala-stackovfl-1: New file.
	* gettext-tools/tests/xgettext-vala-stackovfl-2: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add them.

2023-03-09  Bruno Haible  <bruno@clisp.org>

	xgettext: In language Lua, avoid stack overflow.
	* gettext-tools/src/x-lua.c: Include error-progname.h.
	(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_lua): Initialize paren_nesting_depth and bracket_nesting_depth.
	* gettext-tools/tests/xgettext-lua-stackovfl-1: New file.
	* gettext-tools/tests/xgettext-lua-stackovfl-2: New file.
	* gettext-tools/tests/xgettext-lua-stackovfl-3: New file.
	* gettext-tools/tests/xgettext-lua-stackovfl-4: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add them.

2023-03-09  Bruno Haible  <bruno@clisp.org>

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

2023-03-09  Bruno Haible  <bruno@clisp.org>

	xgettext: In language Shell, avoid stack overflow.
	* gettext-tools/src/x-sh.c (MAX_NESTING_DEPTH): New macro.
	(nesting_depth): New variable.
	(read_word): Increase nesting_depth before calling read_command_list
	recursively.
	(read_command_list): Check nesting_depth.
	(extract_sh): Initialize nesting_depth.
	* gettext-tools/tests/xgettext-shell-stackovfl-1: New file.
	* gettext-tools/tests/xgettext-shell-stackovfl-2: New file.
	* gettext-tools/tests/xgettext-shell-stackovfl-3: New file.
	* gettext-tools/tests/xgettext-shell-stackovfl-4: New file.
	* gettext-tools/tests/xgettext-shell-stackovfl-5: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add them.

2023-03-09  Bruno Haible  <bruno@clisp.org>

	xgettext: In language librep, avoid stack overflow.
	* gettext-tools/src/x-librep.c: Include error-progname.h.
	(MAX_NESTING_DEPTH): New macro.
	(nesting_depth): New variable.
	(read_object): Increase nesting_depth before calling read_object recursively.
	Check nesting_depth.
	(extract_librep): Initialize nesting_depth.
	* gettext-tools/tests/xgettext-librep-stackovfl-1: New file.
	* gettext-tools/tests/xgettext-librep-stackovfl-2: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add them.

2023-03-09  Bruno Haible  <bruno@clisp.org>

	xgettext: In language EmacsLisp, avoid stack overflow, part 2.
	* gettext-tools/src/x-elisp.c (escape_nesting_depth): New variable.
	(do_getc_escaped): Increase escape_nesting_depth before calling do_getc_escaped
	recursively. Check escape_nesting_depth.
	(extract_elisp): Initialize escape_nesting_depth.
	* gettext-tools/tests/xgettext-elisp-stackovfl-3: New file.
	* gettext-tools/tests/xgettext-elisp-stackovfl-4: New file.
	* gettext-tools/tests/testdata/xg-el-so-3.el: New file.
	* gettext-tools/tests/testdata/xg-el-so-4.el: New file.
	* gettext-tools/tests/Makefile.am (TESTS, EXTRA_DIST): Add them.

2023-03-09  Bruno Haible  <bruno@clisp.org>

	xgettext: In language EmacsLisp, avoid stack overflow, part 1.
	* gettext-tools/src/x-elisp.c: Include error-progname.h.
	(MAX_NESTING_DEPTH): New macro.
	(nesting_depth): New variable.
	(read_object): Increase nesting_depth before calling read_object recursively.
	Check nesting_depth.
	(extract_elisp): Initialize nesting_depth.
	* gettext-tools/tests/xgettext-elisp-stackovfl-1: New file.
	* gettext-tools/tests/xgettext-elisp-stackovfl-2: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add them.

2023-03-09  Bruno Haible  <bruno@clisp.org>

	xgettext: In language Lisp, avoid stack overflow.
	* gettext-tools/src/x-lisp.c: Include error-progname.h.
	(MAX_NESTING_DEPTH): New macro.
	(nesting_depth): New variable.
	(read_object): Increase nesting_depth before calling read_object recursively.
	Check nesting_depth.
	(extract_lisp): Initialize nesting_depth.
	* gettext-tools/tests/xgettext-lisp-stackovfl-1: New file.
	* gettext-tools/tests/xgettext-lisp-stackovfl-2: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add them.

2023-03-09  Bruno Haible  <bruno@clisp.org>

	xgettext: In language Scheme, avoid stack overflow.
	* gettext-tools/src/x-scheme.c: Include error-progname.h.
	(MAX_NESTING_DEPTH): New macro.
	(nesting_depth): New variable.
	(read_object): Increase nesting_depth before calling read_object recursively.
	Check nesting_depth.
	(extract_scheme): Initialize nesting_depth.
	* gettext-tools/tests/xgettext-scheme-stackovfl-1: New file.
	* gettext-tools/tests/xgettext-scheme-stackovfl-2: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add them.

2023-03-07  Bruno Haible  <bruno@clisp.org>

	xgettext: In language JavaScript, avoid stack overflow.
	* gettext-tools/src/x-javascript.c (MAX_NESTING_DEPTH): New macro.
	(paren_nesting_depth, bracket_nesting_depth, brace_nesting_depth,
	xml_element_nesting_depth): New variables.
	(extract_balanced): Increase and check paren_nesting_depth or
	bracket_nesting_depth or brace_nesting_depth or xml_element_nesting_depth before
	calling extract_balanced recursively.
	(extract_javascript): Initialize paren_nesting_depth, bracket_nesting_depth,
	brace_nesting_depth, xml_element_nesting_depth.
	* gettext-tools/tests/xgettext-javascript-stackovfl-1: New file.
	* gettext-tools/tests/xgettext-javascript-stackovfl-2: New file.
	* gettext-tools/tests/xgettext-javascript-stackovfl-3: New file.
	* gettext-tools/tests/xgettext-javascript-stackovfl-4: New file.
	* gettext-tools/tests/xgettext-javascript-stackovfl-5: New file.
	* gettext-tools/tests/xgettext-javascript-stackovfl-6: New file.
	* gettext-tools/tests/xgettext-javascript-stackovfl-7: New file.
	* gettext-tools/tests/xgettext-javascript-stackovfl-8: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add them.

2023-03-07  Bruno Haible  <bruno@clisp.org>

	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.

2023-03-07  Bruno Haible  <bruno@clisp.org>

	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.

2023-03-07  Bruno Haible  <bruno@clisp.org>

	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.

2023-03-06  Bruno Haible  <bruno@clisp.org>

	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.

2023-03-06  Bruno Haible  <bruno@clisp.org>

	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.

2023-03-05  Daiki Ueno  <ueno@gnu.org>

	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.

2023-02-26  Bruno Haible  <bruno@clisp.org>

	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.

2023-02-19  Bruno Haible  <bruno@clisp.org>

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

2023-02-19  Bruno Haible  <bruno@clisp.org>

	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.

2023-02-18  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2023-02-17  Bruno Haible  <bruno@clisp.org>

	Improve 'git diff' of *.texi and *.m4 files.

2023-02-13  Bruno Haible  <bruno@clisp.org>

	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.

2023-02-13  Bruno Haible  <bruno@clisp.org>

	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.

2023-02-13  Bruno Haible  <bruno@clisp.org>

	doc: Assume the user has Autoconf ≥ 2.60.
	* gettext-tools/doc/gettext.texi (src/Makefile): Remove obsolete advice.

2023-02-13  Bruno Haible  <bruno@clisp.org>

	Update doc after recent AM_GNU_GETTEXT change.
	* gettext-tools/doc/gettext.texi (src/Makefile): Use $(localedir_c_make) instead
	of $(localedir).

2023-02-13  Bruno Haible  <bruno@clisp.org>

	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.

2023-02-13  Bruno Haible  <bruno@clisp.org>

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

2023-02-12  Bruno Haible  <bruno@clisp.org>

	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.

2023-02-12  Bruno Haible  <bruno@clisp.org>

	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.

2023-02-12  Bruno Haible  <bruno@clisp.org>

	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.

2023-02-12  Bruno Haible  <bruno@clisp.org>

	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.

2023-02-12  Bruno Haible  <bruno@clisp.org>

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

2023-02-12  Bruno Haible  <bruno@clisp.org>

	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.

2023-02-11  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Fix .gitignore.

2023-02-11  Bruno Haible  <bruno@clisp.org>

	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.

2023-02-11  Bruno Haible  <bruno@clisp.org>

	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.

2023-02-11  Bruno Haible  <bruno@clisp.org>

	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.

2023-02-11  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2023-02-11  Bruno Haible  <bruno@clisp.org>

	Update .gitignore after build system changes in gettext-runtime/intl/.

2023-02-11  Bruno Haible  <bruno@clisp.org>

	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.

2023-02-11  Bruno Haible  <bruno@clisp.org>

	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_*.

2023-02-03  Bruno Haible  <bruno@clisp.org>

	Update after release 0.21.1 has been made.
	* libtextstyle/NEWS: Update next version number.

2022-12-02  Bruno Haible  <bruno@clisp.org>

	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.

2022-11-26  Bruno Haible  <bruno@clisp.org>

	In 'trap' commands, prefer symbolic to numeric signal names.
	* libtextstyle/gnulib-local/tests/test-term-ostream-xterm.sh: Use symbolic
	signal names.

2022-10-10  Bruno Haible  <bruno@clisp.org>

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

2022-10-10  Bruno Haible  <bruno@clisp.org>

	Update release steps.

2022-10-10  Bruno Haible  <bruno@clisp.org>

	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.

2022-10-10  Bruno Haible  <bruno@clisp.org>

	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.

2022-10-10  Bruno Haible  <bruno@clisp.org>

	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.

2022-09-25  Bruno Haible  <bruno@clisp.org>

	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.

2022-09-25  Bruno Haible  <bruno@clisp.org>

	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.

2022-09-25  Bruno Haible  <bruno@clisp.org>

	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.

2022-09-25  Bruno Haible  <bruno@clisp.org>

	Fix an MSVC/clang test failure.
	* gettext-tools/tests/lang-objc: On native Windows, ignore different end-of-line
	convention in the output.

2022-09-25  Bruno Haible  <bruno@clisp.org>

	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.

2022-09-25  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed: Fix link errors on MSVC.
	* gettext-runtime/configure.ac: Define DLL_VARIABLE to empty always.

2022-09-25  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2022-09-13  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gettext-tools/po/POTFILES.in: Update.

2022-09-13  Bruno Haible  <bruno@clisp.org>

	build: Restore the ability to run "make check".
	* cfg.mk (gl_public_submodule_commit): Define to empty.

2022-09-13  Bruno Haible  <bruno@clisp.org>

	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.

2022-08-28  Albert Astals Cid  <aacid@kde.org>

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

2022-07-18  Bruno Haible  <bruno@clisp.org>

	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.

2022-07-18  Bruno Haible  <bruno@clisp.org>

	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.

2022-07-17  Bruno Haible  <bruno@clisp.org>

	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.

2022-07-17  Bruno Haible  <bruno@clisp.org>

	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.

2022-07-08  Bruno Haible  <bruno@clisp.org>

	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.

2022-07-03  Bruno Haible  <bruno@clisp.org>

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

2022-07-03  Bruno Haible  <bruno@clisp.org>

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

2022-07-03  Bruno Haible  <bruno@clisp.org>

	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.

2022-06-26  Bruno Haible  <bruno@clisp.org>

	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.

2022-06-26  Jonathan Matthew  <jonathan@d14n.org>

	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.

2022-06-26  Bruno Haible  <bruno@clisp.org>

	Update .gitignore after "gettext-runtime: Provide helper script to build against uninstalled binaries.".

2022-06-26  Sébastien Wilmet  <swilmet@informatique-libre.be>

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

2022-06-25  Johannes Schindelin  <johannes.schindelin@gmx.de>

	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.


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

2022-06-21  Bruno Haible  <bruno@clisp.org>

	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.

2022-06-21  Bruno Haible  <bruno@clisp.org>

	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.

2022-06-20  Bruno Haible  <bruno@clisp.org>

	Fix "make distcheck" failure.
	* check-copyright-headers: Exempt the JOIN-GNU file.

2022-06-20  Bruno Haible  <bruno@clisp.org>

	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.

2022-06-20  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2022-06-20  Bruno Haible  <bruno@clisp.org>

	Update ISO_3166 transformation script.
	* gettext-tools/doc/iso-3166.sed: Transform also 'ü'.

2022-06-03  Bruno Haible  <bruno@clisp.org>

	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.

2022-05-23  Bruno Haible  <bruno@clisp.org>

	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.

2022-05-16  Bruno Haible  <bruno@clisp.org>

	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.

2022-02-04  Bruno Haible  <bruno@clisp.org>

	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.

2022-02-04  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2022-01-30  Bruno Haible  <bruno@clisp.org>

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

2022-01-30  Bruno Haible  <bruno@clisp.org>

	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.

2022-01-30  Bruno Haible  <bruno@clisp.org>

	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.

2022-01-03  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.

2022-01-02  Bruno Haible  <bruno@clisp.org>

	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.

2022-01-02  Bruno Haible  <bruno@clisp.org>

	NEWS: Mention the Unicode standard update (work done in gnulib).

2022-01-02  Bruno Haible  <bruno@clisp.org>

	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.

2022-01-02  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2022-01-02  Bruno Haible  <bruno@clisp.org>

	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.

2021-12-22  Bruno Haible  <bruno@clisp.org>

	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.

2021-12-22  Bruno Haible  <bruno@clisp.org>

	intl: Improve indentation of generated libintl.h file.
	* gettext-runtime/intl/libgnuintl.in.h: Indent preprocessor directives.

2021-12-20  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.

2021-12-07  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Clarify rationale for gl_INIT_PACKAGE.
	* libtextstyle/m4/init-package-version.m4: Add more comments.

2021-12-07  Bruno Haible  <bruno@clisp.org>

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

2021-08-25  Bruno Haible  <bruno@clisp.org>

	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.

2021-08-22  Bruno Haible  <bruno@clisp.org>

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

2021-08-21  Bruno Haible  <bruno@clisp.org>

	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.

2021-08-08  Bruno Haible  <bruno@clisp.org>

	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.

2021-07-25  Bruno Haible  <bruno@clisp.org>

	.gitignore: Ignore the generated config.cache files.

2021-06-20  Bruno Haible  <bruno@clisp.org>

	build: Move most of intl.m4 into gettext-runtime/intl/configure.ac, part 2.
	* gettext-runtime/intl/configure.ac: Invoke gt_GLIBC2.

2021-06-20  Bruno Haible  <bruno@clisp.org>

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

2021-06-20  Bruno Haible  <bruno@clisp.org>

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

2021-06-20  Bruno Haible  <bruno@clisp.org>

	Improve conflict resolution between gnulib and textstyle.h.
	* libtextstyle/lib/textstyle.h (libtextstyle_isatty): Don't override a Gnulib
	override.

2021-06-20  Bruno Haible  <bruno@clisp.org>

	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.

2021-06-20  Bruno Haible  <bruno@clisp.org>

	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.

2021-06-20  Bruno Haible  <bruno@clisp.org>

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

2021-06-20  Bruno Haible  <bruno@clisp.org>

	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.

2021-06-20  Bruno Haible  <bruno@clisp.org>

	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.

2021-06-20  Bruno Haible  <bruno@clisp.org>

	build: Revert unneeded change.
	* autogen.sh: Do the automake invocations bottom-up, as before.

2021-06-20  Bruno Haible  <bruno@clisp.org>

	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.

2021-06-20  Bruno Haible  <bruno@clisp.org>

	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.

2021-06-20  Bruno Haible  <bruno@clisp.org>

	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.

2021-06-20  Bruno Haible  <bruno@clisp.org>

	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.

2021-06-20  Bruno Haible  <bruno@clisp.org>

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

2021-06-20  Bruno Haible  <bruno@clisp.org>

	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.

2021-06-20  Bruno Haible  <bruno@clisp.org>

	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.

2021-06-20  Bruno Haible  <bruno@clisp.org>

	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.

2021-06-20  Bruno Haible  <bruno@clisp.org>

	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.

2021-06-20  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Fix compilation error with cc on Solaris 10.
	* gnulib-local/lib/libxml/timsort.h: Use 'inline' instead of '__inline'.

2021-06-20  Bruno Haible  <bruno@clisp.org>

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

2021-06-20  Bruno Haible  <bruno@clisp.org>

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

2021-06-15  Bruno Haible  <bruno@clisp.org>

	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.

2021-06-15  Bruno Haible  <bruno@clisp.org>

	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.

2021-06-15  Bruno Haible  <bruno@clisp.org>

	Avoid lang-vala failure on macOS with MacPorts.
	* gettext-tools/tests/lang-vala: Skip the test if the valac invocation reports
	that <glib.h> is not installed.

2021-06-15  Bruno Haible  <bruno@clisp.org>

	Handle known test failure on Alpine Linux.
	* gettext-tools/tests/autopoint-3: Add comment regarding Alpine Linux.

2021-06-14  Bruno Haible  <bruno@clisp.org>

	build: Simplify the use of gnulib in libasprintf.
	* autogen.sh (GNULIB_MODULES_LIBASPRINTF): Add vasnprintf. Remove attribute,
	errno, verify, xsize.
	Pass option '--source-base=gnulib-lib' instead of
	'--source-base=. --makefile-name=Makefile.gnulib'.
	Don't create any gettext-runtime/libasprintf/gnulib-m4/*.m4 file through simple
	copy.
	* gettext-runtime/libasprintf/printf-args.c: Remove file.
	* gettext-runtime/libasprintf/printf-args.h: Remove file.
	* gettext-runtime/libasprintf/printf-parse.c: Remove file.
	* gettext-runtime/libasprintf/printf-parse.h: Remove file.
	* gettext-runtime/libasprintf/vasnprintf.c: Remove file.
	* gettext-runtime/libasprintf/vasnprintf.h: Remove file.
	* gettext-runtime/libasprintf/lib-asprintf.c: Don't include printf-args.c,
	printf-parse.c, vasnprintf.c, asnprintf.c.
	(STATIC): Remove macro.
	* gettext-runtime/libasprintf/configure.ac: Hide undesired symbols from the
	global namespace.
	(AC_CONFIG_FILES): Add gnulib-lib/Makefile.
	* gettext-runtime/libasprintf/Makefile.am: Don't include Makefile.gnulib.
	(SUBDIRS, AM_CPPFLAGS): New variable.
	(libasprintf_la_SOURCES, lib_asprintf_EXTRASOURCES): Remove files that are now
	in gnulib-lib/.
	(LIBASPRINTF_EXPORTED_SYMBOLS_REGEX): New variable.
	(libasprintf_la_LDFLAGS): Use it.
	(libasprintf.la): Link with gnulib-lib/libgnu.la.
	* Makefile.am (distcheck-hook): Don't check the files in
	gettext-runtime/libasprintf/.

2021-04-07  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Fix the set of exported symbols on Alpine Linux.
	* libtextstyle/build-aux/join-v-1: New file, from GNU libunistring.
	* libtextstyle/Makefile.am (EXTRA_DIST): Add it.
	* libtextstyle/lib/Makefile.am (config.h): Use it instead of 'join -v 1'.

2021-04-05  Bruno Haible  <bruno@clisp.org>

	Handle known test failures on musl libc.
	* gettext-tools/tests/msgcat-22: Add comment regarding musl libc.
	* gettext-tools/tests/msgconv-8: Likewise.

2021-04-04  Bruno Haible  <bruno@clisp.org>

	Use xalloc module from gnulib.
	* gnulib-local/lib/xalloc.h: Remove file.
	* gnulib-local/lib/xmalloc.c: Remove file.
	* gnulib-local/lib/xstrdup.c: Remove file.
	* gnulib-local/modules/xalloc: Remove file.
	* gnulib-local/modules/xalloc-die: Remove file.
	* gnulib-local/Makefile.am (EXTRA_DIST): Remove them.
	* libtextstyle/lib/misc.c (xmalloc_exit_failure): Remove declaration.
	(libtextstyle_set_failure_exit_code): Don't set xmalloc_exit_failure.

2021-04-04  Bruno Haible  <bruno@clisp.org>

	doc: Document how file names with spaces are protected in PO files.
	* gettext-tools/doc/gettext.texi (PO Files): Document how file names with spaces
	are protected in PO files.
	* NEWS: Mention the change.

2021-04-04  Bruno Haible  <bruno@clisp.org>

	msgcat: Handle protected file names with spaces.
	* gettext-tools/src/msgl-cat.c: Include msgl-ofn.h.
	(catenate_msgdomain_list): Handle references that contain file names with
	spaces.
	* gettext-tools/tests/msgcat-22: New file, based on
	gettext-tools/tests/msgconv-8.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2021-04-04  Bruno Haible  <bruno@clisp.org>

	msgconv: Handle protected file names with spaces.
	* gettext-tools/src/po-charset.h (po_lex_isolate_start, po_lex_isolate_end): New
	declarations.
	* gettext-tools/src/po-charset.c (po_lex_isolate_start, po_lex_isolate_end): New
	variables.
	(po_lex_charset_init, po_lex_charset_set, po_lex_charset_close): Initialize
	them.
	* gettext-tools/woe32dll/gettextsrc-exports.c: Export also po_lex_isolate_start,
	po_lex_isolate_end.
	* gettext-tools/src/read-catalog-abstract.c: Include <stdbool.h>, po-charset.h.
	(po_parse_comment_filepos): Parse the syntax of file names surrounded by control
	characters.
	* gettext-tools/src/msgl-iconv.c: Include msgl-ofn.h.
	(iconv_msgdomain_list): Signal error if the target encoding does not contain the
	control characters needed for escaping file names with spaces.
	* gettext-tools/tests/msgconv-8: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2021-04-04  Bruno Haible  <bruno@clisp.org>

	xgettext: Protect file names with spaces through Unicode U+2068, U+2069.
	* gettext-tools/src/pos.h: Include <stdbool.h>.
	(pos_filename_has_spaces): New declaration.
	* gettext-tools/src/pos.c: New file.
	* gettext-tools/src/msgl-ofn.h: New file.
	* gettext-tools/src/msgl-ofn.c: New file.
	* gettext-tools/src/FILES: Update.
	* gettext-tools/src/Makefile.am (noinst_HEADERS): Add msgl-ofn.h.
	(COMMON_SOURCE): Add pos.c.
	(libgettextsrc_la_SOURCES): Add msgl-ofn.c.
	* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES): Likewise.
	* gettext-tools/src/write-catalog.h (struct catalog_output_format): Add field
	requires_utf8_for_filenames_with_spaces.
	* gettext-tools/src/xgettext.c: Include pos.h, msgl-ofn.h.
	(finalize_header): Convert the message domain to UTF-8 also when some message
	has file names with spaces.
	* gettext-tools/src/write-po.h (message_print_comment_filepos): Add charset
	parameter.
	* gettext-tools/src/write-po.c: Include pos.h.
	(message_print_comment_filepos): Add charset parameter. If a file name has
	spaces, enclose it in U+2068 and U+2069 characters.
	(message_print, message_print_obsolete, output_format_po): Update.
	* gettext-tools/src/write-properties.c (write_message,
	output_format_properties): Update.
	* gettext-tools/src/write-stringtable.c (output_format_stringtable): Update.
	* gettext-tools/tests/xgettext-17: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2021-04-04  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed on 2017-06-17.
	* gnulib-local/lib/diffseq.h.diff: Remove file.
	* gnulib-local/Makefile.am (EXTRA_DIST): Remove it.

2021-04-04  Bruno Haible  <bruno@clisp.org>

	Update NEWS.
	* NEWS: Mention that a build failure on macOS 11/arm64 is now fixed (through
	gnulib).

2021-03-01  Bruno Haible  <bruno@clisp.org>

	Update DEPENDENCIES.
	* DEPENDENCIES: Update info regarding libiconv. List pre-built package names.
	Add awk as a normal dependency of a package with an Autoconf-generated configure
	file.
	* libtextstyle/DEPENDENCIES: Likewise.

2021-02-21  Bruno Haible  <bruno@clisp.org>

	Support creating shared libraries on MidnightBSD.
	Patch from <https://savannah.gnu.org/patch/?10007>.

	* m4/libtool.m4: Treat MidnightBSD like FreeBSD.
	* build-aux/ltmain.sh: Likewise.

2021-02-21  Bruno Haible  <bruno@clisp.org>

	Switch to autoconf-2.71.
	* libtextstyle/autogen.sh: Update comments.

2021-01-31  Bruno Haible  <bruno@clisp.org>

	build: Avoid a warning in a configure test.
	Reported through MacPorts.

	* gettext-runtime/m4/intdiv0.m4 (gt_INTDIV0): Avoid shadowing the global 'nan()'
	function.

2021-01-08  Bruno Haible  <bruno@clisp.org>

	Update copyright years.
	* Makefile.am: Update copyright years.

2021-01-08  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Test
	gt_localename_enhances_locale_funcs instead of gt_nameless_locales. Set
	ENHANCE_LOCALE_FUNCS, not HAVE_NAMELESS_LOCALES.
	* gettext-runtime/intl/Makefile.am (libgnuintl.h, libintl.h): Substitute
	ENHANCE_LOCALE_FUNCS, not HAVE_NAMELESS_LOCALES.
	* gettext-runtime/intl/libgnuintl.in.h: Test ENHANCE_LOCALE_FUNCS, not
	HAVE_NAMELESS_LOCALES.
	* gettext-runtime/intl/localename.c: Update from gnulib.
	* gettext-runtime/m4/iconv.m4: Likewise.

2021-01-07  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2021-01-01  Bruno Haible  <bruno@clisp.org>

	tests: Fix autopoint-1 test failure.
	* gettext-tools/tests/autopoint-1: Update after 2020-12-28 commit.

2021-01-01  Bruno Haible  <bruno@clisp.org>

	tests: Add comments.
	* gettext-tools/tests/init.cfg: More comments about the Solaris gettext() bug.

2021-01-01  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gettext-runtime/intl/verify.h: Update copyright years.
	* gettext-runtime/intl/xsize.h: Likewise.
	* gettext-runtime/m4/fcntl-o.m4: Likewise.
	* 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.
	* Makefile.am (distcheck-hook): Update.

2020-12-28  Bruno Haible  <bruno@clisp.org>

	build: Remove glibc21.m4 (unused since 2018-09-17).
	* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Don't require gl_GLIBC21.
	* gettext-tools/configure.ac: Don't invoke gl_GLIBC21.
	* gettext-runtime/m4/glibc21.m4: Remove file.
	* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.

2020-12-28  Bruno Haible  <bruno@clisp.org>

	autopoint: When both configure.ac and configure.in exist, use the former.
	Reported by Eric Gallager <egall@gwmail.gwu.edu> in
	<https://lists.gnu.org/archive/html/bug-gettext/2020-12/msg00051.html>.

	* gettext-tools/misc/autopoint.in (configure_in): Test for configure.ac before
	testing for configure.in.

2020-12-28  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed: Fix link errors on native Windows.
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC, GNULIB_MODULES_LIBGETTEXTPO): Add
	strdup-posix.
	Avoid the *-list-tests, since they reference a variable, leading to a problem
	with --enable-shared.
	* gettext-tools/libgettextpo/Makefile.am (config.h): Undefine GNULIB_GETCWD and
	REPLACE_FCHDIR that are defined in the parent config.h.

2020-12-25  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* libtextstyle/configure.ac: Set GNULIB_MDA_ISATTY. This fixes a link error on
	native Windows.

2020-12-20  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC, GNULIB_MODULES_LIBGETTEXTPO): Add
	'free'.
	* gnulib-local/lib/libxml/parser.in.h: Include <stdlib.h>.
	* gettext-tools/src/format.h: Likewise.
	* gettext-tools/tests/gettextpo-1-prg.c: Undefine free.

2020-12-15  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Add accessor functions.
	* libtextstyle/gnulib-local/lib/fd-ostream.oo.h (fd_ostream): New methods
	get_descriptor, get_filename, is_buffered.
	* libtextstyle/gnulib-local/lib/fd-ostream.oo.c (fd_ostream::get_descriptor,
	fd_ostream::get_filename, fd_ostream::is_buffered): New functions.
	* libtextstyle/gnulib-local/lib/file-ostream.oo.h (file_ostream): New method
	get_stdio_stream.
	* libtextstyle/gnulib-local/lib/file-ostream.oo.c
	(file_ostream::get_stdio_stream): New function.
	* libtextstyle/gnulib-local/lib/html-ostream.oo.h (html_ostream): New method
	get_destination.
	* libtextstyle/gnulib-local/lib/html-ostream.oo.c
	(html_ostream::get_destination): New function.
	* libtextstyle/gnulib-local/lib/html-styled-ostream.oo.h: Include
	html-ostream.h.
	(html_styled_ostream): New methods get_destination, get_html_destination,
	get_css_filename.
	* libtextstyle/gnulib-local/lib/html-styled-ostream.oo.c (html_styled_ostream):
	Add field 'css_filename'.
	(html_styled_ostream::free): Free it.
	(html_styled_ostream_create): Initialize it.
	(html_styled_ostream::get_destination,
	html_styled_ostream::get_html_destination,
	html_styled_ostream::get_css_filename): New functions.
	* libtextstyle/gnulib-local/lib/iconv-ostream.oo.h (iconv_ostream): New methods
	get_from_encoding, get_to_encoding, get_destination.
	* libtextstyle/gnulib-local/lib/iconv-ostream.oo.c
	(iconv_ostream::get_from_encoding, iconv_ostream::get_to_encoding,
	iconv_ostream::get_destination): New functions.
	* libtextstyle/gnulib-local/lib/noop-styled-ostream.oo.h (noop_styled_ostream):
	New methods get_destination, is_owning_destination.
	* libtextstyle/gnulib-local/lib/noop-styled-ostream.oo.c
	(noop_styled_ostream::get_destination,
	noop_styled_ostream::is_owning_destination): New functions.
	* libtextstyle/gnulib-local/lib/term-ostream.oo.h (term_ostream): New methods
	get_descriptor, get_filename, get_tty_control, get_effective_tty_control.
	* libtextstyle/gnulib-local/lib/term-ostream.oo.c (term_ostream): Add field
	'tty_control'.
	(term_ostream_create): Initialize it.
	(term_ostream::get_descriptor, term_ostream::get_filename,
	term_ostream::get_tty_control, term_ostream::get_effective_tty_control): New
	functions.
	* libtextstyle/gnulib-local/lib/term-styled-ostream.oo.h (term_styled_ostream):
	New methods get_destination, get_css_filename.
	* libtextstyle/gnulib-local/lib/term-styled-ostream.oo.c (term_styled_ostream):
	Add field 'css_filename'.
	(term_styled_ostream::free): Free it.
	(term_styled_ostream_create): Initialize it.
	(term_styled_ostream::get_destination, term_styled_ostream::get_css_filename):
	New functions.
	* libtextstyle/lib/textstyle.h (file_ostream_get_stdio_stream,
	fd_ostream_get_descriptor, fd_ostream_get_filename, fd_ostream_is_buffered,
	term_ostream_get_descriptor, term_ostream_get_filename,
	term_ostream_get_tty_control, term_ostream_get_effective_tty_control,
	iconv_ostream_get_from_encoding, iconv_ostream_get_to_encoding,
	iconv_ostream_get_destination, html_ostream_get_destination,
	term_styled_ostream_get_destination, term_styled_ostream_get_css_filename,
	html_styled_ostream_get_destination, html_styled_ostream_get_html_destination,
	html_styled_ostream_get_css_filename, noop_styled_ostream_get_destination,
	noop_styled_ostream_is_owning_destination): New declarations.
	* libtextstyle/tests/test-accessors.c: New file.
	* libtextstyle/tests/Makefile.am: Arrange to compile it.
	* libtextstyle/doc/libtextstyle.texi (Accessors): New subsection.
	* libtextstyle/NEWS: Mention the new functions.

2020-12-15  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Doc update.
	* libtextstyle/doc/libtextstyle.texi (The output stream hierarchy): Add
	is_instance_of_* functions to the index.

2020-12-14  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Add is_instance_of_* predicates.
	* libtextstyle/gnulib-local/lib/fd-ostream.oo.h (is_instance_of_fd_ostream): New
	declaration.
	* libtextstyle/gnulib-local/lib/fd-ostream.oo.c (is_instance_of_fd_ostream): New
	function.
	* libtextstyle/gnulib-local/lib/file-ostream.oo.h (is_instance_of_file_ostream):
	New declaration.
	* libtextstyle/gnulib-local/lib/file-ostream.oo.c (is_instance_of_file_ostream):
	New function.
	* libtextstyle/gnulib-local/lib/html-ostream.oo.h (is_instance_of_html_ostream):
	New declaration.
	* libtextstyle/gnulib-local/lib/html-ostream.oo.c (is_instance_of_html_ostream):
	New function.
	* libtextstyle/gnulib-local/lib/html-styled-ostream.oo.h
	(is_instance_of_html_styled_ostream): New declaration.
	* libtextstyle/gnulib-local/lib/html-styled-ostream.oo.c
	(is_instance_of_html_styled_ostream): New function.
	* libtextstyle/gnulib-local/lib/iconv-ostream.oo.h
	(is_instance_of_iconv_ostream): New declaration.
	* libtextstyle/gnulib-local/lib/iconv-ostream.oo.c
	(is_instance_of_iconv_ostream): New function.
	* libtextstyle/gnulib-local/lib/memory-ostream.oo.h
	(is_instance_of_memory_ostream): New declaration.
	* libtextstyle/gnulib-local/lib/memory-ostream.oo.c
	(is_instance_of_memory_ostream): New function.
	* libtextstyle/gnulib-local/lib/noop-styled-ostream.oo.h
	(is_instance_of_noop_styled_ostream): New declaration.
	* libtextstyle/gnulib-local/lib/noop-styled-ostream.oo.c
	(is_instance_of_noop_styled_ostream): New function.
	* libtextstyle/gnulib-local/lib/styled-ostream.oo.h
	(is_instance_of_styled_ostream): New declaration.
	* libtextstyle/gnulib-local/lib/styled-ostream.oo.c
	(is_instance_of_styled_ostream): New function.
	* libtextstyle/gnulib-local/lib/term-ostream.oo.h (is_instance_of_term_ostream):
	New declaration.
	* libtextstyle/gnulib-local/lib/term-ostream.oo.c (is_instance_of_term_ostream):
	New function.
	* libtextstyle/gnulib-local/lib/term-styled-ostream.oo.h
	(is_instance_of_term_styled_ostream): New declaration.
	* libtextstyle/gnulib-local/lib/term-styled-ostream.oo.c
	(is_instance_of_term_styled_ostream): New function.
	* libtextstyle/lib/textstyle.h (is_instance_of_styled_ostream,
	is_instance_of_file_ostream, is_instance_of_fd_ostream,
	is_instance_of_term_ostream, is_instance_of_memory_ostream,
	is_instance_of_iconv_ostream, is_instance_of_html_ostream,
	is_instance_of_term_styled_ostream, is_instance_of_html_styled_ostream,
	is_instance_of_noop_styled_ostream): New declarations.
	* libtextstyle/tests/test-instanceof.c: New file.
	* libtextstyle/tests/Makefile.am: Arrange to compile it.
	* libtextstyle/doc/libtextstyle.texi (The output stream hierarchy): Mention the
	is_instance_of_* predicates.
	* libtextstyle/NEWS: Mention the new functions.

2020-12-14  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gettext-runtime/intl/threadlib.c: Update from gnulib.

2020-12-12  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gettext-tools/src/read-csharp.c (execute_and_read_po_output): Does not need
	write access to the elements of prog_argv.
	* gettext-tools/src/read-java.c (execute_and_read_po_output): Likewise.
	* gettext-tools/src/read-resources.c (execute_and_read_po_output): Likewise.
	* gettext-tools/src/write-resources.c (execute_writing_input): Likewise.
	* gettext-tools/src/urlget.c (execute_it): Likewise.
	(fetch): Update variable types and remove casts to 'char *'.
	* gettext-tools/src/msginit.c (project_id, project_id_version, get_user_email,
	language_team_address, plural_forms): Likewise.
	* gettext-tools/src/read-tcl.c (msgdomain_read_tcl): Likewise.
	* gettext-tools/src/x-ruby.c (extract_ruby): Likewise.
	* gettext-tools/src/msgexec.c (sub_argv): Change type to 'const char **'.
	(main): Remove casts to 'char *'.

2020-12-12  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2020-12-10  Bruno Haible  <bruno@clisp.org>

	intl: Support the AIX 7 locale names.
	* gettext-runtime/intl/explodename.c (_nl_find_language): Remove function.
	(_nl_explode_name): Inline it here. On AIX, lowercase the language and map a
	script identifier to a modifier.
	* NEWS: Mention it.

2020-12-09  Bruno Haible  <bruno@clisp.org>

	build: Allow building with Autoconf 2.70.
	* libtextstyle/autogen.sh: Update comment.

2020-12-04  Bruno Haible  <bruno@clisp.org>

	xgettext: Make --directory option work right with Ruby input files.
	* gettext-tools/src/xgettext.c (extract_from_file_func): Add found_in_dir
	argument.
	(xgettext_find_file): Return also the directory that was used to find the file.
	(extract_from_file): Pass the directory to the extractor.
	* gettext-tools/src/x-ruby.h (extract_ruby): Add found_in_dir argument.
	* gettext-tools/src/x-ruby.c (extract_ruby): Add found_in_dir argument. Pass the
	logical_filename to rxgettext, and run rxgettext in the given directory.
	* gettext-tools/tests/xgettext-16: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2020-12-04  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gettext-tools/po/POTFILES.in: Update.

2020-12-02  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gettext-tools/src/urlget.c (execute_it, fetch): Update 'execute' invocations.
	* gettext-tools/src/msginit.c (project_id, project_id_version, get_user_email,
	language_team_address, plural_forms): Update create_pipe_in invocations.
	* gettext-tools/src/read-csharp.c (execute_and_read_po_output): Likewise.
	* gettext-tools/src/read-java.c (execute_and_read_po_output): Likewise.
	* gettext-tools/src/read-resources.c (execute_and_read_po_output): Likewise.
	* gettext-tools/src/read-tcl.c (msgdomain_read_tcl): Likewise.
	* gettext-tools/src/x-ruby.c (extract_ruby): Likewise.
	* gettext-tools/src/msgexec.c (process_string): Update create_pipe_out
	invocation.
	* gettext-tools/src/write-resources.c (execute_writing_input): Likewise.

2020-12-02  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2020-11-27  Miguel Arruga Vivas  <rosen644835@gmail.com>

	tests: Fix typos on scheme-format test.
	* gettext-tools/tests/format-scheme-2: Fix typos.

2020-11-21  Bruno Haible  <bruno@clisp.org>

	build: Remove the need for an autoconf test.
	* gettext-runtime/intl/intl-exports.c (IMP): Use predefined preprocessor symbol
	tests, not USER_LABEL_PREFIX_UNDERSCORE.
	* gettext-runtime/configure.ac (INTL_EXPORTS_FLAGS): Remove variable.
	* gnulib-local/modules/gettext-runtime-misc (Makefile.am): Don't use
	INTL_EXPORTS_FLAGS.
	* gettext-tools/woe32dll/export.h (IMP): Use predefined preprocessor symbol
	tests, not USER_LABEL_PREFIX_UNDERSCORE.
	* gettext-tools/configure.ac (GETTEXTLIB_EXPORTS_FLAGS): Don't define USER_LABEL_PREFIX_UNDERSCORE.

2020-11-14  Bruno Haible  <bruno@clisp.org>

	xgettext: Add support for gettext-like functions with wide string argument.
	Reported by Érico Nogueira <ericonr@disroot.org> in
	<https://lists.gnu.org/archive/html/bug-gettext/2020-11/msg00013.html>.

	* gettext-tools/src/x-c.c (phase5_get): Recognize also the string-literal
	prefixes 'u', 'U', 'L'. Consider all types of C++ raw strings as relevant.
	* gettext-tools/tests/xgettext-c-5: Add more test cases.
	* gettext-tools/tests/xgettext-c-c++-1: Likewise.
	* NEWS: Mention it.

2020-11-14  Bruno Haible  <bruno@clisp.org>

	build: Fix warnings emitted by autoconf-2.69d.
	* gettext-tools/configure.ac: Use AC_LINK_IFELSE instead of AC_TRY_LINK. Don't
	invoke AC_FUNC_VFORK.
	* gettext-tools/m4/exported.m4 (gt_GLOBAL_SYMBOL_PIPE): Require LT_PATH_NM
	instead of AC_PROG_NM.
	* gnulib-local/m4/libxml.m4 (gl_LIBXML): Use AC_LINK_IFELSE instead of
	AC_TRY_LINK. Use AC_PREPROC_IFELSE instead of AC_TRY_CPP.
	* libtextstyle/configure.ac: Use AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER.
	* libtextstyle/gnulib-local/m4/libcroco.m4 (gl_LIBCROCO): Use AC_LINK_IFELSE
	instead of AC_TRY_LINK.
	* libtextstyle/gnulib-local/m4/libglib.m4 (gl_LIBGLIB): Use AC_LINK_IFELSE
	instead of AC_TRY_LINK. Require AC_USE_SYSTEM_EXTENSIONS instead of AC_GNU_SOURCE.
	* libtextstyle/gnulib-local/m4/termcap.m4 (gl_TERMCAP_BODY): Use AC_LINK_IFELSE
	instead of AC_TRY_LINK.
	* libtextstyle/gnulib-local/m4/terminfo.m4 (gl_TERMINFO_BODY): Use
	AC_LINK_IFELSE instead of AC_TRY_LINK.
	* m4/woe32-dll.m4 (gl_WOE32_DLL): Use AC_LINK_IFELSE instead of AC_TRY_LINK.

2020-10-25  Bruno Haible  <bruno@clisp.org>

	build: Set permissions of test scripts consistently.
	Reported by Khem Raj <raj.khem@gmail.com> in
	<https://lists.gnu.org/archive/html/bug-gettext/2020-09/msg00007.html>.

	* gettext-tools/tests/msgmerge-29: Make executable.

2020-10-18  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gnulib-local/lib/hash.h.diff: Update.
	* gnulib-local/lib/hash.c.diff: Likewise.

2020-10-18  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2020-10-18  Bruno Haible  <bruno@clisp.org>

	Fix "warning: implicit declaration of function 'open'/'read'/'close'".
	* gettext-runtime/intl/loadmsgcat.c: Include <io.h>.
	(open, read, close): New macros on native Windows.

2020-10-17  Bruno Haible  <bruno@clisp.org>

	Fix "warning: 'max' macro redefined".
	* gettext-tools/src/x-javascript.c (max): Undefine first.
	* gettext-tools/src/x-python.c (max): Likewise.

2020-10-12  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* autogen.sh: Don't copy attribute.h, as it would have the wrong copyright header.
	* gettext-runtime/intl/attribute.h: New file, from gnulib.
	* gettext-runtime/intl/arg-nonnull.h: Update from gnulib.
	* gettext-runtime/intl/localename.c: Likewise.
	* gettext-runtime/intl/vasnprintf.c: Likewise.
	* gettext-runtime/intl/verify.h: Likewise.
	* gettext-runtime/libasprintf/vasnprintf.c: Likewise.
	* gettext-runtime/m4/fcntl-o.m4: Likewise.
	* gettext-runtime/m4/iconv.m4: Likewise.
	* gettext-runtime/intl/thread-optim.h: New file, from gnulib.
	* gettext-runtime/intl/Makefile.am (EXTRA_DIST): Add thread-optim.h.
	* Makefile.am (distcheck-hook): Check also thread-optim.h.

2020-10-12  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2020-10-04  Bruno Haible  <bruno@clisp.org>

	build: Modernize autoconf macros.
	* gettext-runtime/m4/intdiv0.m4 (gt_INTDIV0): Improve m4 quoting.
	* gettext-runtime/m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
	* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Improve indentation.
	* gettext-tools/m4/hostname.m4 (gt_PREREQ_HOSTNAME): Improve m4 quoting. Use
	AC_CACHE_CHECK and AC_COMPILE_IFELSE.
	* gettext-tools/m4/siginfo.m4 (gt_SIGINFO): Improve m4 quoting. Use
	AC_COMPILE_IFELSE.

2020-10-04  Bruno Haible  <bruno@clisp.org>

	build: Assume ANSI C declaration of 'setlocale'.
	* gettext-tools/tests/setlocale.c (setlocale): Assume SETLOCALE_CONST is
	'const'.
	* gettext-tools/tests/format-c-3-prg.c: Likewise.
	* gettext-tools/tests/format-c-4-prg.c: Likewise.
	* gettext-tools/tests/plural-1-prg.c: Likewise.
	* gettext-tools/tests/tstgettext.c: Likewise.
	* gettext-tools/tests/tstngettext.c: Likewise.
	* gettext-tools/configure.ac: Don't invoke gt_SETLOCALE.
	* gettext-tools/m4/setlocale.m4: Remove file.
	* gettext-tools/m4/Makefile.am (EXTRA_DIST): Remove it.

2020-10-04  Bruno Haible  <bruno@clisp.org>

	Improve code style.
	* gettext-tools/src/cldr-plural-exp.c: Indent and parenthesize for better
	readability.

2020-10-04  Bruno Haible  <bruno@clisp.org>

	Fix "warning: no previous extern declaration for non-static variable".
	* gettext-tools/src/write-desktop.c (msgfmt_methods): Make 'static'.
	* gettext-tools/src/x-desktop.c (extract_methods): Likewise.

2020-10-04  Bruno Haible  <bruno@clisp.org>

	Fix "warning: this function declaration is not a prototype".
	* gnulib-local/lib/xgetcwd.c (xgetcwd): Use ANSI C prototype syntax.

2020-10-04  Bruno Haible  <bruno@clisp.org>

	Fix "warning: no previous prototype for function 'its_*_eval'".
	* gettext-tools/src/its.c (its_translate_rule_eval,
	its_localization_note_rule_eval, its_element_within_text_rule_eval,
	its_preserve_space_rule_eval, its_extension_context_rule_eval,
	its_extension_escape_rule_eval): Make 'static'.

2020-10-04  Bruno Haible  <bruno@clisp.org>

	Fix "warning: no previous prototype for function 'locating_rule_list_destroy'".
	* gettext-tools/src/locating-rule.c (locating_rule_list_destroy): Make 'static'.

2020-10-04  Bruno Haible  <bruno@clisp.org>

	Fix "warning: no previous prototype for function 'xgetcwd'".
	* gnulib-local/lib/xgetcwd.c: Include "xgetcwd.h".

2020-10-04  Bruno Haible  <bruno@clisp.org>

	Fix "warning: unannotated fall-through between switch labels".
	* autogen.sh (GNULIB_MODULES_RUNTIME_FOR_SRC, GNULIB_MODULES_TOOLS_FOR_SRC,
	GNULIB_MODULES_LIBGETTEXTPO): Add 'attribute'.
	* libtextstyle/autogen.sh (GNULIB_MODULES): Likewise.
	* gettext-runtime/intl/plural.y: Include attribute.h. Use FALLTHROUGH annotated
	empty statements instead of /* FALLTHROUGH */ comments.
	* gettext-runtime/src/gettext.c: Likewise.
	* gettext-runtime/src/ngettext.c: Likewise.
	* gettext-tools/src/format-boost.c: Likewise.
	* gettext-tools/src/read-stringtable.c: Likewise.
	* gettext-tools/src/write-csharp.c: Likewise.
	* gettext-tools/src/write-java.c: Likewise.
	* gettext-tools/src/write-po.c: Likewise.
	* gettext-tools/src/x-awk.c: Likewise.
	* gettext-tools/src/x-c.c: Likewise.
	* gettext-tools/src/x-csharp.c: Likewise.
	* gettext-tools/src/x-elisp.c: Likewise.
	* gettext-tools/src/x-java.c: Likewise.
	* gettext-tools/src/x-javascript.c: Likewise.
	* gettext-tools/src/x-librep.c: Likewise.
	* gettext-tools/src/x-lisp.c: Likewise.
	* gettext-tools/src/x-perl.c: Likewise.
	* gettext-tools/src/x-php.c: Likewise.
	* gettext-tools/src/x-python.c: Likewise.
	* gettext-tools/src/x-scheme.c: Likewise.
	* gettext-tools/src/x-sh.c: Likewise.
	* gettext-tools/src/x-smalltalk.c: Likewise.
	* gettext-tools/src/x-tcl.c: Likewise.
	* gettext-tools/src/x-vala.c: Likewise.
	* gettext-tools/src/x-ycp.c: Likewise.
	* gettext-tools/tests/tstgettext.c: Likewise.
	* gettext-tools/tests/tstngettext.c: Likewise.
	* libtextstyle/gnulib-local/lib/tparm.c: Likewise.
	* gettext-runtime/src/escapes.h: Use FALLTHROUGH annotated empty statements
	instead of /* FALLTHROUGH */ comments.

2020-10-04  Bruno Haible  <bruno@clisp.org>

	Fix "warning: cast from 'const void *' to 'char *' drops const qualifier".
	* libtextstyle/gnulib-local/lib/iconv-ostream.oo.c (iconv_ostream::write_mem):
	Add 'const'.

2020-10-04  Bruno Haible  <bruno@clisp.org>

	Fix "warning: cast from 'const void *' to 'char *' drops const qualifier".
	* libtextstyle/gnulib-local/lib/html-ostream.oo.c (html_ostream::write_mem): Add
	'const'.

2020-10-04  Bruno Haible  <bruno@clisp.org>

	Fix "warning: cast from 'const void *' to 'char *' drops const qualifier".
	* libtextstyle/gnulib-local/lib/fd-ostream.oo.c (fd_ostream::write_mem): Add
	'const'.

2020-10-04  Bruno Haible  <bruno@clisp.org>

	Fix "warning: cast ... drops const qualifier".
	* gnulib-local/lib/markup.c (slow_name_validate): Add 'const'.

2020-09-06  Bruno Haible  <bruno@clisp.org>

	Fix "warning: cast from 'const void *' to 'struct pre_message *' drops const qualifier".
	* gettext-tools/src/write-mo.c (compare_id): Add 'const'.

2020-09-06  Bruno Haible  <bruno@clisp.org>

	Fix "warning: cast from 'const char *' to 'char *' drops const qualifier".
	* gettext-tools/src/str-list.h (string_list_append_unique_desc,
	string_list_member_desc): New declarations.
	* gettext-tools/src/str-list.c (string_list_append_unique_desc,
	string_list_member_desc): New functions.
	* gettext-tools/src/msgfmt.c (add_languages): Don't modify the contents of
	'line'.

2020-09-06  Bruno Haible  <bruno@clisp.org>

	Fix "warning: cast from 'const void *' to 'struct compiled_kwset *' drops const qualifier".
	* gettext-tools/libgrep/m-fgrep.c (Fexecute): Add 'const'.

2020-09-06  Bruno Haible  <bruno@clisp.org>

	Fix "warning: cast from 'const void *' to 'const char **' drops const qualifier".
	* gettext-runtime/src/envsubst.c (cmp_string): Add 'const'.

2020-09-06  Bruno Haible  <bruno@clisp.org>

	msgfmt: Simplify code.
	* gettext-tools/src/msgfmt.c (msgfmt_desktop_bulk): Simplify.

2020-09-06  Bruno Haible  <bruno@clisp.org>

	Fix matching of languages in the LINGUAS environment variable.
	Setting LINGUAS e.g. to "frs" should not cause fr.mo to get installed,
	because Frisian is not a variant of French.

	Reported by <arfrever.fta@gmail.com> in <https://savannah.gnu.org/bugs/?59062>.

	* gettext-runtime/m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Don't
	consider $desiredlang a variant of $presentlang unless it has the syntax of a
	variant.

2020-09-06  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* configure.ac (AC_PREREQ): Bump minimum Autoconf version to 2.64.
	* gettext-runtime/configure.ac (AC_PREREQ): Likewise.
	* gettext-runtime/libasprintf/configure.ac (AC_PREREQ): Likewise.
	* libtextstyle/configure.ac (AC_PREREQ): Likewise.
	* gettext-tools/configure.ac (AC_PREREQ): Likewise.
	* gettext-tools/examples/configure.ac (AC_PREREQ): Likewise.

2020-09-06  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2020-09-06  Bruno Haible  <bruno@clisp.org>

	build: Add support for clang on Windows.
	* m4/woe32-dll.m4 (gl_WOE32_DLL): Set gl_cv_ld_autoimport to 'no' on
	MSVC and MSVC/clang.

2020-08-16  Bruno Haible  <bruno@clisp.org>

	Optimize also for clang.
	* gnulib-local/lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Set to 1
	also on clang.

2020-08-16  Bruno Haible  <bruno@clisp.org>

	Optimize also for clang.
	* gnulib-local/lib/gettext.h (pgettext_aux, npgettext_aux, dcpgettext_expr,
	dcnpgettext_expr): Inline also on clang.

2020-08-16  Bruno Haible  <bruno@clisp.org>

	Fix quoting of AC_LANG_SOURCE arguments.
	* gettext-tools/m4/locale-de.m4 (gt_LOCALE_DE_UTF8): Simplify m4 quoting.

2020-08-07  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gettext-runtime/intl/verify.h: Update from gnulib.
	* gettext-runtime/intl/vasnprintf.c: Likewise.
	* gettext-runtime/libasprintf/vasnprintf.c: Likewise.

2020-08-07  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2020-08-07  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2020-08-01  Bruno Haible  <bruno@clisp.org>

	Prefer documented autoconf macro 'm4_if' over 'ifelse'.
	* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): Use m4_if instead of ifelse.
	* gettext-runtime/m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.

2020-08-01  Bruno Haible  <bruno@clisp.org>

	Add comment about test failures on Cygwin.
	* gettext-tools/tests/msginit-3: Add comment about a possible test failure.
	* gettext-tools/tests/msginit-4: Likewise.

2020-08-01  Bruno Haible  <bruno@clisp.org>

	Fix build failure with bison 3.7. Revisit bison Makefile rules.
	* gettext-runtime/intl/Makefile.am ($(srcdir)/plural.c): Keep and distribute the
	plural.h file. Don't use --output option.
	* gettext-tools/src/Makefile.am (YACC): Removed unused variable.
	(po-gram-gen.c, po-gram-gen.h): Correct the #line statements in the generated
	files.
	(po-gram-gen2.h): Likewise.
	(cldr-plural.c, cldr-plural.h): Likewise.

2020-07-31  Michele Locati  <michele@locati.it>

	build: Fix build failure on Cygwin and mingw.
	* gettext-tools/woe32dll/gettextsrc-exports.c: Export formatstring_ruby.

2020-07-29  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2020-07-28  Bruno Haible  <bruno@clisp.org>

	Fix build error on Solaris 11 in 32-bit mode.
	Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp> in
	<https://lists.gnu.org/archive/html/bug-gettext/2020-07/msg00034.html>.

	* gnulib-local/lib/getopt-core.h.diff: Don't include <config.h> if it has
	already been included. This fixes the compilation of vma-iter.c.

2020-07-28  Bruno Haible  <bruno@clisp.org>

	Fix -export-symbols and -export-symbols-regex support on Solaris 11.3.
	Apply fix from <https://savannah.gnu.org/patch/?9467>.

	On Solaris 11.3 (as opposed to Solaris 11.0), the output of /usr/bin/nm -p
	on object files contains, for global variables without initializer, the
	letter 'C' (it was 'D' in Solaris 11.0).

	* m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): Adjust symcode for Solaris.

2020-07-27  Bruno Haible  <bruno@clisp.org>

	Update post-release steps.

2020-07-27  Bruno Haible  <bruno@clisp.org>

	Update release steps.

2020-07-27  Bruno Haible  <bruno@clisp.org>

	Prepare for 0.21 release.
	* gettext-tools/examples/hello-*/configure.{ac,in.in}: Reference gettext
	version 0.21.

2020-07-27  Bruno Haible  <bruno@clisp.org>

	PO file changes from "make distcheck".

2020-07-26  Bruno Haible  <bruno@clisp.org>

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

2020-07-26  Bruno Haible  <bruno@clisp.org>

	Prepare for 0.21 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.
	* gettext-runtime/po/Makefile.in.in: Bump Origin version.
	* NEWS, libtextstyle/NEWS, gettext-runtime/NEWS: Update.
	* libtextstyle/lib/Makefile.am (LTV_*): Bump to 1:1:1.
	* gettext-runtime/intl/Makefile.am (LTV_*): Bump to 10:0:2.
	* gettext-tools/libgettextpo/Makefile.am (LTV_*): Bump to 5:7:5.
	* gettext-tools/configure.ac (ARCHIVE_VERSION): Bump to 0.21.
	* gettext-tools/misc/autopoint.in: Allow version 0.21.

2020-07-26  Bruno Haible  <bruno@clisp.org>

	doc: Tweak libgettextpo chapter.
	* gettext-tools/doc/gettext.texi (libgettextpo): Very small tweaks.

2020-07-26  Bruno Haible  <bruno@clisp.org>

	doc: Make function declarations easier to read.
	* gettext-tools/doc/gettext.texi: Inside the argument list of function
	declarations, use no-break spaces instead of spaces, except directly after
	a comma.

2020-07-26  Bruno Haible  <bruno@clisp.org>

	doc: Canonicalize source.
	* gettext-tools/doc/gettext.texi: Prefer long lines to @<newline> breaks.

2020-07-26  Miguel Ángel Arruga Vivas  <rosen644835@gmail.com>

	doc: Add Checking API
	* gettext-tools/doc/gettext.texi (Checking API): New subsection.  Add
	po_file_check_all, po_message_check_all, and po_message_check_format
	documentation
	(libgettextpo): Add entry to the menu.

2020-07-26  Miguel Ángel Arruga Vivas  <rosen644835@gmail.com>

	doc: Update po_message_t API (VI)
	* gettext-tools/doc/gettext.texi (po_message_t API): Add previous
	message contents accessors po_message_prev_msgctxt,
	po_message_set_prev_msgctxt, po_message_prev_msgid,
	po_message_set_prev_msgid, po_message_prev_msgid_plural, and
	po_message_set_prev_msgid_plural documentation.

2020-07-26  Miguel Ángel Arruga Vivas  <rosen644835@gmail.com>

	doc: Add format type API
	* gettext-tools/doc/gettext.texi (Format Type API): New subsection.
	Add po_format_list and po_format_pretty_name documentation.

2020-07-26  Miguel Ángel Arruga Vivas  <rosen644835@gmail.com>

	doc: Update po_message_t API (V)
	* gettext-tools/doc/gettext.texi (po_message_t API): Update references
	to the variable from the function declaration.

2020-07-26  Miguel Ángel Arruga Vivas  <rosen644835@gmail.com>

	doc: Update po_message_t API (IV)
	* gettext-tools/doc/gettext.texi (po_message_t API): Add
	po_message_is_obsolete, po_message_set_obsolete, po_message_is_fuzzy,
	po_message_set_fuzzy, po_message_is_format, po_message_set_format,
	po_message_is_range, and po_message_set_range documentation.

2020-07-26  Miguel Ángel Arruga Vivas  <rosen644835@gmail.com>

	doc: Add po_filepos_t API
	* gettext-tools/doc/gettext.texi (po_filepos_t API): New
	subsection. Add po_message_filepos, po_message_remove_filepos, and
	po_message_add_filepos documentation.
	(libgettextpo): Add new subsection to the menu.

2020-07-26  Miguel Ángel Arruga Vivas  <rosen644835@gmail.com>

	doc: Add Header Entry API
	* gettext-tools/doc/gettext.texi (PO Header Entry API): New
	subsection.  Add po_file_domain_header, po_header_field and
	po_header_set_field documentation.
	(libgettextpo): Add subsection to the menu.

2020-07-26  Miguel Ángel Arruga Vivas  <rosen644835@gmail.com>

	doc: Update po_message_t API (III)
	* gettext-tools/doc/gettext.texi (po_message_t API): Add
	po_message_set_msgctxt, po_message_set_msgid,
	po_message_set_msgid_plural, po_message_set_msgstr,
	po_message_set_msgstr_plural, po_message_set_comments, and
	po_message_set_extracted_comments documentation.

2020-07-26  Miguel Ángel Arruga Vivas  <rosen644835@gmail.com>

	doc: Update po_message_t API (II)
	* gettext-tools/doc/gettext.texi (po_message_t API): Add
	po_message_msgctxt, po_message_comments, and
	po_message_extracted_comments documentation.

2020-07-26  Miguel Ángel Arruga Vivas  <rosen644835@gmail.com>

	doc: Update po_message_t API (I)
	* gettext-tools/doc/gettext.texi (po_message_t API): Add
	po_message_create documentation.

2020-07-26  Miguel Ángel Arruga Vivas  <rosen644835@gmail.com>

	doc: Update libgettextpo example
	* gettext-tools/doc/gettext.texi (libgettextpo): Update example to the
	latest API.

2020-07-26  Miguel Ángel Arruga Vivas  <rosen644835@gmail.com>

	doc: Move libgettextpo example to the front subsection.
	* gettext-tools/doc/gettext.texi (po_message_t API): Move example from
	here...
	(libgettextpo): ... back to here.

2020-07-26  Miguel Ángel Arruga Vivas  <rosen644835@gmail.com>

	doc: Split libgettextpo documentation into subsections
	* gettext-tools/doc/gettext.texi (libgettextpo): Add a menu and split
	the functions an types into separate subsections.
	(Error Handling): New subsection.
	(po_file_t API): New subsection
	(po_message_iterator_t API). New subsection.
	(po_message_t API): New subsection.

2020-07-26  Miguel Ángel Arruga Vivas  <rosen644835@gmail.com>

	doc: Add po_file_write documentation
	* gettext-tools/doc/gettext.texi (libgettextpo): Add po_file_write
	documentation.
	* gettext-tools/doc/gettext-po.in.h (po_file_write): Update comment.

2020-07-26  Miguel Ángel Arruga Vivas  <rosen644835@gmail.com>

	doc: Update po_file_read documentation
	* gettext-tools/doc/gettext.texi (libgettextpo): Update documentation
	from po_file_read to the version 3 of the implementation.
	* gettext-tools/libgettextpo/gettext-po.in.h (po_file_read): Update
	comment.

2020-07-26  Miguel Ángel Arruga Vivas  <rosen644835@gmail.com>

	doc: Add po_xerror_handler_t documentation
	* gettext-tools/doc/gettext.texi (libgettextpo): Add struct
	po_xerror_handler and its callbacks to the manual.

2020-07-26  Miguel Ángel Arruga Vivas  <rosen644835@gmail.com>

	doc: Add po_file_create documentation
	* gettext-tools/doc/gettext.texi (libgettextpo): Add po_file_create
	documentation.

2020-07-26  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gettext-runtime/m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't require gt_INTTYPES_PRI.
	* gettext-runtime/m4/inttypes-pri.m4: Remove file.
	* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove it.
	* Makefile.am (distcheck-hook): Don't compare inttypes-pri.m4.
	* gettext-runtime/m4/size_max.m4: Update from gnulib.

2020-07-26  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2020-07-26  Bruno Haible  <bruno@clisp.org>

	Drop portability to AIX 4.
	* gettext-runtime/intl/loadmsgcat.c: Assume PRI_MACROS_BROKEN is not set.
	* gettext-tools/tests/format-c-3-prg.c: Likewise.
	* gettext-tools/tests/format-c-4-prg.c: Likewise.

2020-07-18  Bruno Haible  <bruno@clisp.org>

	msgmerge: Make --sort-by-file sort messages without file reference correctly.
	Reported by <wangqr@wangqr.tk> in <https://savannah.gnu.org/bugs/?58778>.

	* gettext-tools/src/write-catalog.c (cmp_by_filepos): When a->filepos_count and
	b->filepos_count are both 0, compare the msgid strings.
	* gettext-tools/tests/msgmerge-29: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2020-07-15  Bruno Haible  <bruno@clisp.org>

	build: Fix a "make install" failure in a VPATH build with OpenBSD 'make'.
	* gettext-tools/misc/Makefile.am: Assume that archive.dir.tar is in $(srcdir).

2020-07-08  Bruno Haible  <bruno@clisp.org>

	Fix a test failure on MSVC.
	* gettext-tools/tests/recode-sr-latin-1: Allow CRLF newlines in the output.

2020-07-08  Bruno Haible  <bruno@clisp.org>

	Fix build error on mingw (regression from 2020-07-05).
	* autogen.sh (GNULIB_MODULES_LIBGETTEXTPO_OTHER): Add fdopen.

2020-07-08  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2020-07-06  Bruno Haible  <bruno@clisp.org>

	alloca-opt: Fix build error on AIX (regression from 2020-07-05).
	* gnulib-local/lib/alloca.in.h: Don't include <alloca.h>, since it would be a
	recursive include of the same file.

2020-07-06  Bruno Haible  <bruno@clisp.org>

	Fix compilation error on AIX (regression from 2019-01-06).
	* gettext-runtime/intl/Makefile.am (localename-table.h): Fix insertion of
	export.h.

2020-07-06  Bruno Haible  <bruno@clisp.org>

	doc: Fix typo.
	Reported by Arun Isaac <arunisaac@systemreboot.net> in
	<https://lists.gnu.org/archive/html/bug-gettext/2020-07/msg00001.html>.

	* gettext-tools/doc/gettext.texi (Prioritizing messages): Fix a typo.

2020-07-06  Bruno Haible  <bruno@clisp.org>

	msgfmt: Supersede, not overwrite, the output file of type '.mo'.
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add 'supersede'.
	* gettext-tools/src/write-mo.c: Include supersede.h.
	(msgdomain_write_mo): When writing to a file, use fopen_supersede and
	fwriteerror_supersede.
	* NEWS: Mention the change.

2020-07-05  Bruno Haible  <bruno@clisp.org>

	Avoid possible future conflict with gnulib module 'dirname'.
	* gnulib-local/lib/basename.c: Remove file.
	* gnulib-local/lib/basename.h: Remove file.
	* gnulib-local/modules/basename: Remove file.
	* gnulib-local/Makefile.am (EXTRA_DIST): Remove them.
	* gnulib-local/lib/addext.c: Include basename-lgpl.h instead of basename.h.
	(addext): Invoke last_component instead of basename.
	* gnulib-local/lib/backupfile.c: Include basename-lgpl.h instead of basename.h.
	(find_backup_file_name): Invoke last_component instead of basename.
	* gnulib-local/modules/backupfile (Depends-on): Remove basename. Add
	basename-lgpl.
	* autogen.sh (GNULIB_MODULES_RUNTIME_FOR_SRC, GNULIB_MODULES_TOOLS_FOR_SRC,
	GNULIB_MODULES_LIBGETTEXTPO): Remove basename. Add basename-lgpl.
	* gettext-runtime/src/envsubst.c: Include basename-lgpl.h instead of basename.h.
	(main): Invoke last_component instead of basename.
	* gettext-runtime/src/gettext.c: Likewise.
	* gettext-runtime/src/ngettext.c: 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/urlget.c: Likewise.
	* gettext-tools/src/xgettext.c: Likewise.
	* gettext-tools/tests/tstgettext.c: Likewise.
	* gettext-tools/tests/tstngettext.c: Likewise. Include <string.h>.
	* gettext-tools/src/recode-sr-latin.c: Include basename-lgpl.h instead of
	basename.h.
	(main, process): Invoke last_component instead of basename.
	* gettext-tools/src/locating-rule.c: Include basename-lgpl.h instead of
	basename.h.
	(locating_rule_match): Invoke last_component instead of basename.
	* gettext-tools/src/msgl-cat.c: Include basename-lgpl.h instead of basename.h.
	(catenate_msgdomain_list): Invoke last_component instead of basename.
	* gettext-tools/src/msgl-charset.c: Include basename-lgpl.h instead of
	basename.h.
	(compare_po_locale_charsets): Invoke last_component instead of basename.
	* gettext-tools/src/msgl-iconv.c: Include basename-lgpl.h instead of basename.h.
	(iconv_message_list_internal): Invoke last_component instead of basename.
	* gettext-tools/src/po-charset.c: Include basename-lgpl.h instead of basename.h.
	(po_lex_charset_set): Invoke last_component instead of basename.
	* gettext-tools/src/x-python.c: Include basename-lgpl.h instead of basename.h.
	(set_current_file_source_encoding): Invoke last_component instead of basename.
	* gettext-tools/src/x-javascript.c: Don't include basename.h.

2020-07-05  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gnulib-local/lib/clean-temp.c.diff: Remove file.
	* gnulib-local/Makefile.am (EXTRA_DIST): Remove it.
	* gettext-tools/src/write-csharp.c (msgdomain_write_csharp): Update fopen_temp
	invocation.
	* gettext-tools/src/write-java.c (msgdomain_write_java): Likewise.

2020-07-05  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2020-07-05  Bruno Haible  <bruno@clisp.org>

	gettext.h: Update from gnulib.
	* gnulib-local/lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined.

2020-07-05  Bruno Haible  <bruno@clisp.org>

	alloca-opt: Update from gnulib.
	* gnulib-local/lib/alloca.in.h: Update from gnulib.
	* gnulib-local/m4/alloca.m4: Remove file.
	* gnulib-local/Makefile.am (EXTRA_DIST): Remove it.

2020-07-05  Bruno Haible  <bruno@clisp.org>

	Avoid possible future conflict with gnulib module 'hash'.
	* gnulib-local/lib/hash.c.diff: New file.
	* gnulib-local/lib/hash.h.diff: New file.
	* gnulib-local/Makefile.am (EXTRA_DIST): Add them.

2020-07-05  Bruno Haible  <bruno@clisp.org>

	Remove some now unneeded gnulib-tool --avoid options.
	* autogen.sh: Remove some --avoid=*-tests options.
	* libtextstyle/autogen.sh: Likewise.

2020-07-04  Bruno Haible  <bruno@clisp.org>

	Avoid a module name and include file name collision with gnulib.
	* gnulib-local/lib/mem-hash-map.h: Renamed from gnulib-local/lib/hash.h.
	* gnulib-local/lib/mem-hash-map.c: Renamed from gnulib-local/lib/hash.c.
	Include mem-hash-map.h instead of hash.h.
	* gnulib-local/modules/mem-hash-map: Renamed from gnulib-local/modules/hash.
	Update.
	* gnulib-local/Makefile.am (EXTRA_DIST): Update.
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC, GNULIB_MODULES_LIBGETTEXTPO):
	Update.
	* libtextstyle/gnulib-local/modules/term-styled-ostream (Depends-on): Likewise.
	* gettext-tools/src/its.c: Include mem-hash-map.h instead of hash.h.
	* gettext-tools/src/locating-rule.c: Likewise.
	* gettext-tools/src/message.c: Likewise.
	* gettext-tools/src/message.h: Likewise.
	* gettext-tools/src/read-desktop.h: Likewise.
	* gettext-tools/src/write-mo.c: Likewise.
	* gettext-tools/src/write-qt.c: Likewise.
	* gettext-tools/src/x-c.c: Likewise.
	* gettext-tools/src/x-csharp.c: Likewise.
	* gettext-tools/src/x-desktop.c: Likewise.
	* gettext-tools/src/x-elisp.c: Likewise.
	* gettext-tools/src/x-java.c: Likewise.
	* gettext-tools/src/x-librep.c: Likewise.
	* gettext-tools/src/x-lisp.c: Likewise.
	* gettext-tools/src/x-scheme.c: Likewise.
	* gettext-tools/src/x-sh.c: Likewise.
	* gettext-tools/src/x-tcl.c: Likewise.
	* gettext-tools/src/x-vala.c: Likewise.
	* gettext-tools/src/xg-arglist-callshape.h: Likewise.
	* gettext-tools/src/xg-arglist-context.h: Likewise.
	* libtextstyle/gnulib-local/lib/term-styled-ostream.oo.c: Likewise.

2020-07-04  Bruno Haible  <bruno@clisp.org>

	Remove redundant code (redundant since 2008-10-19).
	* gnulib-local/modules/wait-process.diff: Remove file.
	* gnulib-local/m4/unionwait.m4: Remove file.
	* gnulib-local/Makefile.am (EXTRA_DIST): Remove them.

2020-07-03  Bruno Haible  <bruno@clisp.org>

	Remove redundant code.
	* gettext-tools/src/write-mo.c (msgdomain_write_mo): Remove a redundant test.
	* gettext-tools/src/write-qt.c (msgdomain_write_qt): Likewise.

2020-06-27  Bruno Haible  <bruno@clisp.org>

	Add comment.
	* gettext-tools/src/plural-eval.c (sigfpe_handler): Add comment.

2020-06-27  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gnulib-local/modules/fnmatch.diff: Remove file.
	* gnulib-local/lib/fnmatch.c.diff: Remove file.
	* gnulib-local/lib/fnmatch_loop.c.diff: Remove file.
	* gnulib-local/Makefile.am (EXTRA_DIST): Remove them.
	* gettext-tools/src/read-properties.c (properties_parse): Update the fread_file
	invocation.
	* gettext-tools/po/POTFILES.in: Remove gnulib-lib/copy-acl.c,
	gnulib-lib/set-acl.c.
	* gettext-runtime/intl/localename.c: Update from gnulib.
	* gettext-runtime/intl/relocatable.c: Likewise.
	* gettext-runtime/intl/verify.h: Likewise.
	* gettext-runtime/intl/windows-rwlock.c: Likewise.

2020-06-26  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2020-06-06  Bruno Haible  <bruno@clisp.org>

	FAQ: Update information about mailing lists.
	Reported by Vincent Lefèvre <vincent@vinc17.net> in
	<https://lists.gnu.org/archive/html/bug-gettext/2020-06/msg00003.html>.

	* gettext-tools/doc/FAQ.html: Don't mention bug-gnu-utils. Clarify what
	bug-gnu-gettext is.

2020-06-06  Bruno Haible  <bruno@clisp.org>

	msgunfmt: Detect more cases of invalid .mo files.
	* gettext-tools/src/read-mo.c: Include hash-string.h.
	(read_mo_file): Verify the array of messages and the hash table.
	* gettext-tools/src/write-mo.c (write_table): Fix typo in comment.
	* gettext-tools/src/Makefile.am (msgunfmt_SOURCES): Add hash-string.c.
	* gettext-tools/tests/overflow-7.mo: Renamed from
	gettext-tools/tests/sysdep-without-nul.mo.
	* gettext-tools/tests/sysdep-without-nul.mo: New file.
	* gettext-tools/tests/msgunfmt-3: Test also overflow-7.mo.
	* gettext-tools/tests/Makefile.am (EXTRA_DIST): Add overflow-7.mo.

2020-06-06  Bruno Haible  <bruno@clisp.org>

	po-mode: Fix syntax highlighting of comment lines with double-quotes.
	Reported by Vincent Lefèvre <vincent@vinc17.net> in
	<https://lists.gnu.org/archive/html/bug-gettext/2020-06/msg00000.html>.

	* gettext-tools/emacs/po-mode.el (po-mode-version-string): Bump.
	(po-font-lock-keywords): Move the rules that recognize comments to the
	beginning.

2020-05-10  Bruno Haible  <bruno@clisp.org>

	Reorder list of programming languages.
	* gettext-tools/src/format.h: Reorder declarations.
	* gettext-tools/src/format.c (formatstring_parsers): Reorder entries.
	* gettext-tools/src/message.h (enum format_type): Reorder items.
	* gettext-tools/src/message.c (format_language, format_language_pretty): Reorder
	entries.
	* gettext-tools/src/xgettext.c: Reorder includes.
	(flag_table_*): Reorder declarations.
	(main): Reorder init_flag_table_* invocations.
	(xgettext_record_flag): Reorder switch statement.
	(language_to_extractor, extension_to_language): Reorder table entries.
	* gettext-tools/src/format-smalltalk.c: Renamed from
	gettext-tools/src/format-ycp.c.
	* gettext-tools/src/FILES: Update.
	* gettext-tools/src/Makefile.am (noinst_HEADERS, FORMAT_SOURCE,
	xgettext_SOURCES): Update.
	* gettext-tools/po/POTFILES.in: Update.
	* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES): Update.
	* gettext-tools/tests/Makefile.am (TESTS): Reorder.

2020-05-10  Bruno Haible  <bruno@clisp.org>

	i18n: Update list of files.
	* gettext-tools/po/POTFILES.in: Add missing files.

2020-05-10  Bruno Haible  <bruno@clisp.org>

	doc: Reorder list of programming languages.
	* gettext-tools/doc/lang-c.texi: New file, extracted from
	gettext-tools/doc/gettext.texi.
	* gettext-tools/doc/lang-python.texi: Likewise.
	* gettext-tools/doc/lang-java.texi: Likewise.
	* gettext-tools/doc/lang-csharp.texi: Likewise.
	* gettext-tools/doc/lang-javascript.texi: Likewise.
	* gettext-tools/doc/lang-scheme.texi: Likewise.
	* gettext-tools/doc/lang-lisp.texi: Likewise.
	* gettext-tools/doc/lang-clisp-c.texi: Likewise.
	* gettext-tools/doc/lang-elisp.texi: Likewise.
	* gettext-tools/doc/lang-librep.texi: Likewise.
	* gettext-tools/doc/lang-ruby.texi: Likewise.
	* gettext-tools/doc/lang-sh.texi: Likewise.
	* gettext-tools/doc/lang-bash.texi: Likewise.
	* gettext-tools/doc/lang-gawk.texi: Likewise.
	* gettext-tools/doc/lang-lua.texi: Likewise.
	* gettext-tools/doc/lang-pascal.texi: Likewise.
	* gettext-tools/doc/lang-smalltalk.texi: Likewise.
	* gettext-tools/doc/lang-vala.texi: Likewise.
	* gettext-tools/doc/lang-wxwidgets.texi: Likewise.
	* gettext-tools/doc/lang-tcl.texi: Likewise.
	* gettext-tools/doc/lang-perl.texi: Likewise.
	* gettext-tools/doc/lang-php.texi: Likewise.
	* gettext-tools/doc/lang-pike.texi: Likewise.
	* gettext-tools/doc/lang-gcc-source.texi: Likewise.
	* gettext-tools/doc/lang-ycp.texi: Likewise.
	* gettext-tools/doc/Makefile.am (gettext_TEXINFOS): Add them.
	* gettext-tools/doc/gettext.texi (List of Programming Languages): Reorder list
	of programming languages, approximately according to decreasing importance.
	(PO Files): Reorder list for format string markers accordingly.
	(Translators for other Languages): Likewise.

2020-05-10  Daiki Ueno  <ueno@gnu.org>

	xgettext: Warn if a fallback ITS file is used
	* src/xgettext.c (main): Warn if a fallback ITS file is used.
	Suggested by Will Thompson in:
	<https://savannah.gnu.org/bugs/?56455>.

2020-05-09  Bruno Haible  <bruno@clisp.org>

	Reduce explicit use of __attribute__.
	* gnulib-local/lib/xalloc.h: Include noreturn.h.
	(xalloc_die): Use _GL_NORETURN_FUNC.
	* gnulib-local/modules/xalloc (Depends-on): Add noreturn.

2020-05-09  Bruno Haible  <bruno@clisp.org>

	Reduce explicit use of __attribute__.
	* autogen.sh (GNULIB_MODULES_RUNTIME_FOR_SRC, GNULIB_MODULES_TOOLS_FOR_SRC): Add noreturn.
	* gettext-runtime/src/envsubst.c: Include noreturn.h.
	(usage): Use _GL_NORETURN_FUNC.
	* gettext-runtime/src/gettext.c: Likewise.
	* gettext-runtime/src/ngettext.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/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/src/msggrep.c: Include noreturn.h.
	(no_pass, usage): Use _GL_NORETURN_FUNC.
	* gettext-tools/src/msgl-iconv.c: Include noreturn.h.
	(conversion_error): Use _GL_NORETURN_FUNC.
	* gettext-tools/tests/tstgettext.c: Include noreturn.h.
	(usage): Use _GL_NORETURN_FUNC.
	* gettext-tools/tests/tstngettext.c: Likewise.

2020-05-09  Bruno Haible  <bruno@clisp.org>

	build: Fix "make distcheck" failure.
	* gettext-tools/src/Makefile.am (po-gram-gen.c, cldr-plural.c): Don't use
	ylwrap.
	(MOSTLYCLEANFILES): Augment accordingly.
	* gettext-tools/configure.ac (YACC): Remove assignment.

2020-05-08  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* autogen.sh: Create gettext-runtime/intl/attribute.h.
	(GNULIB_MODULES_LIBASPRINTF): Add 'attribute'.
	* gettext-runtime/intl/Makefile.am (EXTRA_DIST): Add attribute.h.
	* Makefile.am (distcheck-hook): Test also gettext-runtime/intl/attribute.h.
	* gettext-runtime/intl/vasnprintf.c: Update from gnulib.
	* gettext-runtime/intl/xsize.h: Likewise.
	* gettext-runtime/libasprintf/vasnprintf.c: Likewise.

2020-05-08  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2020-05-08  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gnulib-local/modules/fnmatch.diff: Update.

2020-05-08  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2020-05-03  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gettext-runtime/m4/intl.m4 (gt_INTL_SUBDIR_CORE): Remove redundant argument to
	gl_PROG_BISON.
	* gettext-tools/configure.ac: Likewise.

2020-05-03  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2020-05-01  Bruno Haible  <bruno@clisp.org>

	Clarify minimum needed bison version.
	* gettext-tools/src/cldr-plural.y: Add %require declaration.

2020-05-01  Bruno Haible  <bruno@clisp.org>

	Tweak last commit.
	* gettext-tools/src/po-gram-gen.y: Move %define declaration after the first code
	block. Add %require declaration.

2020-05-01  Akim Demaille  <akim.demaille@gmail.com>

	Solidify remapping of function names of bison-generated parsers.
	* gettext-tools/src/po-gram-gen.y: Use Bison's api.prefix (introduced in Bison
	2.6) instead of handling renaming by hand.  New symbols would have been not
	renamed.

2020-05-01  Bruno Haible  <bruno@clisp.org>

	Update copyright year.
	* gettext-runtime/intl/plural.y: Update copyright year.

2020-05-01  Bruno Haible  <bruno@clisp.org>

	intl: Require bison 3.0 or newer.
	* gettext-runtime/m4/intl.m4 (gt_INTL_SUBDIR_CORE): Require bison >= 3.0, not
	bison >= 2.7.

2020-05-01  Akim Demaille  <akim.demaille@gmail.com>

	intl: Fix grammar conflicts instead of accepting them.
	The seven conflicts are related to "a ? b : c <op> d".  In all the
	cases we left the S/R conflict be resolved as a shift, i.e., "a ? b
	: (c <op> d)".  To make this explicit, give the rule of the ternary
	operator a very low precedence.  In fact give it the same precedence
	as "?".  Now, to resolve the conflict in "a ? b : c ? d : e" be parsed
	as "a ? b : (c ? d : e)", make them right-associative.

	* gettext-runtime/intl/plural.y: Require Bison 3.0, to use %precedence
	instead of useless associativities such as %right.
	Make '?' and ':' of the same precedence, right associative.

2020-05-01  Bruno Haible  <bruno@clisp.org>

	build: Fix VPATH build failures with old bison when the *.y files are modified.
	* gettext-runtime/intl/Makefile.am (BISON): New variable.
	(YACC): Use it.
	(plural.c): Don't do the post-processing if a suitable version of bison was not
	found.
	* gettext-tools/src/Makefile.am (BISON): New variable.
	(po-gram-gen.c, cldr-plural.c): Don't do the post-processing if a suitable
	version of bison was not found.

2020-05-01  Bruno Haible  <bruno@clisp.org>

	build: Simplify bison detection.
	* autogen.sh (GNULIB_MODULES_RUNTIME_OTHER): Add bison.
	* gettext-runtime/configure.ac: Don't invoke AC_PROG_YACC.
	* gettext-runtime/m4/intl.m4 (gt_INTL_SUBDIR_CORE): Invoke gl_PROG_BISON.

2020-05-01  Bruno Haible  <bruno@clisp.org>

	build: Fix a build failure with bison < 3.0 when cldr-plural.y is modified.
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add bison.
	* gettext-tools/configure.ac: Don't invoke AC_PROG_YACC. Instead, invoke
	gl_PROG_BISON, set YACC, and invoke gl_BISON.

2020-05-01  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2020-05-01  Bruno Haible  <bruno@clisp.org>

	build: Fix link error in tests (regression from 2020-04-26).
	Reported and fix by Akim Demaille <akim.demaille@gmail.com>.

	* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES): Add
	format-ruby.c.

2020-04-27  Bruno Haible  <bruno@clisp.org>

	xgettext: Add Ruby support.
	* gettext-tools/src/x-ruby.h: New file.
	* gettext-tools/src/x-ruby.c: New file.
	* gettext-tools/src/xgettext.h (verbose): New declaration.
	* gettext-tools/src/xgettext.c: Include x-ruby.h.
	(verbose): New declaration.
	(flag_table_ruby): New variable.
	(long_options): Add '--verbose'.
	(main): Update for Ruby. Handle '-v'/'--verbose' option.
	(usage): Document the '-L Ruby' and '-v' options.
	(xgettext_record_flag, language_to_extractor, extension_to_language): Update for
	Ruby.
	* gettext-tools/src/Makefile.am (noinst_HEADERS): Add x-ruby.h.
	(xgettext_SOURCES): Add x-ruby.c.
	* gettext-tools/src/FILES: Mention x-ruby.h, x-ruby.c.
	* gettext-tools/tests/xgettext-ruby-1: New file.
	* gettext-tools/tests/format-ruby-1: New file.
	* gettext-tools/tests/format-ruby-2: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add them.
	* gettext-tools/doc/gettext.texi (Ruby): New section.
	* gettext-tools/doc/xgettext.texi: Document the '-L Ruby' and '-v' options.
	* HACKING: Document the recommended Ruby packages.
	* NEWS: Mention the Ruby support.

2020-04-27  Bruno Haible  <bruno@clisp.org>

	xgettext: Define alternate parser signature for the Ruby support.
	* gettext-tools/src/xgettext.c (extract_from_stream_func): Renamed from
	extractor_func.
	(extract_from_file_func): New type.
	(struct extractor_ty): Rename field func to extract_from_stream. New field
	extract_from_file.
	(main): Consider both fields.
	(xgettext_find_file): New function.
	(extract_from_file): Add alternative code for when the other extraction function
	is defined.
	(language_to_extractor): In the table, rename field func to extract_from_stream,
	and add new field extract_from_file.
	* gettext-tools/src/x-*.h (SCANNERS_*): Update.

2020-04-27  Bruno Haible  <bruno@clisp.org>

	xgettext: Define functions for the Ruby support.
	* gettext-tools/src/xg-message.h (decide_is_format, intersect_range,
	decide_do_wrap, decide_syntax_check): New declarations.
	* gettext-tools/src/xg-message.c (decide_is_format, intersect_range,
	decide_do_wrap, decide_syntax_check): New functions. extracted from
	remember_a_message.
	(remember_a_message): Invoke these functions.

2020-04-27  Bruno Haible  <bruno@clisp.org>

	str-list: Add a remove function.
	* gettext-tools/src/str-list.h (string_list_remove): New declaration.
	* gettext-tools/src/str-list.c (string_list_remove): New function.

2020-04-27  Bruno Haible  <bruno@clisp.org>

	Add support for Ruby format strings.
	* gettext-tools/src/message.h (enum format_type): Add format_ruby.
	* gettext-tools/src/message.c (format_language, format_language_pretty): Add an
	entry for format_ruby.
	(NFORMATS): Increment.
	* gettext-tools/src/format.h (formatstring_ruby): New declaration.
	* gettext-tools/src/format.c (formatstring_parsers): Add an entry for
	format_ruby.
	* gettext-tools/src/format-ruby.c: New file, based on
	gettext-tools/src/format-python.c.
	* gettext-tools/src/FILES: Mention it.
	* gettext-tools/src/Makefile.am (FORMAT_SOURCE): Add format-ruby.c.
	* gettext-tools/doc/gettext.texi (PO Files): Mention ruby-format.
	(ruby-format): New section.

2020-04-27  Bruno Haible  <bruno@clisp.org>

	xgettext: Fix a comment.
	* gettext-tools/src/x-po.c: Fix a comment.

2020-04-27  Bruno Haible  <bruno@clisp.org>

	Reduce heap allocation in format string parsers.
	* gettext-tools/src/format-awk.c (struct spec): Remove 'allocated' field.
	(format_parse): Use a local variable instead.
	* gettext-tools/src/format-boost.c: Likewise.
	* gettext-tools/src/format-elisp.c: Likewise.
	* gettext-tools/src/format-gcc-internal.c: Likewise.
	* gettext-tools/src/format-java-printf.c: Likewise.
	* gettext-tools/src/format-javascript.c: Likewise.
	* gettext-tools/src/format-kde.c: Likewise.
	* gettext-tools/src/format-librep.c: Likewise.
	* gettext-tools/src/format-lua.c: Likewise.
	* gettext-tools/src/format-perl-brace.c: Likewise.
	* gettext-tools/src/format-python.c: Likewise.
	* gettext-tools/src/format-sh.c: Likewise.
	* gettext-tools/src/format-tcl.c: Likewise.
	* gettext-tools/src/format-c-parse.h (struct spec): Remove 'allocated' field.
	(format_parse_entrails): Use a local variable instead.
	* gettext-tools/src/format-pascal.c (struct spec): Remove 'allocated' field.
	(format_parse): Rename a local variable.
	* gettext-tools/src/format-perl.c: Likewise.
	* gettext-tools/src/format-php.c: Likewise.
	* gettext-tools/src/format-gfc-internal.c (format_parse): Rename a local
	variable.

2020-04-27  Bruno Haible  <bruno@clisp.org>

	examples: Improve code style.
	* gettext-tools/examples/hello-*/configure.ac: Improve quoting.

2020-04-27  Bruno Haible  <bruno@clisp.org>

	Update .gitignore after 2020-04-19 change.

2020-04-25  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gettext-runtime/libasprintf/vasnprintf.c: Update from gnulib.

2020-04-20  Bruno Haible  <bruno@clisp.org>

	build: Fix a warning (regression from 2020-01-05).
	* gettext-tools/tests/tstgettext.c (setlocale): Declare after defining as
	fake_setlocale.
	* gettext-tools/tests/tstngettext.c (setlocale): Likewise.
	* gettext-tools/tests/plural-1-prg.c (setlocale): Likewise.
	* gettext-tools/tests/format-c-3-prg.c (setlocale): Likewise.
	* gettext-tools/tests/format-c-4-prg.c (setlocale): Likewise.

2020-04-20  Bruno Haible  <bruno@clisp.org>

	intl: Support any Unicode characters in the locale dir on native Windows.
	Reported at <https://savannah.gnu.org/bugs/?57714>.

	* gettext-runtime/intl/libgnuintl.in.h (libintl_wbindtextdomain): New
	declaration.
	(wbindtextdomain): New redirect.
	* gettext-runtime/intl/bindtextdom.c (set_binding_values): Accept a wdirnamep
	argument. Set not only binding->dirname but also binding->wdirname.
	(BINDTEXTDOMAIN, BIND_TEXTDOMAIN_CODESET): Pass NULL as wdirnamep.
	(libintl_wbindtextdomain): New function.
	* gettext-runtime/intl/loadinfo.h (struct loaded_l10nfile): Add a wfilename
	field.
	(_nl_make_l10nflist): On native Windows, accept wdirlist, wdirlist_len
	parameters.
	* gettext-runtime/intl/loadmsgcat.c (_nl_load_domain): On native Windows, use
	_wopen() instead of open() to open a file with a name given as wchar_t[].
	* gettext-runtime/intl/l10nflist.c: Include <wchar.h>.
	(_nl_make_l10nflist): On native Windows, accept wdirlist, wdirlist_len
	parameters. Construct abs_wfilename and use in the search for existing
	'struct loaded_l10nfile' and when allocating a fresh 'struct loaded_l10nfile'.
	* gettext-runtime/intl/gettextP.h (struct binding): Add a wdirname field.
	(_nl_find_domain): On native Windows, accept a wdirname parameter.
	* gettext-runtime/intl/finddomain.c (_nl_find_domain): On native Windows, accept
	a wdirname parameter. Pass it to _nl_make_l10nflist.
	* gettext-runtime/intl/dcigettext.c (DCIGETTEXT): Consider not only
	binding->dirname but also binding->wdirname. On native Windows, use _wgetcwd
	instead of getcwd. Pass also wdirname to _nl_find_domain.
	* gettext-tools/tests/intl-6: New file, based on gettext-tools/tests/intl-1.
	* gettext-tools/tests/intl-6-prg.c: New file, based on
	gettext-tools/tests/intl-1-prg.c.
	* gettext-tools/tests/Makefile.am (TESTS): Add intl-6.
	(check_PROGRAMS): Add intl-6-prg.
	(intl_6_prg_SOURCES, intl_6_prg_LDADD): New variables.
	* gettext-tools/doc/gettext.texi (Ambiguities, src/Makefile,
	Language Implementors, C): Document wbindtextdomain.
	* gettext-runtime/NEWS: Mention the change.
	* NEWS: Likewise.

2020-04-20  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gettext-runtime/intl/vasnprintf.c: Update from gnulib.

2020-04-20  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2020-04-19  Bruno Haible  <bruno@clisp.org>

	intl: Add comment regarding debugging printf.
	* gettext-runtime/intl/printf.c (ENABLE_WCHAR_FALLBACK): New commented
	definition.

2020-04-14  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Fix a memory leak.
	Reported by José E. Marchesi <jemarch@gnu.org>.

	* libtextstyle/gnulib-local/lib/term-ostream.oo.c (term_ostream::free): Free
	also the stream's attrbuffer.

2020-04-14  Bruno Haible  <bruno@clisp.org>

	Update NEWS files after version 0.20.2 was released.

2020-04-14  Bruno Haible  <bruno@clisp.org>

	Fix typo in release steps.

2020-04-14  Bruno Haible  <bruno@clisp.org>

	Merge from 0.20.x branch: Update translations (from the TP).
	* gettext-runtime/po/*.po: Update.
	* gettext-tools/po/*.po: Update.
	* gettext-tools/examples/po/*.po: Update.
	* gettext-tools/examples/po/LINGUAS: Add 'sq'.
	* gettext-tools/examples/hello-*/po/LINGUAS: Likewise.
	* gettext-tools/examples/Makefile.am (EXAMPLESPOFILES): Add sq.po.

2020-04-14  Bruno Haible  <bruno@clisp.org>

	Merge from 0.20.x branch: examples: Use infrastructure from gettext version 0.20.2.
	* gettext-tools/examples/hello-*/configure.ac: Use AM_GNU_GETTEXT_VERSION with
	version 0.20.2.
	* gettext-tools/examples/hello-c++-kde/configure.in.in: Likewise.

2020-04-14  Bruno Haible  <bruno@clisp.org>

	Merge from 0.20.x branch: Prepare for 0.20.2 release.
	* gettext-runtime/doc/matrix.texi: Update from TP.
	* gettext-runtime/doc/nls.texi (STATUS): Update.
	* gettext-runtime/intl/Makefile.am (LTV_*): Bump to 9:7:1.
	* gettext-runtime/intl/libgnuintl.in.h (LIBINTL_VERSION): Bump.
	* gettext-tools/configure.ac (ARCHIVE_VERSION): Bump to 0.20.2.
	* gettext-tools/libgettextpo/Makefile.am (LTV_*): Bump to 5:6:5.
	* gettext-tools/libgettextpo/gettext-po.in.h (LIBGETTEXTPO_VERSION): Bump.
	* gettext-runtime/src/envsubst.c: Update copyright years in --version output.
	* gettext-runtime/src/gettext.c: Likewise.
	* gettext-runtime/src/gettext.sh.in: Likewise.
	* gettext-runtime/src/ngettext.c: 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/misc/convert-archive.in: Likewise.
	* gettext-tools/misc/gettextize.in: Likewise.
	* gettext-tools/misc/autopoint.in: Likewise. Handle version 0.20.2.

2020-04-14  Bruno Haible  <bruno@clisp.org>

	maint: Update download location of jdom-1.0.jar.

2020-04-14  Bruno Haible  <bruno@clisp.org>

	build: Fix the generation of hello-c-gnome3.pot (regression from 2019-10-04).
	* gettext-tools/examples/po/Makefile.am (USE_BUILT_PROGS): Set also
	GETTEXTDATADIR.

2020-04-13  Bruno Haible  <bruno@clisp.org>

	Fix a compilation error (regression from 2019-12-24).
	* gettext-tools/src/write-desktop.c: Include <stdint.h>.

2020-04-12  Bruno Haible  <bruno@clisp.org>

	intl: Drop argz processing outside of glibc.
	* gettext-runtime/intl/l10nflist.c: Don't test HAVE_ARGZ_H.
	(__argz_count, __argz_stringify, __argz_next): Remove definitions.
	(_nl_make_l10nflist): Simplify !_LIBC case.
	* gettext-runtime/m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for <argz.h>,
	argz_count, argz_stringify, argz_next.

2020-04-12  Bruno Haible  <bruno@clisp.org>

	intl: Improve comments.
	* gettext-runtime/intl/Makefile.am: Add an overview of the code.
	* gettext-runtime/intl/loadinfo.h (_nl_make_l10nflist): Improve comment.
	* gettext-runtime/intl/dcigettext.c (guess_category_value): Likewise.
	* gettext-runtime/intl/finddomain.c (_nl_find_domain): Likewise.

2020-04-11  Bruno Haible  <bruno@clisp.org>

	po: Emit a warning when creating a tarball without POT file.
	* gettext-runtime/po/Makefile.in.in (dist2): Emit a warning when the POT file
	does not exist.
	* gettext-tools/examples/hello-*/po/Makefile.am (distdir1): Likewise.

2020-04-11  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Update .gitignore after 2019-12-24 change.

2020-04-11  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2020-04-10  Bruno Haible  <bruno@clisp.org>

	xgettext: Fix a report by an undefined-behaviour sanitizer.
	Reported by Jeffrey Walton <noloader@gmail.com> in
	<https://lists.gnu.org/archive/html/bug-gettext/2020-01/msg00029.html>.

	* gettext-tools/src/read-properties.c (read_escaped_string): Don't call memcpy
	with a NULL argument.

2020-04-06  Bruno Haible  <bruno@clisp.org>

	xgettext: Improve JSX support in JavaScript.
	Reported by Vaclav Slavik <vaclav@slavik.io> in
	<https://savannah.gnu.org/bugs/?57927>.

	* gettext-tools/src/x-javascript.c (enum token_type_ty): Add some more types.
	(is_after_expression): New function.
	(phase5_get): Distinguish the "other" tokens in more detail. Use
	'is_after_expression ()' when interpreting a '<' or '/' character.
	(extract_balanced): Don't let commas in braced expressions and in XML elements
	disturb the argument processing outside.
	(extract_javascript): Update.
	* gettext-tools/tests/xgettext-javascript-6: Enhance the test.
	* NEWS: Mention the change.

2020-04-06  Bruno Haible  <bruno@clisp.org>

	xgettext: Freshly initialize all static variables for each input file.
	* gettext-tools/src/x-c.c (extract_whole_file): Initialize
	phase1_pushback_length, phase2_pushback_length, phase3_pushback_length,
	phase5_pushback_length, phase6_pushback_length.
	* gettext-tools/src/x-csharp.c (extract_csharp): Initialize
	phase1_pushback_length, phase2_pushback_length, phase3_pushback_length,
	phase5_pushback_length, phase6_pushback_length, phase7_pushback_length.
	* gettext-tools/src/x-java.c (extract_java): Initialize phase1_pushback_length,
	phase2_pushback_length, phase3_pushback_length, phase5_pushback_length,
	phase6_pushback_length.
	* gettext-tools/src/x-javascript.c (continuation_or_nonblank_line,
	last_token_type): Remove static initialization.
	(extract_javascript): Initialize phase1_pushback_length, phase2_pushback_length,
	phase5_pushback_length, last_token_type.
	* gettext-tools/src/x-lua.c (first_character): Change type to 'bool'. Remove
	static initialization.
	(extract_lua): Initialize phase1_pushback_length, first_character,
	phase3_pushback_length, phase4_last, phase4_pushback_length.
	* gettext-tools/src/x-perl.c (extract_perl): Reorder initializations.
	* gettext-tools/src/x-php.c (extract_php): Initialize phase1_pushback_length,
	phase3_pushback_length, phase4_pushback_length.
	* gettext-tools/src/x-python.c (continuation_or_nonblank_line): Remove static
	initialization.
	(extract_python): Initialize phase1_pushback_length, phase2_pushback_length,
	phase5_pushback_length.
	* gettext-tools/src/x-sh.c (extract_sh): Initialize phase1_pushback_length,
	phase2_pushback_length.
	* gettext-tools/src/x-smalltalk.c (extract_smalltalk): Initialize
	phase2_pushback_length, phase3_pushback_length.
	* gettext-tools/src/x-tcl.c (extract_tcl): Initialize phase1_pushback_length,
	phase2_pushback_length.
	* gettext-tools/src/x-vala.c (last_token_type): Remove static initialization.
	(extract_vala): Initialize phase1_pushback_length, phase3_pushback_length,
	last_token_type.
	* gettext-tools/src/x-ycp.c (extract_ycp): Initialize phase2_pushback_length,
	phase5_pushback_length, phase8_pushback_length.

2020-04-05  Bruno Haible  <bruno@clisp.org>

	po, examples: In the .po -> .gmo rules, really consider the newest changes to the POT file.
	Reported by Petr Ovtchenkov <ptr@void-ptr.info> in
	<https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00000.html>.
	Helped by Paul Smith.

	* gettext-runtime/po/Makefile.in.in (.po.gmo): Write dependency on the POT file
	as a target rule, since inference rules don't support prerequisites.
	* gettext-tools/examples/hello-*/po/Makefile.am: Likewise, also for the .po.qm
	rule.
	* NEWS: Mention the fix.

2020-04-04  Bruno Haible  <bruno@clisp.org>

	The gettext library is under LGPL 2.1, not 2.0.
	* gettext-runtime/m4/intl.m4: Fix comments regarding the gettext library.
	* gettext-runtime/m4/intlmacosx.m4: Likewise.
	* gettext-runtime/m4/nls.m4: Likewise.
	* gettext-runtime/m4/po.m4: Likewise.
	* gettext-runtime/m4/progtest.m4: Likewise.

2020-04-04  Bruno Haible  <bruno@clisp.org>

	The next release will be 0.20.2, not 0.21.
	* gettext-runtime/m4/gettext.m4: Update header comment.
	* gettext-runtime/m4/intdiv0.m4: Likewise.
	* gettext-tools/m4/exported.m4: Likewise.

2020-03-29  Bruno Haible  <bruno@clisp.org>

	doc: Don't recommend to use the reserved identifier '_' in Java.
	Reported by Akim Demaille <akim.demaille@gmail.com>.

	* gettext-tools/doc/gettext.texi (Java): Use i18n instead _ as magic identifier.

2020-03-28  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gnulib-local/lib/regex_internal.h.diff: Update.
	* gnulib-local/lib/unistd.in.h.diff: Update.
	* gettext-runtime/intl/filename.h: New file, from gnulib.
	* gettext-runtime/intl/dcigettext.c (ISSLASH, HAS_DEVICE, IS_ABSOLUTE_PATH,
	IS_PATH_WITH_DIR): Remove macros. Instead, include filename.h.
	(IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New
	macros.
	(DCIGETTEXT): Use IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR.
	* gettext-runtime/intl/l10nflist.c (ISSLASH, HAS_DEVICE, IS_ABSOLUTE_PATH):
	Remove macros. Instead, include filename.h.
	(IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
	(_nl_make_l10nflist): Use IS_RELATIVE_FILE_NAME.
	* gettext-runtime/intl/Makefile.am (EXTRA_DIST): Add filename.h.
	(l10nflist.lo, dcigettext.lo): Depend on it.
	* Makefile.am (distcheck-hook): Check also gettext-runtime/intl/filename.h.
	* gettext-runtime/intl/lock.c: Update from gnulib.
	* gettext-runtime/intl/lock.h: Likewise.
	* gettext-runtime/intl/relocatable.c: Likewise.
	* gettext-tools/src/locating-rule.c (locating_rule_list_locate): Use
	IS_RELATIVE_FILE_NAME instead of IS_ABSOLUTE_PATH.
	* gettext-tools/src/open-catalog.c (try_open_catalog_file): Likewise.
	* gettext-tools/src/xgettext.c (main, xgettext_open): Likewise.
	* libtextstyle/lib/color.c (style_file_lookup): Use IS_FILE_NAME_WITH_DIR
	instead of IS_PATH_WITH_DIR.

2020-03-28  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2020-02-24  Bruno Haible  <bruno@clisp.org>

	urlget: Follow the "privacy by design" principle.
	* gettext-tools/src/urlget.c (fetch): Override the User-Agent string, so as not
	to reveal the program version to the server. For wget, use long options.

2020-02-23  Bruno Haible  <bruno@clisp.org>

	urlget: Follow the "privacy by design" principle.
	* gettext-tools/src/gnu/gettext/GetURL.java (fetch): Override the User-Agent
	string, so as not to reveal the Java version to the server.

2020-01-21  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Prepare intermediate release 0.20.5.
	* libtextstyle/version.sh: Update version number.
	* libtextstyle/lib/Makefile.am (LTV_*): Bump to 1:0:1.
	* libtextstyle/NEWS: Update.
	* NEWS: Likewise.

2020-01-05  Bruno Haible  <bruno@clisp.org>

	build: Tweak configure.ac.
	* gettext-runtime/configure.ac: Move AH_BOTTOM invocation, for consistency with
	gettext-tools/configure.ac.

2020-01-05  Bruno Haible  <bruno@clisp.org>

	build: Fix link error on MSVC with --disable-shared.
	* gettext-tools/tests/setlocale.c (setlocale): Define to fake_setlocale on
	native Windows.
	* gettext-tools/tests/format-c-3-prg.c (setlocale): Likewise.
	* gettext-tools/tests/format-c-4-prg.c (setlocale): Likewise.
	* gettext-tools/tests/plural-1-prg.c (setlocale): Likewise.
	* gettext-tools/tests/tstgettext.c (setlocale): Likewise.
	* gettext-tools/tests/tstngettext.c (setlocale): Likewise.

2020-01-05  Bruno Haible  <bruno@clisp.org>

	build: Fix build error on MSVC with --disable-shared.
	* gettext-tools/configure.ac (AH_BOTTOM): On MSVC with --disable-shared, even
	when compiling with option -MD, define DLL_VARIABLE to empty.

2020-01-05  Dmitry V. Levin  <ldv@altlinux.org>

	libtextstyle: Enable large files and, on Linux, 64-bit inodes support.
	* libtextstyle/autogen.sh (GNULIB_MODULES): Add 'largefile' to enable
	large files support on systems where this is not the default and 64-bit
	inodes in 32-bit applications on Linux.

2020-01-05  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.

2020-01-02  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gettext-runtime/intl/localcharset.c: Update from gnulib.
	* gettext-runtime/intl/setlocale-lock.c: Likewise.

2020-01-02  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2019-12-24  Bruno Haible  <bruno@clisp.org>

	Fix a test failure of msgfmt-desktop-2 on HP-UX with cc.
	* gettext-tools/src/write-desktop.c (msgfmt_desktop_handle_pair): Don't cast
	directly from 'void *' to 'bool'.

2019-12-24  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed: Support building with --enable-threads=isoc.
	* gettext-runtime/intl/dcigettext.c (lock): Move outside _nl_find_msg.
	* gettext-runtime/intl/finddomain.c (lock): Move outside _nl_find_domain.
	* gettext-runtime/intl/loadmsgcat.c (lock): Move outside _nl_load_domain.

2019-12-24  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed: Fix test failures on FreeBSD, NetBSD, macOS.
	* gettext-tools/tests/setlocale.c (setlocale): Undefine.

2019-12-24  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC_COMMON_DEPENDENCIES): Add
	setlocale-null.
	* gettext-runtime/intl/localcharset.h: Update from gnulib.
	* gettext-runtime/intl/localcharset.c: Likewise.
	* gettext-runtime/intl/localename.c: Likewise.
	* gettext-runtime/intl/setlocale_null.h: New file, from gnulib.
	* gettext-runtime/intl/arg-nonnull.h: New file, from gnulib.
	* gettext-runtime/intl/setlocale_null.c: New file, from gnulib.
	* gettext-runtime/intl/setlocale-lock.c: New file, from gnulib.
	* gettext-runtime/intl/lock.h: Update from gnulib.
	* gettext-runtime/intl/lock.c: Likewise.
	* gettext-runtime/intl/threadlib.c: Likewise.
	* gettext-runtime/intl/vasnprintf.c: Likewise.
	* gettext-runtime/intl/verify.h: Likewise.
	* gettext-runtime/intl/Makefile.am (EXTRA_DIST): Add arg-nonnull.h,
	setlocale_null.h.
	(LIBINTLSOURCES): Add setlocale-lock.c, setlocale_null.c.
	(setlocale-lock.lo, setlocale_null.lo): New rules.
	(localename.lo, setlocale-lock.lo, setlocale_null.lo): Update dependencies.
	* Makefile.am (distcheck-hook): Check the new files in gettext-runtime/intl/.
	* gettext-runtime/libasprintf/vasnprintf.c: Update from gnulib.
	* gettext-tools/libgettextpo/Makefile.am (DEFS): Define OMIT_SETLOCALE_LOCK.
	* gettext-runtime/NEWS: Mention the multithread-safety fix in localcharset.c.
	* NEWS: Likewise.

2019-12-24  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2019-12-24  Bruno Haible  <bruno@clisp.org>

	Fix test failures on Haiku.
	* gettext-tools/tests/init.cfg (func_filter_POT_Creation_Date): New function.
	* gettext-tools/tests/xgettext-*: Use it.

2019-12-24  Bruno Haible  <bruno@clisp.org>

	build: Fix build failures on HP-UX 11.31/hppa with cc.
	* gnulib-local/lib/libxml/parser.c (struct _xmlDefAttrs): Don't use ISO C 99
	syntax with this compiler.
	* gettext-runtime/intl/plural-exp.h (HAVE_STRUCT_INITIALIZER): Set to 0 with
	this compiler.

2019-12-24  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Don't erase the .sym.in file if 'sed' is not GNU sed.
	* libtextstyle/lib/Makefile.am (libtextstyle.sym.in): Test the exit status of
	the declared.sh command. Preserve the existing libunistring.sym if it failed.

2019-11-25  Bruno Haible  <bruno@clisp.org>

	libcroco: Improve copyright headers.
	The copyright headers should be unambiguous even if a single file is copied from
	the GNU gettext package and used elsewhere. Reported by John Darrington.

	* libtextstyle/gnulib-local/lib/libcroco/*: Inline the COPYRIGHT file where
	applicable. Add copyright header.
	* libtextstyle/gnulib-local/lib/libcroco/libcroco-config.h: Add copyright header.

2019-11-24  Bruno Haible  <bruno@clisp.org>

	libxml: Improve copyright headers.
	The copyright headers should be unambiguous even if a single file is copied from
	the GNU gettext package and used elsewhere. Reported by John Darrington.

	* gnulib-local/lib/libxml/*: Inline this directory's COPYING file where
	applicable. Add FSF copyright header.
	* gnulib-local/lib/libxml/trionan.c: Add copyright header.

2019-11-24  Bruno Haible  <bruno@clisp.org>

	glib: Improve copyright headers.
	The copyright headers should be unambiguous even if a single file is copied from
	the GNU gettext package and used elsewhere. Reported by John Darrington.

	* libtextstyle/gnulib-local/lib/glib*: Add FSF copyright header.

2019-10-28  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Add test for ostream_printf.
	* libtextstyle/gnulib-local/tests/test-memory-ostream.c: New file.
	* libtextstyle/gnulib-local/modules/memory-ostream-tests: New file.
	* libtextstyle/Makefile.am (EXTRA_DIST): Add them.
	* libtextstyle/autogen.sh (GNULIB_MODULES): Add 'memory-ostream-tests'.

2019-10-28  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Add ostream_printf, ostream_vprintf functions.
	Suggested by José Marchesi.

	* libtextstyle/autogen.sh (GNULIB_MODULES): Add 'vasprintf-posix'.
	* libtextstyle/gnulib-local/lib/ostream.oo.h: Include <stdarg.h>.
	(ostream_printf, ostream_vprintf): New declarations.
	* libtextstyle/gnulib-local/lib/ostream.oo.c: Include <stdio.h>.
	(ostream_printf, ostream_vprintf): New functions.
	* libtextstyle/gnulib-local/lib/styled-ostream.oo.h: Update comments.
	* libtextstyle/gnulib-local/lib/term-ostream.oo.h: Likewise.
	* libtextstyle/gnulib-local/lib/html-ostream.oo.h: Likewise.
	* libtextstyle/lib/textstyle.h: Include <stdio.h>.
	(ostream_printf, ostream_vprintf): New functions.
	(styled_ostream_flush_to_current_style, term_ostream_flush_to_current_style,
	html_ostream_flush_to_current_style): Update comments.
	* libtextstyle/doc/libtextstyle.texi (The ostream class): Document
	ostream_printf, ostream_vprintf.
	(The styled_ostream class, The term_ostream class, The html_ostream class):
	Update comments.
	* libtextstyle/NEWS: Mention it.
	* NEWS: Likewise.

2019-10-28  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Clarify memory_stream_contents function.
	* libtextstyle/gnulib-local/lib/memory-ostream.oo.h (memory_stream::contents):
	Clarify extent of return values.
	* libtextstyle/doc/libtextstyle.texi (The memory_ostream class): Likewise.

2019-10-28  Bruno Haible  <bruno@clisp.org>

	build: Fix typo in comment.
	* gettext-tools/gnulib-tests/Makefile.am: Fix typo.
	* libtextstyle/adhoc-tests/Makefile.am: Likewise.
	* libtextstyle/tests/Makefile.am: Likewise.

2019-10-20  Bruno Haible  <bruno@clisp.org>

	doc: Add more info for language implementors.
	* gettext-tools/doc/gettext.texi (Language Implementors): Add more details.

2019-10-13  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gettext-runtime/intl/localcharset.c: Update from gnulib.
	* gettext-runtime/intl/verify.h: Likewise.

2019-10-13  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2019-10-07  Bruno Haible  <bruno@clisp.org>

	doc: Mention continuous integration.
	* HACKING: Mention continuous integration.

2019-10-06  Bruno Haible  <bruno@clisp.org>

	build: Fix failure to build the doc in a VPATH build.
	* gettext-tools/doc/Makefile.am ($(srcdir)/stamp-vti): Create version.texi in
	the source directory.

2019-10-06  Bruno Haible  <bruno@clisp.org>

	xgettext: Fix bug in shell script parser (regression from 2019-09-15).
	* gettext-tools/src/x-sh.c (read_command): Set matters_for_argparser = false
	when context_iter is not being initialized.

2019-10-06  Bruno Haible  <bruno@clisp.org>

	Correct indentation.
	* gettext-tools/src/x-scheme.c (read_object): Correct indentation.

2019-10-05  Bruno Haible  <bruno@clisp.org>

	doc: Mention packages needed for Javascript support.
	* HACKING: Mention the gir1.2-gtk-3.0 package alongside with gjs.

2019-10-04  Bruno Haible  <bruno@clisp.org>

	doc: Don't need an ar_SA locale.
	* HACKING: Remove command that creates an ar_SA locale.

2019-10-04  Bruno Haible  <bruno@clisp.org>

	doc: Update list of external dependencies.
	* DEPENDENCIES: Don't list glib2 and libcroco (not needed any more since
	2019-02-15).

2019-10-04  Bruno Haible  <bruno@clisp.org>

	build: Fix the build error in gettext-tools/examples/po.
	Reported by Nick Alcock <nix@esperi.org.uk>
	at <https://savannah.gnu.org/bugs/?56529>.

	* gettext-tools/examples/po/Makefile.am (USE_BUILT_PROGS): New variable.
	(hello-*.pot): Use it.
	($(srcdir)/../hello-*/po/$(LL).po): Likewise.
	* HACKING: Remove the workaround.

2019-10-04  Bruno Haible  <bruno@clisp.org>

	Make it easier to build the code when the documentation tools don't work.
	* libtextstyle/Makefile.am (SUBDIRS): Move 'doc' to the end.

2019-10-04  Bruno Haible  <bruno@clisp.org>

	libxml: Simplify autoconf macro.
	* gnulib-local/m4/libxml.m4 (gl_LIBXML): Don't test for dlopen and shlload.
	The test for dlopen failed, because it would require linking with '-ldl'.
	The test for shlload failed, because the function on HP-UX is called 'shl_load'
	and it would require linking with '-ldld'.

2019-10-04  Bruno Haible  <bruno@clisp.org>

	build: Don't fetch gnulib a second time in libtextstyle.
	* autogen.sh: Set GNULIB_SRCDIR when invoking libtextstyle/autogen.sh.
	* libtextstyle/autogen.sh: Remove all git operations. Look at the GNULIB_SRCDIR
	environment variable. Ignore the GNULIB_TOOL environment variable.

2019-10-04  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Fix failure to download texinfo.tex.
	* libtextstyle/autogen.sh: Create build-aux directory.

2019-09-30  Bruno Haible  <bruno@clisp.org>

	Update NEWS file.
	* NEWS: Include the news about libtextstyle.

2019-09-29  Bruno Haible  <bruno@clisp.org>

	xgettext: Signal a warning when the same msgid is used with and without plural.
	* gettext-tools/src/xg-message.h (remember_a_message): Add pluralp argument.
	* gettext-tools/src/xg-message.c (remember_a_message): Likewise. Signal a
	warning when the same msgid is used with and without plural.
	* gettext-tools/src/xg-arglist-parser.c (arglist_parser_done): Update
	remember_a_message invocation.
	* gettext-tools/src/xgettext.c (xgettext_its_extract_callback): Update
	remember_a_message invocations.
	* gettext-tools/src/x-awk.c (extract_parenthesized): Likewise.
	* gettext-tools/src/x-c.c (extract_parenthesized): Likewise.
	* gettext-tools/src/x-csharp.c (extract_parenthesized): Likewise.
	* gettext-tools/src/x-desktop.c (extract_desktop_handle_pair): Likewise.
	* gettext-tools/src/x-elisp.c (read_object): Likewise.
	* gettext-tools/src/x-java.c (extract_parenthesized): Likewise.
	* gettext-tools/src/x-javascript.c (extract_balanced): Likewise.
	* gettext-tools/src/x-librep.c (read_object): Likewise.
	* gettext-tools/src/x-lisp.c (read_object): Likewise.
	* gettext-tools/src/x-lua.c (extract_balanced): Likewise.
	* gettext-tools/src/x-perl.c (extract_variable, interpolate_keywords,
	extract_balanced): Likewise.
	* gettext-tools/src/x-php.c (extract_balanced): Likewise.
	* gettext-tools/src/x-python.c (extract_balanced): Likewise.
	* gettext-tools/src/x-rst.c (extract_rst, extract_rsj): Likewise.
	* gettext-tools/src/x-scheme.c (read_object): Likewise.
	* gettext-tools/src/x-sh.c (read_word, read_command): Likewise.
	* gettext-tools/src/x-tcl.c (read_command): Likewise.
	* gettext-tools/src/x-vala.c (extract_balanced): Likewise.
	* gettext-tools/src/x-smalltalk.c (phase3_pushback, phase3_pushback_length): New
	variables.
	(phase3_get): Renamed from x_smalltalk_lex. Handle pushback.
	(phase3_unget): New function.
	(extract_smalltalk): Update remember_a_message invocations through a lookahead
	of one token.
	* gettext-tools/src/x-ycp.c (phase8_pushback, phase8_pushback_length): New
	variables.
	(phase8_get): Handle pushback.
	(phase8_unget): New function.
	(extract_parenthesized): Update remember_a_message invocations through a
	lookahead of one token.
	* gettext-tools/tests/xgettext-15: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2019-09-29  Bruno Haible  <bruno@clisp.org>

	msgcat: Signal error when the same msgid is used with and without msgid_plural.
	Suggested by Mikko Rantalainen <mikko.rantalainen@peda.net>
	in <https://lists.gnu.org/archive/html/bug-gettext/2019-09/msg00020.html>.

	* gettext-tools/src/msgl-cat.c (catenate_msgdomain_list): Signal an error when
	the same msgid is used with and without msgid_plural.
	* gettext-tools/src/msgcat.c (main): Exit with failure code if there was an
	error.
	* gettext-tools/src/msgcomm.c (main): Likewise.
	* gettext-tools/src/msguniq.c (main): Likewise.
	* gettext-tools/tests/msgcat-21: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2019-09-29  Bruno Haible  <bruno@clisp.org>

	libxml: Fix buffer overrun.
	Reported by GCC 8 -Wformat-truncation warning.

	* gnulib-local/lib/libxml/parser.c (xmlParseReference): Increase size of buffer
	'out' to 12 bytes.

2019-09-29  Bruno Haible  <bruno@clisp.org>

	xgettext: Fix parsing of XML tags.
	* gettext-tools/src/x-javascript.c (phase5_get): Fix lexical_context after
	decrementing xml_element_depth.

2019-09-29  Bruno Haible  <bruno@clisp.org>

	xgettext: Fix parsing of XML tags that end in /> and have attributes.
	Reported by Matej Marusak <marusak.matej@gmail.com>
	in <https://savannah.gnu.org/bugs/?56848>.

	* gettext-tools/src/x-javascript.c (phase5_get): After reading a string, reset
	the lexical_context to the previous one, not to lc_outside. When reading /> at
	the end of an XML element, decrement xml_element_depth.
	* gettext-tools/tests/xgettext-javascript-6: Add a test.

2019-09-29  Bruno Haible  <bruno@clisp.org>

	xgettext: Recognize text blocks in Java parser.
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add
	unictype/syntax-java-whitespace.
	* gettext-tools/src/x-java.c: Include unictype.h.
	(strip_indent): New function.
	(phase5_get): Parse text blocks (Java 13 syntax).
	* gettext-tools/tests/xgettext-java-2: Add tests of text blocks.
	* gettext-tools/doc/gettext.texi (Java): Mention the text block syntax.
	* NEWS: Mention the change.

2019-09-29  Bruno Haible  <bruno@clisp.org>

	xgettext: Verify parsing of JavaScript template literals inside objects.
	Reported by Andy Holmes <andrew.g.r.holmes@gmail.com>
	in <https://savannah.gnu.org/bugs/?50920>.

	* gettext-tools/tests/xgettext-javascript-7: Test template literals inside an
	object.

2019-09-16  Bruno Haible  <bruno@clisp.org>

	xgettext: Recognize 'env' and assignments in Shell scripts.
	Reported by Jason Vas Dias <jason.vas.dias@gmail.com>
	in <https://lists.gnu.org/archive/html/bug-gettext/2019-08/msg00032.html>.

	* gettext-tools/src/x-sh.c (enum word_type): Add t_assignment.
	(read_word): Recognize assignments.
	(read_command): In a function position, ignore assignments and 'env' tokens.
	* gettext-tools/tests/xgettext-sh-7: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.
	* NEWS: Mention the change.

2019-09-16  Bruno Haible  <bruno@clisp.org>

	Document improvement done on 2019-05-20.
	* gettext-runtime/NEWS: Document improvement.
	* NEWS: Likewise.

2019-09-14  Bruno Haible  <bruno@clisp.org>

	build: Install gettext.h with the LGPL license header, not with the GPL header.
	Reported by Joachim Metz <joachim.metz@gmail.com>
	in <https://lists.gnu.org/archive/html/bug-gettext/2012-09/msg00000.html>.

	* gettext-tools/gnulib-lib/Makefile.am (gettextsrcdir, gettextsrc_DATA): Remove
	variables.
	* gnulib-local/Makefile.am (gettextsrcdir, gettextsrc_DATA): Define them here.

2019-09-14  Bruno Haible  <bruno@clisp.org>

	Clarify license of gettext.m4.
	* gettext-runtime/m4/gettext.m4: Update comments: libintl is under LGPLv2.1+.

2019-09-14  Bruno Haible  <bruno@clisp.org>

	build: Avoid failing a configure test due to CFLAGS="-Werror".
	Reported by Florian Weimer <fweimer@redhat.com>.

	* gettext-runtime/m4/intdiv0.m4 (gt_INTDIV0): In the test program, include
	<unistd.h>, for the declaration of _exit().

2019-09-01  Bruno Haible  <bruno@clisp.org>

	build: Add support for shallow-cloning of subdirectories.
	* gitsub.sh (func_usage): Document allowed git options with 'git pull'.
	(func_pull): Accept GIT_OPTIONS argument.
	(pull): Parse git options before complaining about too many arguments.
	Pass the git options to func_pull.

2019-08-25  Bruno Haible  <bruno@clisp.org>

	xgettext: Assume that Python source files are in UTF-8 by default.
	Reported by ilias iliadis <apiuano-bugs@yahoo.gr>
	at <https://savannah.gnu.org/bugs/?55231>.

	* gettext-tools/src/xg-encoding.h (xgettext_global_source_encoding): Allow a
	NULL value.
	* gettext-tools/src/xg-encoding.c (xgettext_global_source_encoding): Likewise.
	* gettext-tools/src/xgettext.c (main): Initialize
	xgettext_global_source_encoding with NULL, not "ASCII". Handle a NULL
	xgettext_global_source_encoding.
	(extract_from_file): Use ASCII as default for xgettext_global_source_encoding.
	* gettext-tools/src/x-javascript.c (extract_javascript): Likewise.
	* gettext-tools/src/x-python.c (phase2_getc): Signal an error when encountering
	an invalid or incomplete UTF-8 character.
	(set_current_file_source_encoding): In the error message, use
	xgettext_current_file_source_encoding instead of
	xgettext_global_source_encoding.
	(extract_python): Use UTF-8 as default for xgettext_global_source_encoding.
	* gettext-tools/tests/xgettext-python-3: Verify that if the source file has no
	magic coding comment but is UTF-8 encoded, xgettext succeeds.
	* NEWS: Mention the change.

2019-08-25  Bruno Haible  <bruno@clisp.org>

	Add support for Java format strings in the Formatter syntax.
	* gettext-tools/src/message.h (format_type): Add format_java_printf.
	(NFORMATS): Increment.
	* gettext-tools/src/message.c (format_language, format_language_pretty): Add
	entry for format_java_printf.
	* gettext-tools/src/format.h (formatstring_java_printf): New declaration.
	* gettext-tools/src/format-java.c: Update comments.
	* gettext-tools/src/format-java-printf.c: New file.
	* gettext-tools/src/format.c (formatstring_parsers): Add entry for
	format_java_printf.
	* gettext-tools/src/x-java.h (SCANNERS_JAVA): Use formatstring_java_printf.
	* gettext-tools/src/x-java.c (init_flag_table_java): Add entries relevant to
	format strings in Formatter syntax.
	* gettext-tools/src/xgettext.c (xgettext_record_flag): Add support for
	format_java_printf.
	* gettext-tools/src/FILES: Add format-java-printf.c.
	* gettext-tools/src/Makefile.am (FORMAT_SOURCE): Add format-java-printf.c.
	* gettext-tools/woe32dll/gettextsrc-exports.c: Export formatstring_java_printf.
	* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES): Likewise.
	* gettext-tools/tests/xgettext-6 (xg-test6.java): Add test for recognition of
	format strings in Formatter syntax.
	* gettext-tools/tests/format-java-printf-1: New file.
	* gettext-tools/tests/format-java-printf-2: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add them.
	* gettext-tools/tests/lang-java: Add two uses of String.format to the program.
	* gettext-tools/doc/gettext.texi (PO Files): Document java-printf-format and
	no-java-printf-format.
	(java-format): Describe both kinds of format strings. Update URLs.
	(Java): Mention the second kind of format string as well.
	* NEWS: Mention the improvement.

2019-08-25  Bruno Haible  <bruno@clisp.org>

	tests: Remove comments about GCJ.
	We don't support GCJ any more since 2017-05-04.

	* gettext-tools/tests/lang-java: Remove comment about failure with GCJ.
	* gettext-tools/tests/msgunfmt-java-1: Likewise.

2019-08-25  Bruno Haible  <bruno@clisp.org>

	Update compile-command in comments.
	* gettext-tools/src/format-*.c: Fix -I options in compile-command.

2019-08-25  Bruno Haible  <bruno@clisp.org>

	desktop: Small parser fix.
	* gettext-tools/src/read-desktop.c (desktop_lex): Fix handling of control
	characters in group names.

2019-08-25  Bruno Haible  <bruno@clisp.org>

	code style: Avoid gratuitous 'continue;' statements.
	* gettext-tools/src/file-list.c (read_names_from_file): Use 'if' instead of
	'continue'.
	* gettext-tools/src/its.c (its_rule_list_add_from_doc): Likewise.
	* gettext-tools/src/locating-rule.c (locating_rule_list_add_from_file):
	Likewise.
	* gettext-tools/src/msgfmt.c (get_languages): Likewise.
	* gettext-tools/src/x-javascript.c (phase5_scan_xml_markup): Likewise.
	* gettext-tools/src/x-lua.c (phase2_getc): Likewise.
	* gettext-tools/src/read-desktop.c (desktop_lex): Use 'if' instead of 'switch'
	with few alternatives. Test for EOF first.

2019-08-24  Bruno Haible  <bruno@clisp.org>

	autogen.sh: Make more reliable.
	* autogen.sh: Really bail out if gnulib-tool fails to copy config.{guess,sub}.

2019-08-22  Bruno Haible  <bruno@clisp.org>

	xgettext: Handle newlines in Lua long bracket literal strings correctly.
	Reported by Frans de Jonge <fransdejonge@gmail.com>
	at <https://savannah.gnu.org/bugs/?56794>.

	* gettext-tools/src/x-lua.c (phase3_get): Test for EOF first. After an opening
	long bracket, swallow one newline.
	* gettext-tools/tests/xgettext-lua-1: Add tests for newlines in long brackets.
	* gettext-tools/tests/xgettext-lua-2: Update comment.

2019-08-19  Bruno Haible  <bruno@clisp.org>

	xgettext: Recognize gettext -e invocations in shell parser.
	Reported by Eugene V. Lyubimkin <jackyf.devel@gmail.com>
	in <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=507091>.

	* gettext-runtime/src/escapes.h: New file, extracted from
	gettext-runtime/src/gettext.c.
	* gettext-runtime/src/gettext.c: Include escapes.h.
	(expand_escape): Remove function.
	(inhibit_added_newline): New variable.
	(add_newline): Remove variable.
	(main): Initialize inhibit_added_newline. Invoke expand_escapes instead of
	expand_escape.
	* gettext-runtime/src/ngettext.c: Include escapes.h.
	(expand_escape): Remove function.
	(main): Invoke expand_escapes instead of expand_escape.
	* gettext-runtime/src/Makefile.am (gettext_SOURCES, ngettext_SOURCES): Add
	escapes.h.
	* gettext-tools/tests/tstgettext.c: Include escapes.h.
	(expand_escape): Remove function.
	(inhibit_added_newline): New variable.
	(add_newline): Remove variable.
	(main): Initialize inhibit_added_newline. Invoke expand_escapes instead of
	expand_escape.
	* gettext-tools/tests/Makefile.am (tstgettext_SOURCES): Add escapes.h.
	* gettext-tools/src/x-sh.c: Include escapes.h.
	(read_command): Recognize a '-e' option in the argument list of gettext and
	ngettext.
	* gettext-tools/src/Makefile.am (xgettext_SOURCES): Add escapes.h.
	* gettext-tools/tests/xgettext-sh-1: Test the recognition of gettext -e
	arguments.
	* NEWS: Mention the change.

2019-08-19  Bruno Haible  <bruno@clisp.org>

	doc: Fix documentation of gettext, ngettext programs.
	* gettext-runtime/doc/rt-gettext.texi: Clarify when the additional newline is
	emitted.
	* gettext-runtime/doc/rt-ngettext.texi: Remove '\c' from the list of recognized
	escape sequences.

2019-08-19  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gettext-runtime/intl/localcharset.c: Update from gnulib.
	* gettext-runtime/intl/verify.h: Likewise.

2019-08-19  Bruno Haible  <bruno@clisp.org>

	gettext, ngettext: Fix the expansion of '\\' and octal escape sequences.
	* gettext-runtime/src/gettext.c (expand_escape): Don't swallow the expansion
	of '\\' and octal escape sequences.
	* gettext-runtime/src/ngettext.c (expand_escape): Likewise.
	* gettext-tools/tests/tstgettext.c (expand_escape): Likewise.
	* NEWS: Mention the change.

2019-08-19  Bruno Haible  <bruno@clisp.org>

	xgettext: Fix parsing of escaped single-quote characters in shell parser.
	Reported by Markus Gothe <nietzsche@lysator.liu.se>
	at <https://savannah.gnu.org/bugs/?49809>.

	* gettext-tools/src/x-sh.c (phase2_getc): Handle the case c == '\''
	&& !open_singlequote && !open_doublequote differently.
	* gettext-tools/tests/xgettext-sh-1: Add test with an escape single-quote.

2019-08-19  Bruno Haible  <bruno@clisp.org>

	xgettext: Fix endless loop in shell parser.
	Reported by Hanno Boeck at <https://savannah.gnu.org/bugs/?45408>.
	Based on patch by Daiki Ueno.

	* gettext-tools/src/x-sh.c (read_word): React on CLOSING_BACKQUOTE even when we
	are currently not looking for a closing backquote.

2019-08-18  Bruno Haible  <bruno@clisp.org>

	build: Don't use an obsolete libtool macro.
	* gettext-tools/m4/exported.m4 (gt_GLOBAL_SYMBOL_PIPE): Require
	_LT_CMD_GLOBAL_SYMBOLS, not AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE.

2019-08-18  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2019-08-18  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Fix VPATH build (regression from yesterday).
	* libtextstyle/lib/Makefile.am (AM_CPPFLAGS): Search also the glib subdirectory
	of the build dir.

2019-08-18  Bruno Haible  <bruno@clisp.org>

	Don't extract Icon values from .desktop files into POT files.
	Reported by Piotr Drąg <piotrdrag@gmail.com>
	at <https://savannah.gnu.org/support/?108887>
	and by Will Thompson <wjt@endlessm.com>
	at <https://savannah.gnu.org/bugs/?56543>.

	There was a discussion starting at
	<https://lists.freedesktop.org/archives/xdg/2019-June/014158.html>.
	The most interesting posts in this thread were
	<https://lists.freedesktop.org/archives/xdg/2019-June/014164.html>
	<https://lists.freedesktop.org/archives/xdg/2019-June/014167.html>.

	* gettext-tools/doc/gettext.texi (Icons): New subsubsection.
	* gettext-tools/src/read-desktop.c (desktop_add_default_keywords): Don't add
	"Icon".
	* gettext-tools/src/x-desktop.c: Update comments.
	* gettext-tools/doc/xgettext.texi (Desktop): Remove 'Icon' from the list of
	extracted keys.
	* gettext-tools/tests/xgettext-desktop-2: New file.
	* gettext-tools/tests/msgfmt-desktop-3: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add them.
	* NEWS: Mention the change.

2019-08-18  Bruno Haible  <bruno@clisp.org>

	maint: Document how to deal with the build error in gettext-tools/examples/po.
	Reported by Nick Alcock <nix@esperi.org.uk>
	at <https://savannah.gnu.org/bugs/?56529>.

	* HACKING (Building off the Git repository): Explain the common build error and
	how to fix it.

2019-08-17  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Upgrade to libcroco-0.6.13.
	This fixes a couple of warnings.

	Reported by Frank Hunleth <fhunleth@troodon-software.com>
	at <https://savannah.gnu.org/bugs/?55356>.

	* libtextstyle/gnulib-local/lib/libcroco/*: Upgrade to version 0.6.13.
	* libtextstyle/gnulib-local/modules/libcroco: Update.
	* libtextstyle/gnulib-local/lib/glib/gmacros.in.h: New file, based on
	glib-2.12.4/glib/gmacros.h.
	* libtextstyle/gnulib-local/lib/glib/gprintfint.in.h: New file, based on
	glib-2.12.4/glib/gprintfint.h.
	* libtextstyle/Makefile.am (EXTRA_DIST): Add them.
	* libtextstyle/gnulib-local/m4/libglib.m4 (gl_LIBGLIB): Add glib/gmacros.h and
	glib/gprintfint.h to LIBGLIB_H.
	* libtextstyle/gnulib-local/modules/libglib (Files): Add lib/glib/gmacros.in.h,
	lib/glib/gprintfint.in.h.
	(Depends-on): Add snprintf-posix.
	(glib/gmacros.h, glib/gprintfint.h): New rules.
	(MOSTLYCLEANFILES): Add glib/gmacros.h, glib/gprintfint.h.
	* libtextstyle/gnulib-local/lib/glib.in.h: Include glib/gmacros.h.
	* libtextstyle/gnulib-local/lib/glib/gstrfuncs.in.h (g_ascii_dtostr,
	g_ascii_formatd, g_ascii_strcasecmp): Enable declarations.
	* libtextstyle/gnulib-local/lib/glib/gstrfuncs.c: Include gprintfint.h.
	(g_ascii_dtostr, g_ascii_formatd): Enable.
	(ISSPACE, ISUPPER, ISLOWER, ISALPHA, TOUPPER, TOLOWER): Move out of function
	g_parse_long_long.
	(g_ascii_strcasecmp): Enable.

2019-08-14  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Document the hyperlink support.
	* libtextstyle/doc/libtextstyle.texi (The NO_TERM_HYPERLINKS variable): New
	section.
	(Hyperlinks): New subsection.
	(The abstract styled_ostream class): Document styled_ostream_get_hyperlink_ref,
	styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink.
	(The term_ostream class): Document term_ostream_get_hyperlink_ref,
	term_ostream_get_hyperlink_id, term_ostream_set_hyperlink.
	(The html_ostream class): Document html_ostream_get_hyperlink_ref,
	html_ostream_set_hyperlink_ref.
	* libtextstyle/NEWS: Mention it.

2019-08-14  Bruno Haible  <bruno@clisp.org>

	libtextstyle: styled-ostream: Add hyperlink support.
	* libtextstyle/gnulib-local/lib/styled-ostream.oo.h (struct styled_ostream): Add
	methods get_hyperlink_ref, get_hyperlink_id, set_hyperlink.
	* libtextstyle/gnulib-local/lib/term-styled-ostream.oo.c
	(term_styled_ostream::get_hyperlink_ref, term_styled_ostream::get_hyperlink_id,
	term_styled_ostream::set_hyperlink): New functions.
	* libtextstyle/gnulib-local/lib/html-styled-ostream.oo.c
	(struct html_styled_ostream): Add field hyperlink_id.
	(html_styled_ostream::free): Free the hyperlink_id field.
	(html_styled_ostream::get_hyperlink_ref, html_styled_ostream::get_hyperlink_id,
	html_styled_ostream::set_hyperlink): New functions.
	(html_styled_ostream_create): Initialize the hyperlink_id field.
	* libtextstyle/gnulib-local/lib/noop-styled-ostream.oo.c
	(struct noop_styled_ostream): Add fields hyperlink_ref, hyperlink_id.
	(noop_styled_ostream::free): Free the hyperlink_ref and hyperlink_id fields.
	(noop_styled_ostream::get_hyperlink_ref, noop_styled_ostream::get_hyperlink_id,
	noop_styled_ostream::set_hyperlink): New functions.
	(noop_styled_ostream_create): Initialize the hyperlink_ref and hyperlink_id
	fields.
	* libtextstyle/lib/textstyle.h (styled_ostream_get_hyperlink_ref,
	styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
	term_styled_ostream_get_hyperlink_ref, term_styled_ostream_get_hyperlink_id,
	term_styled_ostream_set_hyperlink, html_styled_ostream_get_hyperlink_ref,
	html_styled_ostream_get_hyperlink_id, html_styled_ostream_set_hyperlink,
	noop_styled_ostream_get_hyperlink_ref, noop_styled_ostream_get_hyperlink_id,
	noop_styled_ostream_set_hyperlink): New declarations.
	* libtextstyle/adhoc-tests/hello.c (main): Invoke styled_ostream_set_hyperlink.

2019-08-14  Bruno Haible  <bruno@clisp.org>

	libtextstyle: html-ostream: Add hyperlink support.
	* libtextstyle/gnulib-local/lib/html-ostream.oo.h (struct html_ostream): Add
	methods get_hyperlink_ref, set_hyperlink_ref.
	* libtextstyle/gnulib-local/lib/html-ostream.oo.c (struct html_ostream): Add
	field hyperlink_ref;
	(write_attribute_value): New function.
	(html_ostream::free): Emit an anchor end if needed.
	(html_ostream::get_hyperlink_ref, html_ostream::set_hyperlink_ref): New
	functions.
	(html_ostream_create): Initialize the hyperlink_ref field.
	* libtextstyle/lib/textstyle.h (html_ostream_get_hyperlink_ref,
	html_ostream_set_hyperlink_ref): New declarations.

2019-08-14  Bruno Haible  <bruno@clisp.org>

	libtextstyle: term-ostream: Add hyperlink support.
	* libtextstyle/gnulib-local/lib/term-ostream.oo.h (struct term_ostream): Add
	methods get_hyperlink_ref, get_hyperlink_id, set_hyperlink.
	* libtextstyle/gnulib-local/lib/term-ostream.oo.c: Include <stdint.h>,
	<sys/time.h>, get_ppid_of.h, get_progname_of.h, xgethostname.h.
	(hyperlink_t): New type.
	(free_hyperlink): New function.
	(attributes_t): Add 'hyperlink' field.
	(equal_attributes): Compare also the 'hyperlink' field.
	(struct term_ostream): Add fields supports_hyperlink, restore_hyperlink,
	hostname_hash, start_time, id_serial, hyperlinks_array, hyperlinks_count,
	hyperlinks_allocated, active_attr_hyperlink.
	(simplify_attributes): Deal with 'hyperlink' field.
	(generate_hyperlink_id): New function.
	(out_hyperlink_change): New function.
	(out_attr_change): Set active_attr_hyperlink. Invoke out_hyperlink_change.
	(restore, async_restore): Use stream->restore_hyperlink.
	(async_set_attributes_from_default): Invoke out_hyperlink_change.
	(output_buffer): At the end, free the unused hyperlink_t objects.
	(term_ostream::free): Free the hyperlinks_array and its contents.
	(term_ostream::get_hyperlink_ref, term_ostream::get_hyperlink_id,
	term_ostream::set_hyperlink): New functions.
	(get_terminal_emulator_progname, should_enable_hyperlinks): New functions.
	(term_ostream_create): Set the fields supports_hyperlink, restore_hyperlink,
	hostname_hash, start_time, id_serial, hyperlinks_array, hyperlinks_count,
	hyperlinks_allocated.
	* libtextstyle/gnulib-local/m4/term-ostream.m4 (gl_TERM_OSTREAM): Test for
	getsid function.
	* libtextstyle/gnulib-local/modules/term-ostream (Depends-on): Add gettimeofday,
	get_ppid_of, get_progname_of, stdint, xgethostname.
	* libtextstyle/lib/textstyle.h (term_ostream_get_hyperlink_ref,
	term_ostream_get_hyperlink_id, term_ostream_set_hyperlink): New declarations.

2019-08-14  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2019-08-14  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Support the NO_COLOR environment variable.
	It follows the specification at https://no-color.org/.

	The support is in the example programs, not in the function
	styled_ostream_create, so that it can be overridden through the command-line
	option --color=always.

	We only test whether the environment variable is set, not whether its value
	is non-empty. POSIX-specified environment variables are treated like unset
	when their value is empty; this is because in the old days it was not possible
	to unset an environment variable. But nowadays:
	  - all shells support the 'unset' built-in,
	  - all platforms that have the setenv() function also have the unsetenv()
	    function, and
	  - the 'env' program from GNU coreutils supports --unset=VARIABLE to unset a
	    variable.
	This makes it possible to unset an environment variable that is set by the
	parent process.

	* libtextstyle/adhoc-tests/hello.c (main): Do not emit styling when the
	environment variable NO_COLOR is set.
	* libtextstyle/examples/color-filter/filter.c (main): Likewise.
	* libtextstyle/examples/color-hello/hello.c (main): Likewise.
	* gettext-tools/src/write-catalog.c (msgdomain_list_print): Likewise.
	* libtextstyle/doc/libtextstyle.texi (The NO_COLOR variable): New section.
	* libtextstyle/NEWS: Mention it.

2019-08-12  Bruno Haible  <bruno@clisp.org>

	xalloc: Add x2realloc function, from gnulib.
	* gnulib-local/lib/xalloc.h (x2realloc): New declaration, from
	gnulib/lib/xalloc.h.
	* gnulib-local/lib/xmalloc.c (x2nrealloc): New function, from
	gnulib/lib/xalloc.h.
	(x2realloc): New function, from gnulib/lib/xmalloc.c.
	* gnulib-local/modules/xalloc (configure.ac): Require AC_C_INLINE.

2019-08-12  Bruno Haible  <bruno@clisp.org>

	Drop our xalloc_oversized macro in favour of gnulib's xalloc_oversized macro.
	* gnulib-local/lib/xalloc.h: Include xalloc-oversized.h.
	(xalloc_oversized): Remove macro.
	* gnulib-local/modules/xalloc (Depends-on): Add 'xalloc-oversized'.

2019-07-28  Bruno Haible  <bruno@clisp.org>

	xgettext: Fix parsing of JavaScript template literals inside functions.
	Reported by Dmitry Vinnik <vinnik.dmitry07@gmail.com>
	in <https://savannah.gnu.org/bugs/?56678>.

	* gettext-tools/src/x-javascript.c (brace_depths, brace_depths_alloc): New
	variables.
	(brace_depth): Remove variable.
	(new_brace_depth_level): New function.
	(phase5_get): Invoke it. Access the top of the brace_depths stack.
	(extract_javascript): Don't set brace_depth. Invoke new_brace_depth_level
	instead.
	* gettext-tools/tests/xgettext-javascript-7: Test template literals inside a
	function.

2019-07-28  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2019-07-21  Bruno Haible  <bruno@clisp.org>

	Fix test failure on MSVC.
	* gettext-tools/tests/lang-c++: On MSVC, use <iostream>, not <iostream.h>.

2019-07-21  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC_COMMON_DEPENDENCIES): Add
	windows-rwlock.
	* gettext-runtime/intl/windows-rwlock.h: New file, from gnulib.
	* gettext-runtime/intl/windows-rwlock.c: New file, from gnulib.
	* gettext-runtime/intl/windows-initguard.h: New file, from gnulib.
	* gettext-runtime/intl/windows-spinlock.h: Remove file.
	* gettext-runtime/intl/lock.h: Update from gnulib.
	* gettext-runtime/intl/lock.c: Likewise.
	* gettext-runtime/intl/verify.h: Likewise.
	* gettext-runtime/intl/windows-mutex.h: Likewise.
	* gettext-runtime/intl/windows-recmutex.h: Likewise.
	* gettext-runtime/intl/Makefile.am (EXTRA_DIST): Add windows-rwlock.h,
	windows-initguard.h. Remove windows-spinlock.h.
	(LIBINTLSOURCES): Conditionally add windows-rwlock.c.
	(windows-rwlock.lo): New rule.
	(*.lo): Update dependencies.
	* Makefile.am (distcheck-hook): Check that gettext-runtime/intl/windows-*.[hc]
	are up-to-date.
	* gnulib-local/lib/libxml/threads.c: Test HAVE_PTHREAD_H, HAVE_WIN32_THREADS,
	HAVE_BEOS_THREADS only if LIBXML_THREAD_ENABLED is defined; otherwise use a
	fallback suitable for single-threaded applications.

2019-07-20  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2019-07-19  Bruno Haible  <bruno@clisp.org>

	build: Avoid warnings from bison versions >= 3.3.
	Reported by Bernhard Voelker <mail@bernhard-voelker.de>.

	* gettext-runtime/intl/Makefile.am (YACC): Remove option '-y'.

2019-07-19  Bruno Haible  <bruno@clisp.org>

	intl: Make autoconf macro more robust.
	Reported by Bernhard Voelker <mail@bernhard-voelker.de>.

	* gettext-runtime/m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't make assumptions about
	the version numbers of future Bison versions.

2019-07-17  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Fix link error when compiled with GCC 3.3.x.
	Reported by Jeffrey Walton <noloader@gmail.com>.

	* gnulib-local/lib/libxml/timsort.h (CLZ): Don't define based on __builtin_clzll
	in GCC versions < 3.4.

2019-07-07  Bruno Haible  <bruno@clisp.org>

	intl: Don't export the glwthread* symbols from libintl on native Windows.
	* gettext-runtime/intl/Makefile.am (OTHER_LDFLAGS): Add an -export-symbols-regex
	option.

2019-07-04  Bruno Haible  <bruno@clisp.org>

	build: Fix build errors with MSVC.
	* gettext-tools/src/lang-table.h (language_table, language_variant_table):
	Declare with C linkage.
	* gettext-tools/src/read-po.h (input_format_po): Likewise.
	* gettext-tools/src/read-properties.h (input_format_properties): Likewise.
	* gettext-tools/src/read-stringtable.h (input_format_stringtable): Likewise.
	* gettext-tools/src/write-properties.h (output_format_properties): Likewise.
	* gettext-tools/src/write-stringtable.h (output_format_stringtable): Likewise.

2019-07-04  Bruno Haible  <bruno@clisp.org>

	build: Fix build error with MSVC.
	* gettext-runtime/intl/Makefile.am (INTL_WINDOWS_LIBS): New variable.
	(OTHER_LDFLAGS): Add it.

2019-07-04  Bruno Haible  <bruno@clisp.org>

	build: Fix build error with MSVC.
	* gettext-runtime/intl/export.h (LIBINTL_DLL_EXPORTED): Define differently for
	MSVC.

2019-07-04  Bruno Haible  <bruno@clisp.org>

	build: Fix build errors with MSVC.
	* gettext-tools/libgettextpo/exported.sh.in: Remove one level of eval.
	* gettext-tools/libgettextpo/Makefile.am (config.h): Redirect compiler output to
	stderr. Remove symbols that contain an '@'.
	* libtextstyle/lib/Makefile.am (config.h): Likewise.

2019-07-04  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC_COMMON_DEPENDENCIES): Add
	windows-mutex, windows-once, windows-recmutex.
	* gettext-runtime/m4/flexmember.m4: Update from gnulib.
	* gettext-runtime/intl/flexmember.h: Likewise.
	* gettext-runtime/intl/localcharset.c: Likewise.
	* gettext-runtime/intl/windows-mutex.h: New file, from gnulib.
	* gettext-runtime/intl/windows-mutex.c: New file, from gnulib.
	* gettext-runtime/intl/windows-once.h: New file, from gnulib.
	* gettext-runtime/intl/windows-once.c: New file, from gnulib.
	* gettext-runtime/intl/windows-recmutex.h: New file, from gnulib.
	* gettext-runtime/intl/windows-recmutex.c: New file, from gnulib.
	* gettext-runtime/intl/windows-spinlock.h: New file, from gnulib.
	* gettext-runtime/intl/lock.h: Update from gnulib.
	* gettext-runtime/intl/lock.c: Likewise.
	* gettext-runtime/intl/Makefile.am (EXTRA_DIST): Add windows-*.h.
	(LIBINTLSOURCES): Conditionally add windows-*.c.
	(windows-mutex.lo, windows-recmutex.lo, windows-once.lo): New rules.
	(*.lo): Update dependencies.
	* gettext-runtime/configure.ac: New condition WINDOWS_NATIVE.
	* gettext-tools/configure.ac: Likewise.
	* Makefile.am (distcheck-hook): Check that gettext-runtime/intl/windows-*.[hc]
	are up-to-date.

2019-07-04  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2019-05-20  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gettext-runtime/intl/setlocale.c (search): Optimize away a redundant strcmp()
	invocation.
	(locales_with_principal_territory): New array.
	(langcmp, get_main_locale_with_same_language): New functions.
	(locales_with_principal_language): New array.
	(terrcmp, get_main_locale_with_same_territory): New functions.
	(rpl_setlocale): When setlocale_single failed, try again with a locale that is
	more likely to exist. Don't warn if the environment variable SETLOCALE_VERBOSE
	is not set.

2019-05-20  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gettext-runtime/m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for
	CFLocaleCopyCurrent.
	* gettext-runtime/intl/localename.c: Remove includes for
	HAVE_CFLOCALECOPYCURRENT.
	(gl_locale_name_environ, gl_locale_name_default): Remove code for
	HAVE_CFLOCALECOPYCURRENT.

2019-05-20  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2019-05-20  Bruno Haible  <bruno@clisp.org>

	msginit: Define default territory for some more languages.
	* gettext-tools/src/msginit.c (catalogname_for_locale): Add information about
	Bislama, Kyrgyz, Mauritian Creole, Chichewa, Kinyarwanda, Tok Pisin.

2019-05-20  Bruno Haible  <bruno@clisp.org>

	Update a country name.
	* gettext-tools/doc/ISO_3166: Write "North Macedonia", not "Macedonia".
	* gettext-tools/doc/iso-3166.texi: Likewise.
	* gettext-tools/src/msginit.c (catalogname_for_locale): Likewise.

2019-05-20  Bruno Haible  <bruno@clisp.org>

	build: Avoid endless "config.status --recheck" loop (regression from yesterday).
	* gettext-tools/configure.ac: Use AC_MSG_WARN instead of AC_MSG_ERROR.

2019-05-20  Bruno Haible  <bruno@clisp.org>

	intl: Work around setlocale bug on Android 4.3.
	* gettext-runtime/intl/setlocale.c (setlocale_unixlike): New wrapper for
	Android.

2019-05-19  Bruno Haible  <bruno@clisp.org>

	msgmerge: Fix behaviour of --for-msgfmt on PO files with no translations.
	Reported by Don Lawrence <dlawrence@iecok.com>
	in <https://lists.freedesktop.org/archives/p11-glue/2019-May/000700.html>
	via Daiki Ueno
	in <https://lists.gnu.org/archive/html/bug-gettext/2019-05/msg00124.html>.

	* gettext-tools/src/msgmerge.c (main): Treat force_po like true if for_msgfmt
	is true.
	* gettext-tools/tests/msgmerge-26: Add test of PO file with no translations.

2019-05-19  Bruno Haible  <bruno@clisp.org>

	build: Restore the ability to build gettext-tools separately, part 2.
	* gettext-tools/configure.ac: New option --with-installed-csharp-dll.
	(USE_INSTALLED_CSHARP_DLL): New conditional.
	* gettext-tools/src/Makefile.am (CSHARP_DLL_DIR): New variable.
	(msgunfmt.net.exe): Use it.
	* configure.ac: Filter out --with-installed-csharp-dll from inherited --help
	output.
	* PACKAGING: Document that gettext-tools's configure needs to be invoked with
	--with-installed-csharp-dll.

2019-05-19  Bruno Haible  <bruno@clisp.org>

	build: Restore the ability to build gettext-tools separately, part 1.
	Reported by Hanspeter Niederstrasser <nieder@users.sourceforge.net>
	in <https://savannah.gnu.org/bugs/?56333>.

	Code based on patch by Miguel Ángel Arruga Vivas <rosen644835@gmail.com>.

	* autogen.sh: Copy libtextstyle.m4 for use by gettext-tools.
	* gettext-tools/configure.ac: New option --with-installed-libtextstyle.
	(USE_INSTALLED_LIBTEXTSTYLE): New conditional.
	* gettext-tools/src/Makefile.am (textstyle.h): Disable rule if
	USE_INSTALLED_LIBTEXTSTYLE is true.
	(LT_LIBTEXTSTYLE): New variable.
	(libgettextsrc_la_LDFLAGS): Use it instead of hardcoding a relative filename of
	libtextstyle.la.
	* configure.ac: Filter out --with-installed-libtextstyle from inherited --help
	output.
	* Makefile.am (distcheck-hook): Compare different copies of libtextstyle.m4.
	* PACKAGING: Document that gettext-tools's configure needs to be invoked with
	--with-installed-libtextstyle.

2019-05-19  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Complete commit from 2019-04-28.
	* libtextstyle/Makefile.am (EXTRA_DIST): Add
	test-term-ostream-xterm-freebsd-italic.out.

2019-05-19  Bruno Haible  <bruno@clisp.org>

	build: Avoid the use of mingw winpthreads for multithreading.
	* gettext-runtime/configure.ac: Invoke gl_AVOID_WINPTHREAD.
	* gettext-tools/configure.ac: Likewise.

2019-05-19  Bruno Haible  <bruno@clisp.org>

	Update to the newest gnulib.

2019-05-18  Bruno Haible  <bruno@clisp.org>

	build: Avoid trouble on mingw caused by mingw's *printf functions.
	Reported by Michele Locati <michele@locati.it>
	in <https://lists.gnu.org/archive/html/bug-gettext/2019-05/msg00103.html>.

	* gettext-runtime/intl/Makefile.am (AM_CPPFLAGS): Define __USE_MINGW_ANSI_STDIO
	to 0.
	* gettext-runtime/libasprintf/Makefile.am (DEFS): Likewise.
	* libtextstyle/lib/Makefile.am (AM_CPPFLAGS): Likewise.

2019-05-18  Bruno Haible  <bruno@clisp.org>

	libasprintf: Avoid compilation error on mingw with -D__USE_MINGW_ANSI_STDIO=1.
	* gettext-runtime/libasprintf/lib-asprintf.c (asprintf, vasprintf): Don't define
	on mingw when __USE_MINGW_ANSI_STDIO is non-zero.

2019-05-18  Bruno Haible  <bruno@clisp.org>

	doc: Don't mention trademarks.
	Reported by John Darrington <john@darrington.wattle.id.au>
	in <https://savannah.gnu.org/bugs/?56340>.

	* gettext-tools/doc/gettext.texi (catgets): Drop trademark annotation.

2019-05-18  Bruno Haible  <bruno@clisp.org>

	build: Fix typo in comment.
	* check-copyright-headers: Fix typo in comment.

2019-05-12  Bruno Haible  <bruno@clisp.org>

	build: Fix "make install" failure with --disable-shared on glibc systems.
	Reported by Gabor Z. Papp <gzp@papp.hu>.

	This is a regression from 2018-11-25.

	* gettext-tools/configure.ac (PRELOADABLE_LIBINTL): Set to false if
	--disable-shared was specified.

2019-05-12  Bruno Haible  <bruno@clisp.org>

	Update translations (from the TP).

2019-05-12  Bruno Haible  <bruno@clisp.org>

	Update release steps.

2019-05-12  Bruno Haible  <bruno@clisp.org>

	intl: Fix wrong libtool versioning information.
	Reported by Ken Takata <ktakata65536@gmail.com>
	in <https://savannah.gnu.org/bugs/?56305>.

	* gettext-runtime/intl/Makefile.am (LTV_*): Bump to 9:6:1, not 9:6:2.
	* NEWS: Mention the change.

2019-05-12  Bruno Haible  <bruno@clisp.org>

	Update bug reporting instructions.
	* README: Tell users to report bugs in the bug tracker or by email. Use the
	mailing list address, not the alias.
	* gettext-runtime/libasprintf/README: Likewise.
	* gettext-tools/doc/gettext.texi (Introduction): Likewise.
	(Plural forms): Use the mailing list address, not the alias.
	* configure.ac (AC_INIT): Use the mailing list address, not the alias.
	* gettext-runtime/configure.ac (AC_INIT): Likewise.
	* gettext-tools/configure.ac (AC_INIT): Likewise.
	* gettext-tools/examples/configure.ac (AC_INIT): Likewise.
	* gettext-runtime/po/Makevars (MSGID_BUGS_ADDRESS): Use the mailing list
	address, not the alias.
	* gettext-tools/po/Makevars (MSGID_BUGS_ADDRESS): Likewise.
	* gettext-tools/examples/po/Makefile.am (MSGID_BUGS_ADDRESS): Likewise.
	* gettext-tools/examples/hello-*/po/Makevars (MSGID_BUGS_ADDRESS): Likewise.
	* gettext-tools/examples/hello-*/po/Makefile.am (MSGID_BUGS_ADDRESS): Likewise.
	* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile (MSGID_BUGS_ADDRESS):
	Likewise.
	* gettext-tools/examples/hello-c++-kde/hello.cc (main): Likewise.
	* gettext-runtime/src/envsubst.c (main): Move URL out of translatable string.
	(usage): Tell users to report bugs in the bug tracker or by email. Use the
	mailing list address, not the alias.
	* gettext-runtime/src/gettext.c: Likewise.
	* gettext-runtime/src/ngettext.c: 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/tests/tstgettext.c: Likewise.
	* gettext-tools/tests/tstngettext.c: Likewise.
	* gettext-tools/misc/autopoint.in (func_usage): Tell users to report bugs in the
	bug tracker or by email. Use the mailing list address, not the alias.
	* gettext-tools/misc/convert-archive.in (func_usage): Likewise.
	* gettext-tools/misc/gettextize.in (func_usage): Likewise.

2019-05-11  Bruno Haible  <bruno@clisp.org>

	doc: Recommend to avoid literal URLs in translatable strings.
	Suggested by John Darrington <john@darrington.wattle.id.au>
	in <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00033.html>.

	* gettext-tools/doc/gettext.texi (Preparing Strings): Add recommendation against
	embedded URLs. Add sub-headers.

2019-05-11  Bruno Haible  <bruno@clisp.org>

	build: Fix build failure with parallel make.
	Reported by Lars Wendler <polynomial-c@gentoo.org>.

	* gettext-tools/src/Makefile.am (.NOTPARALLEL): Add this special target.

2019-05-11  Bruno Haible  <bruno@clisp.org>

	intl: Remove obsolete code.
	* gettext-runtime/intl/plural.y: Assume bison >= 2.0.

2019-05-11  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* autogen.sh: Don't copy intl.m4.
	* Makefile.am (distcheck-hook): Don't check glibc2.m4, glibc21.m4, intdiv0.m4,
	intl.m4, intmax.m4, printf-posix.m4, uintmax_t.m4, visibility.m4.
	* gettext-runtime/intl/verify.h: Update from gnulib.

2019-05-11  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2019-05-09  Bruno Haible  <bruno@clisp.org>

	Update release steps.

2019-05-08  Bruno Haible  <bruno@clisp.org>

	examples: Use infrastructure from gettext version 0.20.
	* gettext-tools/examples/hello-*/configure.ac: Use AM_GNU_GETTEXT_VERSION with
	version 0.20.
	* gettext-tools/examples/hello-c++-kde/configure.in.in: Likewise.
	* gettext-tools/examples/hello-*/m4/Makefile.am: Update .m4 file list.
	* gettext-tools/examples/hello-*/autoclean.sh: Likewise.

2019-05-08  Bruno Haible  <bruno@clisp.org>

	Update translations (from the TP).

2019-05-08  Bruno Haible  <bruno@clisp.org>

	Prepare for 0.20 release.
	* gettext-runtime/doc/matrix.texi: Update from TP.
	* gettext-runtime/doc/nls.texi (STATUS): Update.
	* libtextstyle/version.sh: Update RELEASE_DATE.

2019-05-07  Bruno Haible  <bruno@clisp.org>

	libtextstyle: examples: Enable --color=html, for debuggability.
	Reported by Akim Demaille.

	* libtextstyle/examples/color-hello/hello.c (main): Handle color_html case.
	* libtextstyle/examples/color-filter/filter.c (main): Likewise.

2019-05-05  Bruno Haible  <bruno@clisp.org>

	examples: hello-c++-widgets: Update build infrastructure.
	Gnulib changed on 2018-11-11: asm-underscore.m4 is no longer needed for havelib.

	* gettext-tools/examples/hello-c++-widgets/autogen.sh: Don't pull in
	asm-underscore.m4.
	* gettext-tools/examples/hello-c++-widgets/autoclean.sh: Don't remove
	asm-underscore.m4.

2019-05-05  Bruno Haible  <bruno@clisp.org>

	Add unit test for libintl_version.
	* gettext-tools/tests/intl-version-prg.c: New file.
	* gettext-tools/tests/intl-version: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.
	(check_PROGRAMS): Add intl-version-prg.
	(intl_version_prg_SOURCES, intl_version_prg_LDADD): New variables.

2019-05-05  Bruno Haible  <bruno@clisp.org>

	msginit: Avoid error messages when run on mingw.
	Reported by Michele Locati <michele@locati.it>.

	* gettext-tools/src/msginit.c (project_id, project_id_version, get_user_email,
	language_team_address): Don't even attempt to run the shell script.

2019-05-05  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Document debugging tricks.
	Reported by Akim Demaille <akim@lrde.epita.fr>.

	* libtextstyle/doc/libtextstyle.texi (Debugging style files): New subsection.
	(Debugging the styling code): New section.

2019-05-01  Bruno Haible  <bruno@clisp.org>

	msginit: Fix invocation of helper programs on Windows.
	Reported by Michele Locati <michele@locati.it>
	in <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00058.html>.

	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add configmake.
	* gettext-tools/src/msginit.c: Include configmake.h.
	(main): Add BINDIR to the PATH.

2019-05-01  Bruno Haible  <bruno@clisp.org>

	msginit: Improvements for Cygwin and Android.
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add sh-filename.
	* gettext-tools/src/msginit.c (project_id, project_id_version, get_user_email,
	language_team_address): Use BOURNE_SHELL instead of hardcoding /bin/sh.

2019-04-29  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Document one more terminal emulator.
	* libtextstyle/doc/libtextstyle.texi (Terminal emulators): Mention QTerminal.

2019-04-28  Bruno Haible  <bruno@clisp.org>

	Fix msginit-4 test failure on mingw.
	* gettext-tools/src/Makefile.am (DEFS): Define EXEEXT.
	* gettext-tools/src/msginit.c (plural_forms): On Windows, invoke
	"cldr-plurals.exe", not "cldr-plurals".

2019-04-28  Bruno Haible  <bruno@clisp.org>

	In the POT files, talk about the "GNU gettext package".
	Reported by Benno Schulenberg <coordinator@translationproject.org>.

	* gettext-runtime/po/Makevars (XGETTEXT_OPTIONS): Add --package-name option.
	* gettext-tools/po/Makevars (XGETTEXT_OPTIONS): Likewise.
	* gettext-tools/examples/po/Makefile.am (XGETTEXT_OPTIONS): New variable.

2019-04-28  Bruno Haible  <bruno@clisp.org>

	po: Make it possible to override xgettext options from Makefile.in.in.
	* gettext-runtime/po/Makefile.in.in ($(DOMAIN).pot-update): List the
	XGETTEXT_OPTIONS and the XGETTEXT_EXTRA_OPTIONS after all other options.
	* gettext-tools/examples/po/Makefile.am ($(DOMAIN).pot-update): Likewise.
	* gettext-tools/examples/hello-*/po/Makefile.am ($(DOMAIN).pot-update):
	Likewise.
	* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile
	($(DOMAIN).pot-update): Likewise.
	* NEWS: Mention the change.
	* gettext-tools/doc/gettext.texi (po/Makevars): Fix typo.

2019-04-28  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Fix test-term-ostream-xterm test failure on TrueOS and Trident.
	The xterm description on these platforms includes support for italics.

	Reported by Nelson H. F. Beebe.

	* libtextstyle/gnulib-local/tests/test-term-ostream-xterm-freebsd-italic.out:
	New file.
	* libtextstyle/gnulib-local/tests/test-term-ostream-xterm.sh: Use it as possible
	expected result.
	* libtextstyle/gnulib-local/modules/term-ostream-tests (Files): Add it.

2019-04-28  Bruno Haible  <bruno@clisp.org>

	libxml: Avoid gcc warnings.
	Avoids "warning: too many arguments for format".

	* gnulib-local/lib/libxml/xmlerror.in.h (__xmlSimpleError): Remove
	LIBXML_ATTR_FORMAT annotation, because this function may be called with a
	NULL msg.

2019-04-28  Bruno Haible  <bruno@clisp.org>

	libxml: Avoid build failure due to "implicit declaration of function".
	* gnulib-local/lib/libxml/libxml.h: Include xmlstring.h only after config.h is
	included.

2019-04-28  Bruno Haible  <bruno@clisp.org>

	libxml: Update included libxml2 to version 2.9.9.
	* gnulib-local/lib/libxml/*: Update from libxml2 2.9.9.
	* gnulib-local/m4/libxml.m4 (gl_LIBXML): Don't test for _stat.

2019-04-28  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2019-04-28  Bruno Haible  <bruno@clisp.org>

	Fix lang-csharp test failure on DragonFly BSD.
	Reported by Nelson H. F. Beebe.

	* gettext-tools/tests/lang-csharp: For the locale with ISO-8859-1 encoding,
	allow an expected result in UTF-8 encoding.

2019-04-28  Bruno Haible  <bruno@clisp.org>

	Add comment about a test that may fail.
	Reported by Nelson H. F. Beebe.

	* gettext-tools/tests/lang-csharp: Add comment about possible test failure.

2019-04-28  Bruno Haible  <bruno@clisp.org>

	Add comments about tests that fail on Alpine Linux.
	Reported by Nelson H. F. Beebe.

	* gettext-tools/tests/msgconv-2: Add comment about musl libc.
	* gettext-tools/tests/msgmerge-compendium-6: Likewise.
	* gettext-tools/tests/xgettext-python-3: Likewise.

2019-04-28  Bruno Haible  <bruno@clisp.org>

	build: Remove duplicate copy of test-lock.
	The master copy lives in gnulib now.

	* gettext-runtime/tests/test-lock.c: Remove file.
	* gettext-runtime/tests/Makefile.am (TESTS, check_PROGRAMS): Remove test-lock.
	(test_lock_SOURCES, test_lock_LDADD): Remove variables.

2019-04-28  Bruno Haible  <bruno@clisp.org>

	build: Verify that intl/threadlib.c is in sync with gnulib.
	* Makefile.am (distcheck-hook): Compare also intl/threadlib.c.

2019-04-28  Bruno Haible  <bruno@clisp.org>

	Fix autopoint-3 test failure on many platforms.
	Reported by Nelson H. F. Beebe.

	* gettext-tools/tests/autopoint-3: Create dummy ltmain.sh file before invoking
	"automake -a -c".

2019-04-28  Bruno Haible  <bruno@clisp.org>

	Avoid lang-guile test failure on many platforms.
	Reported by Nelson H. F. Beebe.

	* gettext-tools/tests/lang-guile: Skip the test if the guile version is < 2.0.

2019-04-28  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.

2019-04-28  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2019-04-27  Bruno Haible  <bruno@clisp.org>

	intl: Use the lookup optimization also on platforms without per-thread locales.
	This bug was introduced on 2007-01-27.

	* gettext-runtime/intl/dcigettext.c (DCIGETTEXT): Fix #ifdef/#endif chain.

2019-04-27  Bruno Haible  <bruno@clisp.org>

	po-mode: Fix warning.
	* gettext-tools/emacs/po-mode.el (entry-buffer): Declare as variable.

2019-04-27  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Don't rely on the undocumented variable libgettextpo_program_name.
	* gnulib-local/lib/xerror.c: If IN_LIBGETTEXTPO is defined, include
	getprogname.h instead of progname.h and define program_name as a macro.
	* gnulib-local/lib/error-progname.c: Likewise.
	* gettext-tools/src/po-xerror.c: Likewise.
	* autogen.sh (GNULIB_MODULES_LIBGETTEXTPO): Remove progname.
	Pass --avoid=progname to gnulib-tool invocation for libgettextpo.

2019-04-27  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Fix crash when iconv() does not support the PO file's encoding.
	* gettext-tools/src/po-charset.c (po_lex_charset_set): When IN_LIBGETTEXTPO is
	defined, don't use program_name.

2019-04-27  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Fix gcc warnings.
	* gettext-tools/src/write-po.c (begin_css_class, end_css_class): At least,
	evaluate the classname argument.

2019-04-27  Bruno Haible  <bruno@clisp.org>

	Fix a gcc warning.
	* gettext-tools/src/urlget.c (java_exitcode, execute_it): Don't define if
	USEJAVA is 0.

2019-04-27  Bruno Haible  <bruno@clisp.org>

	Fix a gcc warning on mingw.
	* gettext-tools/src/msginit.c (get_user_pwd): Don't define if HAVE_PWD_H is not
	set.
	(get_user_fullname): Don't call get_user_pwd if HAVE_PWD_H is not set.

2019-04-27  Bruno Haible  <bruno@clisp.org>

	Fix gcc warnings on mingw and IRIX 6.5.
	* gettext-tools/src/msgexec.c (process_message): Don't assume that fprintf
	supports %zu.
	* gettext-tools/src/msgfilter.c (process_message): Likewise.

2019-04-27  Bruno Haible  <bruno@clisp.org>

	Fix gcc warnings on mingw.
	* gettext-tools/src/msgexec.c (close): Undefine before redefinition.
	* gettext-tools/src/msggrep.c (close): Likewise.

2019-04-27  Bruno Haible  <bruno@clisp.org>

	Fix a gcc warning (regression from 2017-05-04).
	* gettext-tools/src/read-java.c (msgdomain_read_java): Remove unused variable.

2019-04-27  Bruno Haible  <bruno@clisp.org>

	search-path.c: Improve code style.
	* gettext-tools/src/search-path.h (get_search_path): Clarify memory allocation.
	* gettext-tools/src/search-path.c (struct path_array_ty): Add comment.
	(foreach_elements): Fix comment.
	(get_search_path): Improve comments. Perform each getenv() only once. Reduce
	scope of variables. Fix gcc warning.

2019-04-27  Bruno Haible  <bruno@clisp.org>

	libxml: Fix width of fprintf argument on native Windows.
	* gnulib-local/lib/libxml/timsort.h (TIM_SORT_RESIZE): Cast fprintf argument to
	'unsigned long'.

2019-04-27  Bruno Haible  <bruno@clisp.org>

	intl: Fix a gcc warning.
	* gettext-runtime/intl/langprefs.c (_nl_language_preferences_win32_95): Declare
	data as BYTE array, not char array.

2019-04-26  Bruno Haible  <bruno@clisp.org>

	build: Fix build failure on mingw with --disable-shared --enable-relocatable.
	Reported by Michele Locati <michele@locati.it>
	in <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00052.html>.

	* gettext-runtime/intl/Makefile.am (AM_CPPFLAGS): Map 'relocate2' to a different
	symbol.

2019-04-26  Bruno Haible  <bruno@clisp.org>

	Document the OUTPUT_CHARSET environment variable.
	Reported by Václav Slavík <vaclav@slavik.io>
	via Michele Locati <michele@locati.it>.

	* gettext-tools/doc/gettext.texi (Working in a Windows console): New section.

2019-04-14  Bruno Haible  <bruno@clisp.org>

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

2019-04-14  Bruno Haible  <bruno@clisp.org>

	Prepare for 0.20 release.
	* gettext-runtime/intl/libgnuintl.in.h (LIBINTL_VERSION): Update.
	* gettext-tools/libgettextpo/gettext-po.in.h (LIBGETTEXTPO_VERSION): Update.
	* gettext-runtime/m4/gettext.m4: Bump version number in comment.
	* gettext-runtime/m4/intl.m4: Likewise.
	* gettext-runtime/m4/intlmacosx.m4: Likewise.
	* gettext-runtime/m4/po.m4: Likewise.
	(GETTEXT_MACRO_VERSION): Bump to 0.20.
	* gettext-runtime/po/Makefile.in.in (GETTEXT_MACRO_VERSION): Likewise.
	* gettext-runtime/intl/Makefile.am (LTV_*): Bump to 9:6:2.
	* gettext-tools/libgettextpo/Makefile.am (LTV_*): Bump to 5:5:5.
	* gettext-tools/configure.ac (ARCHIVE_VERSION): Set to 0.20.
	* gettext-tools/misc/autopoint.in: Accept version 0.20.
	* gettext-runtime/doc/matrix.texi: Update from TP.
	* gettext-runtime/doc/nls.texi (STATUS): Update.
	* gettext-runtime/src/envsubst.c (main): Update copyright year in --version
	output.
	* gettext-runtime/src/gettext.c (main): Likewise.
	* gettext-runtime/src/ngettext.c (main): Likewise.
	* gettext-tools/src/cldr-plurals.c (main): Likewise.
	* gettext-tools/src/hostname.c (main): Likewise.
	* gettext-tools/src/msgattrib.c (main): Likewise.
	* gettext-tools/src/msgcat.c (main): Likewise.
	* gettext-tools/src/msgcmp.c (main): Likewise.
	* gettext-tools/src/msgcomm.c (main): Likewise.
	* gettext-tools/src/msgconv.c (main): Likewise.
	* gettext-tools/src/msgen.c (main): Likewise.
	* gettext-tools/src/msgexec.c (main): Likewise.
	* gettext-tools/src/msgfilter.c (main): Likewise.
	* gettext-tools/src/msgfmt.c (main): Likewise.
	* gettext-tools/src/msggrep.c (main): Likewise.
	* gettext-tools/src/msginit.c (main): Likewise.
	* gettext-tools/src/msgmerge.c (main): Likewise.
	* gettext-tools/src/msgunfmt.c (main): Likewise.
	* gettext-tools/src/msguniq.c (main): Likewise.
	* gettext-tools/src/recode-sr-latin.c (main): Likewise.
	* gettext-tools/src/urlget.c (main): Likewise.
	* gettext-tools/src/xgettext.c (main): Likewise.
	* gettext-runtime/src/gettext.sh.in (func_version): Update copyright year.
	* gettext-tools/misc/convert-archive.in (func_version): Likewise.
	* gettext-tools/misc/gettextize.in (func_version): Likewise.
	* libtextstyle/version.sh: Use version number 0.20 here as well.
	* gettext-runtime/NEWS: Mention changes (from main NEWS).
	* libtextstyle/NEWS: Mention changes.

2019-04-14  Bruno Haible  <bruno@clisp.org>

	autopoint: Reject AM_GNU_GETTEXT without 'external' for versions >= 0.20.
	* gettext-tools/misc/autopoint.in: Fail if AM_GNU_GETTEXT without 'external' is
	specified with a gettext version >= 0.20.
	* gettext-tools/tests/autopoint-2: Update. Add two more scenarios.
	* gettext-tools/tests/autopoint-3: Don't test AM_GNU_GETTEXT([use-libtool]) nor
	--with-included-gettext. Don't use libtoolize.

2019-04-14  Bruno Haible  <bruno@clisp.org>

	build: Fix Makefile.am formatting.
	* gettext-runtime/man/Makefile.am: Start every indented line with a tab.

2019-04-14  Bruno Haible  <bruno@clisp.org>

	build: Don't fail copyright header check on archive.dir.tar.
	* check-copyright-headers (func_check_file): Succeed for the archive.dir.tar
	file.

2019-04-14  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2019-04-13  Bruno Haible  <bruno@clisp.org>

	cldr-plurals: Fix a test failure on IRIX 6.5.
	* gettext-tools/src/cldr-plural-exp.c (cldr_plural_rule_list_print): Don't
	assume that fprintf supports %zu.

2019-04-13  Bruno Haible  <bruno@clisp.org>

	build: Fix build failure when perl exists but not perl's Locale::gettext module.
	* gettext-runtime/man/x-to-1.in: Remove file.
	* gettext-tools/man/x-to-1.in: Remove file.
	* autogen.sh: Copy x-to-1.in from gnulib.

2019-04-13  Bruno Haible  <bruno@clisp.org>

	build: Fix build failure with a preinstalled libxml (regression from 2019-04-02).
	* gettext-tools/src/Makefile.am (AM_CPPFLAGS): Remove -I options that point into
	libtextstyle/lib.
	(textstyle.h): New rule.
	(BUILT_SOURCES, MOSTLYCLEANFILES): Add textstyle.h and textstyle/*.h.

2019-04-13  Bruno Haible  <bruno@clisp.org>

	build: Don't link libgettextlib and libgettextsrc against libgomp.
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add openmp-init. Remove openmp.
	* gettext-tools/configure.ac: Invoke AC_OPENMP.

2019-04-13  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2019-04-12  Bruno Haible  <bruno@clisp.org>

	msgfmt: Fix another buffer overrun.
	Reported and patch by Joshua Root <jmr@macports.org>
	at <https://savannah.gnu.org/bugs/?56126>.

	* gettext-tools/src/write-java.c (write_java_msgid): Allocate memory for the
	trailing NUL byte as well.
	* gettext-tools/src/write-csharp.c (write_csharp_msgid): Likewise.

2019-04-11  Bruno Haible  <bruno@clisp.org>

	build: Explicitly request some more gnulib modules.
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add localtime, unsetenv.

2019-04-11  Bruno Haible  <bruno@clisp.org>

	build: Fix build failure on mingw (regression from 2019-04-02).
	* gettext-tools/woe32dll/gettextlib-exports.c: Remove
	gl_array_list_implementation, styled_ostream_typeinfo.
	* gettext-tools/woe32dll/gettextsrc-exports.c: Remove color_mode,
	color_test_mode, style_file_name.
	* autogen.sh: Don't import the gnulib array-list-tests and linkedhash-list-tests
	modules.

2019-04-11  Bruno Haible  <bruno@clisp.org>

	build: Fix build failure on mingw (regression from 2019-04-02).
	* libtextstyle/autogen.sh: Pass a --macro-prefix option to gnulib-tool.
	* libtextstyle/configure.ac: Update accordingly.

2019-04-11  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Fix build failure on mingw (regression from 2019-03-17).
	* libtextstyle/lib/Makefile.am (config.h): Emit a line that ensures that
	isatty.c defines the symbol 'libtextstyle_isatty', not 'isatty'.

2019-04-11  Bruno Haible  <bruno@clisp.org>

	build: Fix build failure on mingw.
	For some reason, Automake puts a definition of CXXLD in
	gettext-tools/src/Makefile.in but not in
	gettext-tools/gnulib-lib/Makefile.in.

	* gettext-tools/gnulib-lib/Makefile.am (CXXLD): Define.

2019-04-10  Bruno Haible  <bruno@clisp.org>

	msgfmt: Fix a buffer overrun.
	Reported by Tobi Schäfer at <https://trac.macports.org/ticket/58323>,
	via Ryan Schmidt <@ryandesign.com> at <https://savannah.gnu.org/bugs/?56112>.
	Patch proposed by Joshua Root.

	* gettext-tools/src/write-java.c (msgid_hashcode): Allocate memory for the
	trailing NUL byte as well.

2019-04-09  Bruno Haible  <bruno@clisp.org>

	Fix test failures on AIX 7.2.
	* gettext-tools/tests/intl-thread-1-prg.c: Test HAVE_WORKING_USELOCALE instead
	of HAVE_USELOCALE.
	* gettext-tools/tests/intl-thread-2-prg.c: Likewise.
	* gettext-tools/tests/intl-thread-3-prg.c: Likewise.

2019-04-09  Bruno Haible  <bruno@clisp.org>

	msgmerge: Fix crash on 32-bit AIX 7.2.
	* gettext-tools/src/msgmerge.c: Include <omp.h>.
	(main): Invoke openmp_init().

2019-04-09  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2019-04-08  Bruno Haible  <bruno@clisp.org>

	Make sure that libintl.h declares the *wprintf overrides on Windows.
	* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Test for wprintf, not fwprintf.

2019-04-08  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2019-04-08  Bruno Haible  <bruno@clisp.org>

	autopoint: Don't risk failing because of user or system git configurations.
	Reported by Jamie Kirkpatrick <jkp@kirkconsulting.co.uk>
	in <https://savannah.gnu.org/support/?107689>.

	* gettext-tools/misc/autopoint.in: Set/unset environment variables, so that git
	does not read the user's git configuration nor the system's git configuration.
	* gettext-tools/misc/convert-archive.in: Likewise.

2019-04-08  Bruno Haible  <bruno@clisp.org>

	xgettext: Recognize ECMAScript-262 6th edition template literals.
	Reported by Philip Chimento <philip.chimento@gmail.com>
	in <https://savannah.gnu.org/bugs/index.php?50920>.

	* gettext-tools/src/x-javascript.c (P7_TEMPLATE_START_OF_EXPRESSION): New macro.
	(enum token_type_ty): Add token_type_template, token_type_ltemplate,
	token_type_mtemplate, token_type_rtemplate.
	(free_token): Treat token_type_template like token_type_string.
	(phase7_getuc): Add support for backquote quote_char.
	(brace_depth, template_literal_depth): New variables.
	(phase5_get): Parse template literals.
	(x_javascript_lex): Treat token_type_template like token_type_string. Handle the
	combination of symbol followed by template.
	(extract_balanced): Treat token_type_template like token_type_string, and
	token_type_ltemplate, token_type_mtemplate, token_type_rtemplate like
	token_type_other.
	(extract_javascript): Initialize brace_depth, template_literal_depth.
	* gettext-tools/tests/xgettext-javascript-7: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.
	* gettext-tools/doc/gettext.texi (JavaScript): Mention the template literal
	syntax for strings.
	* NEWS: Mention the improvement.

2019-04-08  Bruno Haible  <bruno@clisp.org>

	xgettext: Make JavaScript parser more robust.
	* gettext-tools/src/x-javascript.c (extract_javascript): Initialize
	inside_embedded_js_in_xml.

2019-04-07  Bruno Haible  <bruno@clisp.org>

	build: Verify that newly added files have an appropriate copyright notice.
	* check-copyright-headers: New file.
	* Makefile.am (EXTRA_DIST): Add it.
	(distcheck-hook): Run check-copyright-headers and fail if it fails.

2019-04-07  Bruno Haible  <bruno@clisp.org>

	doc: Add copyright notices in several files.
	Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.

	* gettext-runtime/doc/nls.texi: Add delegating copyright notice.
	* gettext-runtime/doc/rt-*.texi: Likewise.
	* gettext-tools/doc/autopoint.texi: Likewise.
	* gettext-tools/doc/gettextize.texi: Likewise.
	* gettext-tools/doc/msg*.texi: Likewise.
	* gettext-tools/doc/xgettext.texi: Likewise.

2019-04-07  Bruno Haible  <bruno@clisp.org>

	build: Unify the three copies of texi2html.
	* build-aux/texi2html: Moved to here from libtextstyle/build-aux/texi2html.
	* libtextstyle/autogen.sh: Copy texi2html.
	* gettext-runtime/libasprintf/texi2html: Remove file.
	* gettext-runtime/libasprintf/Makefile.am (TEXI2HTML): Use build-aux/texi2html.
	(EXTRA_DIST): Remove texi2html.
	* gettext-tools/doc/texi2html: Remove file.
	* gettext-tools/doc/Makefile.am (TEXI2HTML): Use build-aux/texi2html.
	(EXTRA_DIST): Remove texi2html.
	* Makefile.am (EXTRA_DIST): Add build-aux/texi2html.
	(distcheck-hook): Update.

2019-04-07  Bruno Haible  <bruno@clisp.org>

	doc: Use a version of texi2html which is under a good license.
	Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.

	* gettext-tools/doc/texi2html: Copied from texi2html-1.78, with changes made in
	libunistring/build-aux/texi2html and then in libtextstyle/build-aux/texi2html.
	* gettext-tools/doc/gettext.texi: Enable the Top node during texi2html
	processing.
	* gettext-tools/doc/Makefile.am (gettext.html): Use texi2html options
	-no-sec-nav -no-menu -toc-links.
	(gettext_toc.html): Likewise. Pull out generated files out of subdirectory.

2019-04-07  Bruno Haible  <bruno@clisp.org>

	libasprintf: Use a version of texi2html which is under a good license.
	Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.

	* gettext-runtime/libasprintf/texi2html: Copied from texi2html-1.78, with
	changes made in libunistring/build-aux/texi2html and then in
	libtextstyle/build-aux/texi2html.
	* gettext-runtime/libasprintf/fdl.texi: New file, copied from
	gettext-tools/doc/fdl.texi.
	* gettext-runtime/libasprintf/gpl.texi: New file, copied from
	gnulib/doc/gpl-2.0.texi.
	* gettext-runtime/libasprintf/lgpl.texi: New file, copied from
	gnulib/doc/lgpl-2.1.texi.
	* gettext-runtime/libasprintf/autosprintf.texi: Invoke @contents. Enable the
	Top node during texi2html processing.
	(Licenses): New appendix.
	* gettext-runtime/libasprintf/Makefile.am (TEXINCLUDES): New variable.
	(MAKEINFOFLAGS): Use it.
	(autosprintf_TEXINFOS): New variable.
	(autosprintf_all.html): Depend on it. Use texi2html options -no-sec-nav -no-menu
	-toc-links.

2019-04-07  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Tweak style of HTML documentation.
	* libtextstyle/build-aux/texi2html (BIG_RULE): Set to empty.

2019-04-07  Bruno Haible  <bruno@clisp.org>

	Add copyright notices in several files.
	Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.

	* gettext-tools/doc/FAQ.html: Fix copyright notice added on 2019-04-04.
	* gettext-tools/doc/tutorial.html: Add GFDL copyright notice. Permission given
	by Gora Mohanty <gora_mohanty@yahoo.co.in> through private email on 2004-11-13.
	* gettext-tools/po/Makevars.template: Don't mention the file name, since this
	file is meant to be copied and renamed to 'Makevars'.
	* gettext-tools/examples/hello-*/po/Makevars: Add all-permissive copyright
	notice.
	* gettext-tools/examples/hello-c-gnome3/hello.ui: Add public-domain notice.
	* gettext-tools/examples/hello-c-gnome3/hello.gresource.xml: Likewise.
	* gettext-tools/examples/hello-c-gnome3/hello.gschema.xml: Likewise.
	* gettext-tools/examples/hello-java-awt/m4/TestAWT.java: Likewise.
	* gettext-tools/examples/hello-java-swing/m4/TestAWT.java: Likewise.
	* gettext-tools/examples/hello-java-qtjambi/m4/Test15.java: Likewise.
	* gettext-tools/examples/check-examples: Add GPLv3+ copyright notice.
	* gettext-tools/examples/installpaths.in: Likewise.
	* gettext-tools/examples/po/mmsmallpo.sh: Likewise.
	* gettext-tools/examples/po/xsmallpot.sh: Likewise.
	* gettext-tools/its/glade.loc: Likewise.
	* gettext-tools/its/gsettings.loc: Likewise.
	* gettext-tools/its/metainfo.its: Likewise.
	* gettext-tools/its/metainfo.loc: Likewise.
	* gettext-tools/src/filters.h: Add missing copyright line.

2019-04-04  Bruno Haible  <bruno@clisp.org>

	Reduce ABOUT-NLS to just a hyperlink.
	The common way to distribute information, nowadays, is through the web,
	not by including files in tarballs of packages.  Also, the current
	contents of ABOUT-NLS is outdated.

	Reported by Samuel Thibault in <https://savannah.gnu.org/bugs/?54809>.

	* gettext-runtime/ABOUT-NLS: Replace text with a reference to the online
	documentation.
	* gettext-runtime/Makefile.am (MAKEINFO): Remove variable.
	(all-local, ABOUT-NLS): Remove rules.
	* gettext-tools/src/msginit.c (main): Point the user to the online documentation
	instead of the ABOUT-NLS file.
	* gettext-tools/doc/gettext.texi (Installing Localizations, Prerequisites,
	Makefile): Don't mention ABOUT-NLS any more.
	* gettext-tools/doc/gettextize.texi: Update description of ABOUT-NLS.
	* gettext-tools/doc/FAQ.html: Refer to the online documentation instead of the
	ABOUT-NLS file.
	* README: Don't mention ABOUT-NLS any more.

2019-04-04  Bruno Haible  <bruno@clisp.org>

	doc: Include the contents of ABOUT-NLS in the documentation.
	* gettext-runtime/doc/nls.texi (The original ABOUT-NLS): Renamed from
	'Translation Intro'. Turn into a section. Mark section as historical.
	* gettext-tools/doc/gettext.texi: Include nls.texi.
	* gettext-tools/doc/Makefile.am (gettext_TEXINFOS): Add nls.texi and
	matrix.texi.

2019-04-04  Bruno Haible  <bruno@clisp.org>

	doc: Update ISO 639 list.
	* gettext-tools/doc/iso-639.texi: Regenerated.

2019-04-04  Bruno Haible  <bruno@clisp.org>

	Add copyright notices in several files.
	Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.

	* gettext-runtime/m4/Makefile.am: Add GPL copyright notice.
	* gettext-tools/m4/Makefile.am: Likewise.
	* gettext-tools/doc/iso-639.sed: Likewise.
	* gettext-tools/doc/iso-639-2.sed: Likewise.
	* gettext-tools/doc/iso-3166.sed: Likewise.
	* gettext-tools/its/glade1.its: Likewise.
	* gettext-tools/its/glade2.its: Likewise.
	* gettext-tools/its/gsettings.its: Likewise.
	* gettext-tools/its/gtkbuilder.its: Likewise.
	* gettext-tools/misc/cvsuser.c: Likewise.
	* gettext-tools/projects/team-address: Likewise.
	* gettext-tools/projects/GNOME/team-address: Likewise.
	* gettext-tools/projects/GNOME/trigger: Likewise.
	* gettext-tools/projects/KDE/team-address: Likewise.
	* gettext-tools/projects/KDE/trigger: Likewise.
	* gettext-tools/projects/TP/team-address: Likewise.
	* windows/windres-options: Likewise.
	* gettext-runtime/po/insert-header.sin: Add copyright notice, based on the one
	in Rules-quot.
	* gettext-tools/doc/FAQ.html: Add copyright notice, suitable for documentation.

2019-04-03  Bruno Haible  <bruno@clisp.org>

	Mention the support for Java 11.
	This support was added in gnulib on 2018-09-26.

	* NEWS: Mention the support for Java 11.

2019-04-03  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Clean up old TODO item.
	* libtextstyle/Makefile.am: Remove obsolete comment.

2019-04-02  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Distribute two more files.
	* libtextstyle/Makefile.am (EXTRA_DIST): Add
	gnulib-local/lib/libxml/xmlversion.in.h.diff, gnulib-local/modules/libxml.diff.

2019-04-02  Bruno Haible  <bruno@clisp.org>

	build: Move local gnulib modules that are only needed in libtextstyle.
	* libtextstyle/gnulib-local/*: Many files moved to here from gnulib-local/*.
	* libtextstyle/gnulib-local/modules/libglib: Apply diff.
	* libtextstyle/gnulib-local/modules/libglib.diff: Remove file.
	* libtextstyle/gnulib-local/modules/libcroco: Apply diff.
	* libtextstyle/gnulib-local/modules/libcroco.diff: Remove file.
	* libtextstyle/gnulib-local/modules/term-styled-ostream: Apply diff.
	* libtextstyle/gnulib-local/modules/term-styled-ostream.diff: Remove file.
	* libtextstyle/gnulib-local/modules/html-styled-ostream: Apply diff.
	* libtextstyle/gnulib-local/modules/html-styled-ostream.diff: Remove file.
	* libtextstyle/gnulib-local/modules/noop-styled-ostream: Apply diff.
	* libtextstyle/gnulib-local/modules/noop-styled-ostream.diff: Remove file.
	* libtextstyle/woe32dll/c++term-styled-ostream.cc: Remove file.
	* libtextstyle/woe32dll/c++html-styled-ostream.cc: Remove file.
	* libtextstyle/woe32dll/c++noop-styled-ostream.cc: Remove file.
	* gettext-tools/woe32dll/c++term-styled-ostream.cc: Remove file.
	* gettext-tools/woe32dll/c++html-styled-ostream.cc: Remove file.
	* gnulib-local/Makefile.am (EXTRA_DIST): Remove the files that were moved away.
	* libtextstyle/Makefile.am (EXTRA_DIST): Add the files that were moved to
	libtextstyle/gnulib-local/. Add build-aux/moopp.
	* Makefile.am (EXTRA_DIST): Remove build-aux/moopp.

2019-04-02  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Avoid closing a FILE stream when it will still be used.
	* gettext-tools/src/write-catalog.c (msgdomain_list_print): Don't call
	ostream_free if we're using the dummy <textstyle.h>.

2019-04-02  Bruno Haible  <bruno@clisp.org>

	libgettextpo: Use a dummy replacement for libtextstyle.
	* gnulib-local/modules/libtextstyle-dummy: New file, based on gnulib's
	modules/libtextstyle-optional.
	* gnulib-local/Makefile.am (EXTRA_DIST): Add it.
	* autogen.sh (GNULIB_MODULES_LIBGETTEXTPO): Add libtextstyle-dummy. Remove
	file-ostream, ostream.
	* gettext-tools/src/write-catalog.h: Include <textstyle.h> always.
	* gettext-tools/src/write-catalog.c: Likewise.
	* gettext-tools/src/write-po.h: Likewise.
	* gettext-tools/src/write-po.c: Likewise.

2019-04-02  Bruno Haible  <bruno@clisp.org>

	Link the msg* and xgettext programs against libtextstyle.
	* libtextstyle/autogen.sh: Don't generate lib/color.h and lib/color.c.
	* libtextstyle/lib/color.h: Moved to here from gettext-tools/src/color.h.
	* libtextstyle/lib/color.c: Moved to here from gettext-tools/src/color.c.
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Remove fd-ostream, file-ostream,
	html-styled-ostream, ostream, styled-ostream, term-styled-ostream. Add libxml.
	* gettext-tools/gnulib-lib/Makefile.am (MOOPPFLAGS): Remove customization.
	* gettext-tools/gnulib-tests/Makefile.am (test_term_ostream_LDADD): Remove
	customization.
	* gettext-tools/src/Makefile.am (noinst_HEADERS): Remove color.h.
	(AM_CPPFLAGS): Add -I directives to the libtextstyle/lib directory.
	(libgettextsrc_la_SOURCES): Remove color.c.
	(libgettextsrc_la_LDFLAGS): Link with libtextstyle.la.
	* gettext-tools/src/FILES: Update.
	* gettext-tools/src/write-catalog.h: Include <textstyle.h> instead of ostream.h.
	* gettext-tools/src/write-catalog.c: Include <textstyle.h> instead of color.h
	and *-ostream.h.
	(msgdomain_list_print): Use styled_ostream_create and
	noop_styled_ostream_create.
	* gettext-tools/src/write-po.h: Include <textstyle.h> instead of ostream.h.
	* gettext-tools/src/write-po.c: Include <textstyle.h> instead of *-ostream.h.
	(is_stylable): Remove function.
	(begin_css_class, end_css_class): Update. Mark as inline.
	* gettext-tools/src/write-properties.c: Include <textstyle.h> instead of
	ostream.h.
	* gettext-tools/src/write-stringtable.c: Likewise.
	* gettext-tools/src/msgattrib.c: Include <textstyle.h> instead of color.h.
	* gettext-tools/src/msgcat.c: Likewise.
	* gettext-tools/src/msgcomm.c: Likewise.
	* gettext-tools/src/msgconv.c: Likewise.
	* gettext-tools/src/msgen.c: Likewise.
	* gettext-tools/src/msgfilter.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/xgettext.c: Likewise.

2019-04-02  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Generalize fd-styled-ostream to noop-styled-ostream.
	* gnulib-local/lib/noop-styled-ostream.oo.h: New file, based on
	gnulib-local/lib/fd-styled-ostream.oo.h.
	* gnulib-local/lib/noop-styled-ostream.oo.c: New file, based on
	gnulib-local/lib/fd-styled-ostream.oo.c.
	* gnulib-local/modules/noop-styled-ostream: New file, based on
	gnulib-local/modules/fd-styled-ostream.
	* gnulib-local/Makefile.am (EXTRA_DIST): Remove lib/fd-styled-ostream.oo.[hc]
	and modules/fd-styled-ostream. Add lib/noop-styled-ostream.oo.[hc] and
	modules/noop-styled-ostream.
	* libtextstyle/woe32dll/c++noop-styled-ostream.cc: New file, based on
	libtextstyle/woe32dll/c++fd-styled-ostream.cc.
	* libtextstyle/gnulib-local/modules/noop-styled-ostream.diff: New file, based
	on libtextstyle/gnulib-local/modules/fd-styled-ostream.diff.
	* gnulib-local/lib/fd-styled-ostream.oo.h: Remove file.
	* gnulib-local/lib/fd-styled-ostream.oo.c: Remove file.
	* gnulib-local/modules/fd-styled-ostream: Remove file.
	* libtextstyle/woe32dll/c++fd-styled-ostream.cc: Remove file.
	* libtextstyle/gnulib-local/modules/fd-styled-ostream.diff: Remove file.
	* libtextstyle/autogen.sh (GNULIB_MODULES): Add noop-styled-ostream. Remove
	fd-styled-ostream.
	* libtextstyle/lib/misc.c: Include noop-styled-ostream.h, fd-ostream.h.
	(styled_ostream_create): Call fd_ostream_create and noop_styled_ostream_create
	instead of fd_styled_ostream_create.
	* libtextstyle/lib/textstyle.h (noop_styled_ostream_t): New type.
	(noop_styled_ostream_*): New declarations.
	* libtextstyle/doc/libtextstyle.texi (The noop_styled_ostream class): New
	subsection.

2019-04-02  Bruno Haible  <bruno@clisp.org>

	build: Build and install libtextstyle.
	* autogen.sh: Recurse into libtextstyle directory.
	* configure.ac: Likewise.
	* Makefile.am (SUBDIRS): Add libtextstyle.
	* DEPENDENCIES: Mention that libiconv and ncurses are also used by libtextstyle.
	* PACKAGING: Recommend to ship libtextstyle as a third binary package.
	* NEWS: Mention that libtextstyle is installed.

2019-04-02  Bruno Haible  <bruno@clisp.org>

	build: Separate git operations from build operations.
	* gitsub.sh: New file, from gnulib.
	* autogen.sh: Remove all git operations and the --no-git option. Look at the
	GNULIB_SRCDIR environment variable. Ignore the GNULIB_TOOL environment variable.
	* HACKING: Explain when to use gitsub.sh.

2019-04-02  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Bump version number.

2019-04-01  Daiki Ueno  <ueno@gnu.org>

	desktop: Fix whitespace handling around '='
	While the spec only allows spaces before and after '=',
	xgettext/msgfmt previously accepted all whitespaces including '\n'.
	That was causing unwanted concatenation of desktop lines.

	Reported by Bastien Nocera in:
	https://lists.gnu.org/archive/html/bug-gettext/2019-03/msg00017.html

	* gettext-tools/src/read-desktop.c (desktop_lex): Properly handle
	space characters before and after '='.
	* gettext-tools/tests/msgfmt-desktop-1: Add a test case.

2019-04-01  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Bump version number.

2019-03-31  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Add support for true-color terminals.
	* gnulib-local/lib/term-ostream.oo.c (colormodel_t): Add cm_xtermrgb.
	(rgb_to_color_xtermrgb): New function.
	(attributes_t): Extend the color fields to 25 bits.
	(struct term_ostream): New fields active_attr_color, active_attr_bgcolor.
	(out_color_change, out_bgcolor_change, term_ostream::rgb_to_color): Handle
	cm_xtermrgb.
	(out_attr_change): Set also active_attr_color, active_attr_bgcolor.
	(async_set_attributes_from_default): Fetch also active_attr_color,
	active_attr_bgcolor.
	(term_ostream_create): Accept all $TERM values that end in -direct.
	* libtextstyle/doc/libtextstyle.texi (Terminal emulators): Document the
	prerequisites for true-color support.
	* libtextstyle/NEWS: Mention the change.

2019-03-31  Bruno Haible  <bruno@clisp.org>

	maint: Make code more "git diff"-friendly.
	* gettext-runtime/src/envsubst.c: Prefer long lines to lines that start with a
	non-whitespace character.
	* gettext-tools/src/cldr-plurals.c: Likewise.
	* gettext-tools/src/format.c: Likewise.
	* gettext-tools/src/msgcmp.c: Likewise.
	* gettext-tools/src/msgfmt.c: Likewise.
	* gettext-tools/src/msggrep.c: Likewise.
	* gettext-tools/src/msgl-cat.c: Likewise.
	* gettext-tools/src/msgl-charset.c: Likewise.
	* gettext-tools/src/msgl-check.c: Likewise.
	* gettext-tools/src/msgl-iconv.c: Likewise.
	* gettext-tools/src/msgmerge.c: Likewise.
	* gettext-tools/src/po-lex.c: Likewise.
	* gettext-tools/src/read-stringtable.c: Likewise.
	* gettext-tools/src/recode-sr-latin.c: Likewise.
	* gettext-tools/src/write-catalog.c: Likewise.
	* gettext-tools/src/write-java.c: Likewise.
	* gettext-tools/src/write-po.c: Likewise.
	* gettext-tools/src/x-csharp.c: Likewise.
	* gettext-tools/src/x-elisp.c: Likewise.
	* gettext-tools/src/x-java.c: Likewise.
	* gettext-tools/src/x-javascript.c: Likewise.
	* gettext-tools/src/x-librep.c: Likewise.
	* gettext-tools/src/x-lisp.c: Likewise.
	* gettext-tools/src/x-perl.c: Likewise.
	* gettext-tools/src/x-python.c: Likewise.
	* gettext-tools/src/x-scheme.c: Likewise.
	* gettext-tools/src/x-sh.c: Likewise.
	* gettext-tools/src/x-tcl.c: Likewise.
	* gettext-tools/src/x-vala.c: Likewise.
	* gettext-tools/src/xg-encoding.c: Likewise.
	* gettext-tools/src/xgettext.c: Likewise.

2019-03-31  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Improve documentation regarding the TERM value.
	* libtextstyle/doc/libtextstyle.texi (The TERM variable): Many more details.
	(Terminal emulators, Consoles): New subsections.

2019-03-31  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Support for terminal types with 256 colors.
	* gnulib-local/lib/term-ostream.oo.c (term_ostream_create): Accept all $TERM
	values that end in -16color or -256 color (such as Eterm-256color,
	mlterm-256color, or putty-256color).
	* libtextstyle/NEWS: Mention the change.

2019-03-30  Takesi Ayanokoji  <ayanokoji.takesi@gmail.com>

	po-mode: Enable highlighting of #, lines.
	* gettext-tools/emacs/po-mode.el (po-font-lock-keywords): Add rule for #, lines.

2019-03-30  Bruno Haible  <bruno@clisp.org>

	po-mode: Remove support for Emacs versions < 22.
	Emacs 22 is the oldest version still in use, see
	<https://repology.org/project/emacs/versions>.

	* gettext-tools/emacs/po-compat.el: Remove conditional code for Emacs < 22.
	* gettext-tools/emacs/po-mode.el: Likewise.
	(po-rehighlight): Remove function.
	(po-check-all-pending-edits, po-check-for-pending-edit): Update.
	* gettext-tools/emacs/start-po.el: Update comment.

2019-03-30  Bruno Haible  <bruno@clisp.org>

	po-mode: Remove support for XEmacs.
	* gettext-tools/emacs/po-mode.el: Remove conditional code for XEmacs.
	* gettext-tools/emacs/po-compat.el: Likwise.

2019-03-30  Bruno Haible  <bruno@clisp.org>

	build: Move the Emacs package sources to subdirectory gettext-tools/emacs/.
	* gettext-tools/emacs/*.el: Moved here from gettext-tools/misc/.
	* gettext-tools/emacs/Makefile.am: New file, based on
	gettext-tools/misc/Makefile.am.
	* gettext-tools/misc/Makefile.am (lisp_LISP): Remove variable.
	* gettext-tools/configure.ac (AC_CONFIG_FILES): Add emacs/Makefile.
	* gettext-tools/Makefile.am (SUBDIRS): Add 'emacs'.

2019-03-30  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.

2019-03-27  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Add support for Windows consoles.
	* gnulib-local/lib/term-ostream.oo.c: Include <windows.h>, msvc-nothrow.h,
	<io.h>.
	(struct term_ostream): Add fields handle, is_windows_console,
	default_console_attributes, current_console_attributes.
	(out_color_change, out_bgcolor_change, out_underline_change, out_attr_change,
	restore, async_restore, async_set_attributes_from_default, term_ostream::flush):
	Add separate code path for Windows consoles.
	(term_ostream_create): On Windows, test whether the handle refers to a console,
	and initialize the new fields.
	* gnulib-local/modules/term-ostream (Depends-on): Add msvc-nothrow.
	* libtextstyle/NEWS: Mention it.

2019-03-27  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Make the SIGCONT handler work more reliably.
	* gnulib-local/lib/term-ostream.oo.c (out_attr_change): Modify active_attr
	before emitting the escape sequences, not afterwards.
	* libtextstyle/NEWS: Mention the fix.

2019-03-27  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Mention fixes.
	* libtextstyle/NEWS: Mention two fixes done in the gnulib module
	'term-style-control'.

2019-03-27  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Small fix for last commit.
	* gnulib-local/lib/term-ostream.oo.c (struct term_ostream): Mark fd volatile.

2019-03-27  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2019-03-27  Bruno Haible  <bruno@clisp.org>

	its: Simplify code.
	Suggested by Daiki Ueno.

	* gettext-tools/src/its.c (normalize_whitespace): Remove local variable.

2019-03-26  Bruno Haible  <bruno@clisp.org>

	its: Fix test failure.
	* gettext-tools/src/its.c (normalize_whitespace): Fix detection of paragraph
	boundary. Get rid of initial trim() call.
	* gettext-tools/tests/xgettext-its-1: Fix typo. Verify removal of whitespace
	at the end of the last paragraph.
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add memchr.

2019-03-26  Bruno Haible  <bruno@clisp.org>

	build: Use gnulib module 'strchrnul' explicitly.
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add strchrnul.

2019-03-24  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Use gnulib module 'term-style-control'.
	* gnulib-local/lib/term-ostream.oo.h: Include term-style-control.h.
	(ttyctl_t): Remove type.
	* gnulib-local/lib/term-ostream.oo.c (DEBUG_SIGNALS): Remove macro.
	Don't include <signal.h>, <stdio.h>, <sys/stat.h>, fatal-signal.h,
	sig-handler.h, same-inode.h.
	(SIZEOF): Remove macro.
	(nonintr_tcgetattr, nonintr_tcsetattr): Remove functions.
	(log_message, sprintf_integer, simple_errno_string, simple_signal_string,
	log_signal_handler_called): Remove functions.
	(struct term_ostream): Remove fields tty_control, same_as_stderr,
	non_default_active. Add control_data field instead.
	(get_control_data): New function.
	(BLOCK_SIGNALS_DURING_NON_DEFAULT_STYLE_OUTPUT): Remove macro.
	(term_fd): Remove variable.
	(pgrp_status_t): Remove type.
	(pgrp_status): Remove variable.
	(update_pgrp_status): Remove function.
	(out_filename): Remove variable.
	(out_error): Use out_stream instead of out_filename.
	(restore, tcsetattr_failed): Remove functions.
	(orig_lflag_set, orig_lflag): Remove variables.
	(clobber_local_mode, restore_local_mode): Remove functions.
	(job_control_signals): Remove variable.
	(num_job_control_signals): Remove macro.
	(relevant_signal_set, relevant_signal_set_initialized): Remove variables.
	(init_relevant_signal_set, block_relevant_signals, unblock_relevant_signals,
	is_ignored, show_signal_marker, fatal_or_stopping_signal_handler,
	fatal_signal_handler, stopping_signal_handler, continuing_signal_handler,
	ensure_continuing_signal_handler, ensure_other_signal_handlers): Remove
	functions.
	(out_attr_change): Set out_stream and out_fd.
	(activate_non_default_attr, deactivate_non_default_attr): Remove functions.
	(restore, async_restore, async_set_attributes_from_default): New functions.
	(controller): New variable.
	(activate_default_attr, output_buffer): Update.
	(term_ostream::free): Invoke deactivate_term_style_controller.
	(term_ostream_create): Invoke activate_term_style_controller.
	* gnulib-local/m4/term-ostream.m4 (gl_TERM_OSTREAM): Don't test for tcgetattr().
	* gnulib-local/modules/term-ostream (Depends-on): Add term-style-control. Remove
	fatal-signal, sigaction, sigprocmask, same-inode.

2019-03-24  Bruno Haible  <bruno@clisp.org>

	moopp: Allow forward references to the <class>_representation type.
	* gnulib-local/build-aux/moopp (func_version): Bump copyright year.
	(func_emit_source_c): Move the <class>_representation type alias to the top
	of the file.

2019-03-20  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Fix a memory access from a signal handler.
	* gnulib-local/lib/term-ostream.oo.c (struct term_ostream): Mark active_attr
	field as volatile.

2019-03-20  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Bump version number.

2019-03-20  Bruno Haible  <bruno@clisp.org>

	Use _GL_ASYNC_SAFE from gnulib.
	* gettext-tools/src/plural-eval.h (sigfpe_code): Mark as volatile.
	* gettext-tools/src/plural-eval.c (sigfpe_code): Likewise.
	(sigfpe_handler): Mark as _GL_ASYNC_SAFE.
	* gnulib-local/lib/term-ostream.oo.c (ASYNC_SAFE): Remove macro.
	Use _GL_ASYNC_SAFE instead.

2019-03-20  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2019-03-20  Bruno Haible  <bruno@clisp.org>

	Update .gitignore after 2019-03-12 change.

2019-03-17  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Bump version number.

2019-03-17  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Bump version number.

2019-03-17  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Implement reliable tty control.
	* gnulib-local/lib/term-ostream.oo.c (DEBUG_SIGNALS): New macro.
	Include <stdio.h>, <sys/stat.h>.
	(NOFLSH): Define fallback value.
	Include sig-handler.h, same-inode.h.
	(ASYNC_SAFE): New macro.
	(color_bgr): Mark as ASYNC_SAFE.
	(nonintr_tcgetattr, nonintr_tcsetattr): New functions.
	(log_message, sprintf_integer, simple_errno_string, simple_signal_string,
	log_signal_handler_called): New functions.
	(struct term_ostream): Add fields restore_colors, restore_weight,
	restore_posture, restore_underline, tty_control, same_as_stderr.
	(BLOCK_SIGNALS_DURING_NON_DEFAULT_STYLE_OUTPUT): New macro.
	(term_fd): New variable.
	(pgrp_status_t): New type.
	(pgrp_status): New variable.
	(update_pgrp_status): New function.
	(out_stream): New variable.
	(restore_colors, restore_weight, restore_posture, restore_underline): Remove
	variables.
	(out_color_change, out_bgcolor_change, out_weight_change, out_posture_change,
	out_underline_change): New functions, extracted from out_attr_change.
	(out_attr_change): Call these functions.
	(restore): Use out_stream.
	(tcsetattr_failed): New function.
	(orig_lflag_set, orig_lflag): New variables.
	(clobber_local_mode, restore_local_mode): New functions.
	(job_control_signals): Renamed from stopping_signals. Add SIGCONT.
	(num_job_control_signals): Renamed from num_stopping_signals.
	(relevant_signal_set): Replaces stopping_signal_set.
	(relevant_signal_set_initialized): New variable.
	(init_relevant_signal_set): Replaces init_stopping_signal_set.
	(block_relevant_signals): Replaces block_stopping_signals.
	(unblock_relevant_signals): Replaces unblock_stopping_signals.
	(is_ignored): New function.
	(show_signal_marker): New function.
	(fatal_or_stopping_signal_handler, fatal_signal_handler,
	stopping_signal_handler, continuing_signal_handler,
	ensure_continuing_signal_handler, ensure_other_signal_handlers): New functions.
	(activate_non_default_attr, deactivate_non_default_attr): Rewritten.
	(term_ostream::free): Unset term_fd and call update_pgrp_status.
	(term_ostream_create): Initialize the fields restore_colors, restore_weight,
	restore_posture, restore_underline, tty_control, same_as_stderr. Call
	init_relevant_signal_set. Set term_fd and call ensure_continuing_signal_handler
	and update_pgrp_status.
	* gnulib-local/m4/term-ostream.m4 (gl_TERM_OSTREAM): Check for tcgetattr.
	* gnulib-local/modules/term-ostream (Depends-on): Add sigaction, same-inode.
	* libtextstyle/NEWS: Mention the change.

2019-03-17  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Fix build failure on Cygwin (regression from 2019-03-15).
	* libtextstyle/lib/Makefile.am ($(srcdir)/libtextstyle.sym.in): Renamed
	from $(srcdir)/libtextstyle.sym.
	(libtextstyle.sym): New rule.
	(MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST): Update accordingly.
	(config.h): Depend on libtextstyle.sym in the build directory.
	(libtextstyle_la_LDFLAGS: Use libtextstyle.sym in the build directory.

2019-03-17  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Clean up leftovers from 2019-03-13 commit.
	* libtextstyle/lib/Makefile.am (libtextstyle_la_LINK): Remove variable.

2019-03-16  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Complete styled_ostream_flush_to_current_style declaration.
	* libtextstyle/lib/textstyle.h (term_styled_ostream_flush_to_current_style,
	html_styled_ostream_flush_to_current_style): New declarations.

2019-03-16  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Protect better against EINTR.
	* gnulib-local/lib/fd-ostream.oo.c (nonintr_tcdrain): New function.
	(fd_ostream::flush): Use it instead of tcdrain.
	* gnulib-local/lib/file-ostream.oo.c: Include <errno.h>.
	(nonintr_tcdrain): New function.
	(file_ostream::flush): Use it instead of tcdrain.
	* gnulib-local/lib/term-ostream.oo.c (nonintr_tcdrain): New function.
	(term_ostream::flush): Use it instead of tcdrain.

2019-03-15  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Reexport isatty() override from gnulib.
	This is necessary for programs that are compiled for native Windows and
	run in a Cygwin console.

	* libtextstyle/autogen.sh (GNULIB_MODULES): Add 'isatty'.
	* libtextstyle/configure.ac: Set GNULIB_ISATTY to 0.
	* libtextstyle/lib/textstyle.h (libtextstyle_isatty): New declaration.
	(isatty): Redirect to libtextstyle_isatty.

2019-03-14  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Use less code from libxml.
	* libtextstyle/gnulib-local/lib/libxml/xmlversion.in.h.diff: New file.
	* gnulib-local/lib/libxml/save.h (xmlEncodeAttributeEntities): Declare also when
	LIBXML_OUTPUT_ENABLED is 0.

2019-03-14  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Fix "make clean" failure in VPATH builds.
	* libtextstyle/lib/Makefile.am (CLEANDIRS_NOT_IN_SRCDIR): Remove 'textstyle'.
	(DISTCLEANDIRS_NOT_IN_SRCDIR): Add 'textstyle'.

2019-03-14  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Make sure we get new versions also of mdate-sh.
	* libtextstyle/autogen.sh: Erase more files in build-aux.

2019-03-14  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Remove unused code for exporting variables from Windows DLLs.
	Here we use the third approach listed in gettext-tools/woe32dll/export.h, not
	the fourth approach.

	* libtextstyle/Makefile.am: Remove code that was never enabled.
	* libtextstyle/lib/Makefile.am: Likewise.
	* libtextstyle/configure.ac (false): Remove conditional.

2019-03-14  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Add metainformation for Windows.

2019-03-14  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Add metainformation for Windows.
	* libtextstyle/lib/libtextstyle.rc: New file.
	* libtextstyle/lib/Makefile.am (EXTRA_DIST): Add it.
	(WOE32_LIBADD): New variable.
	(libtextstyle.res.lo): New rule.
	(libtextstyle_la_LIBADD, libtextstyle_la_DEPENDENCIES): Augment.

2019-03-13  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Don't use a C++ compiler.
	* libtextstyle/gnulib-local/modules/fd-styled-ostream.diff: New file.
	* libtextstyle/gnulib-local/modules/html-styled-ostream.diff: New file.
	* libtextstyle/gnulib-local/modules/term-styled-ostream.diff: New file.
	* libtextstyle/lib/Makefile.am (libtextstyle_la_LINK): Use the C compiler
	always.
	* libtextstyle/configure.ac: Remove LT_LANG([C++]), AC_PROG_CXX, and related
	invocations.

2019-03-13  Bruno Haible  <bruno@clisp.org>

	libasprintf: Add metainformation for Windows.
	* gettext-runtime/libasprintf/configure.ac: Set RC and WOE32 variables.
	* gettext-runtime/libasprintf/libasprintf.rc: New file.
	* gettext-runtime/libasprintf/Makefile.am (EXTRA_DIST): Add it.
	(WOE32_LIBADD): New variable.
	(libasprintf.res.lo): New rule.
	(libasprintf_la_LIBADD, libasprintf_la_DEPENDENCIES): New variables.

2019-03-13  Bruno Haible  <bruno@clisp.org>

	build: Update Windows support.
	* gettext-runtime/intl/libintl.rc: Update.
	* gettext-tools/libgettextpo/libgettextpo.rc: Likewise.
	* windows/gettext.rc: Likewise.

2019-03-13  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Bump version number.

2019-03-12  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Bump version number.

2019-03-12  Bruno Haible  <bruno@clisp.org>

	libtextstyle: New function styled_ostream_flush_to_current_style.
	* gnulib-local/lib/styled-ostream.oo.h (struct styled_ostream): Add method
	flush_to_current_style.
	* gnulib-local/lib/fd-styled-ostream.oo.c
	(fd_styled_ostream::flush_to_current_style): New method.
	* gnulib-local/lib/term-styled-ostream.oo.c
	(term_styled_ostream::flush_to_current_style): New method.
	* gnulib-local/lib/html-styled-ostream.oo.c
	(html_styled_ostream::flush_to_current_style): New method.
	* libtextstyle/lib/textstyle.h (styled_ostream_flush_to_current_style): New
	declaration.
	* libtextstyle/doc/libtextstyle.texi (The styled_ostream class): Document
	styled_ostream_flush_to_current_style.
	* libtextstyle/NEWS: Mention the change.

2019-03-12  Bruno Haible  <bruno@clisp.org>

	libtextstyle: New function html_ostream_flush_to_current_style.
	* gnulib-local/lib/html-ostream.oo.h (struct html_ostream): Add method
	flush_to_current_style.
	* gnulib-local/lib/html-ostream.oo.c (html_ostream::flush_to_current_style): New
	method.
	* libtextstyle/lib/textstyle.h (html_ostream_flush_to_current_style): New
	declaration.
	* libtextstyle/doc/libtextstyle.texi (The html_ostream class): Document
	html_ostream_flush_to_current_style.
	* libtextstyle/NEWS: Mention the change.

2019-03-12  Bruno Haible  <bruno@clisp.org>

	libtextstyle: New function term_ostream_flush_to_current_style.
	* gnulib-local/lib/term-ostream.oo.h (struct term_ostream): Add method
	flush_to_current_style.
	* gnulib-local/lib/term-ostream.oo.c (struct term_ostream): Add fields
	default_attr, active_attr, non_default_active.
	(out_attr_change): Remove second argument. Update active_attr.
	(activate_non_default_attr, deactivate_non_default_attr, activate_default_attr):
	New functions, extracted from output_buffer.
	(output_buffer): Use them. Add a second argument.
	(term_ostream::write_mem, term_ostream::flush): Update output_buffer calls.
	(term_ostream::free): Add an assertion.
	(term_ostream::flush_to_current_style): New method.
	(term_ostream_create): Initialize the fields default_attr, active_attr,
	non_default_active.
	* libtextstyle/lib/textstyle.h (term_ostream_flush_to_current_style): New
	declaration.
	* libtextstyle/doc/libtextstyle.texi (The term_ostream class): Document
	term_ostream_flush_to_current_style.
	* libtextstyle/NEWS: Mention the change.

2019-03-12  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Add a second argument to the 'flush' operations.
	* gnulib-local/lib/ostream.oo.h (ostream_flush_scope_t): New type.
	(ostream::flush): Add scope parameter.

	* gnulib-local/lib/file-ostream.oo.c: Include <unistd.h>, <termios.h>.
	(file_ostream::flush): Add a scope parameter.
	* gnulib-local/modules/file-ostream (Depends-on): Add 'fsync'.
	(configure.ac): Check for tcdrain.

	* gnulib-local/lib/fd-ostream.oo.c: Include <unistd.h>, <termios.h>.
	(fd_ostream::flush): Add a scope parameter.
	(fd_ostream::free): Update flush call.
	* gnulib-local/modules/fd-ostream (Depends-on): Add 'fsync'.
	(configure.ac): Check for tcdrain.

	* gnulib-local/lib/term-ostream.oo.c: Include <unistd.h>, <termios.h>.
	(term_ostream::flush): Add scope parameter.
	(term_ostream::free): Update flush call.
	* gnulib-local/m4/term-ostream.m4 (gl_TERM_OSTREAM): Check for tcdrain.
	* gnulib-local/modules/term-ostream (Depends-on): Add 'fsync'.

	* gnulib-local/lib/memory-ostream.oo.c (memory_ostream::flush): Add scope
	parameter.

	* gnulib-local/lib/iconv-ostream.oo.c (iconv_ostream::flush): Add scope
	parameter.

	* gnulib-local/lib/html-ostream.oo.c (html_ostream::flush): Add scope parameter.
	Emit closing </span> tags.

	* gnulib-local/lib/fd-styled-ostream.oo.c (fd_styled_ostream::flush): Add scope
	parameter.
	* gnulib-local/lib/term-styled-ostream.oo.c (term_styled_ostream::flush): Add
	scope parameter.
	* gnulib-local/lib/html-styled-ostream.oo.c (html_styled_ostream::flush): Add
	scope parameter.

	* libtextstyle/lib/textstyle.h (ostream_flush_scope_t): New type.
	(ostream_flush, styled_ostream_flush, file_ostream_flush, fd_ostream_flush,
	term_ostream_flush, memory_ostream_flush, iconv_ostream_flush,
	html_ostream_flush, term_styled_ostream_flush, html_styled_ostream_flush): Add
	scope parameter.
	* libtextstyle/doc/libtextstyle.texi (The ostream class): Add scope parameter to
	flush method.
	* libtextstyle/NEWS: Mention the change.

2019-03-11  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Add a program for ad-hoc testing.
	* libtextstyle/adhoc-tests/README: New file.
	* libtextstyle/adhoc-tests/hello.c: New file, based on
	libtextstyle/examples/color-hello/hello.c.
	* libtextstyle/adhoc-tests/hello-default.css: New file, copied from
	libtextstyle/examples/color-hello/hello-default.css.
	* libtextstyle/adhoc-tests/Makefile.am: New file.
	* libtextstyle/configure.ac (AC_CONFIG_FILES): Add adhoc-tests/Makefile.
	* libtextstyle/Makefile.am (SUBDIRS): Add adhoc-tests.

2019-03-11  Bruno Haible  <bruno@clisp.org>

	doc: Clarify locale name syntax.
	* gettext-tools/doc/gettext.texi (Locale Names): Fix typo in locale name syntax.
	* gettext-tools/doc/msginit.texi: Clarify that the '-l' argument optionally
	contains an encoding.
	* gettext-tools/src/msginit.c (usage): Likewise.

2019-03-10  Bruno Haible  <bruno@clisp.org>

	doc: Add reference to Pology.
	* gettext-tools/doc/gettext.texi (Other tools): New section.

2019-03-04  Bruno Haible  <bruno@clisp.org>

	build: Make shared library dependencies work in relocatable installation.
	* gettext-tools/gnulib-lib/Makefile.am (RELOCATABLE_LIBRARY_PATH): New variable.
	(libgettextlib_la_LDFLAGS): Augment for relocatable installation.
	* gettext-tools/src/Makefile.am (libgettextsrc_la_LDFLAGS): Augment for
	relocatable installation.
	* gettext-tools/libgettextpo/Makefile.am (RELOCATABLE_LIBRARY_PATH): New
	variable.
	(libgettextpo_la_LDFLAGS): Augment for relocatable installation.

2019-03-04  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.

2019-03-04  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2019-02-24  Bruno Haible  <bruno@clisp.org>

	libintl: Fix installation with BSD 'make'.
	* gettext-runtime/intl/Makefile.am (install-exec-libintl): Create destination
	directory first.

2019-02-16  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Improve the way the library is built.
	* libtextstyle/lib/Makefile.am (libtextstyle_la_LDFLAGS): Add '-no-undefined',
	needed for building on older versions of AIX and useful to verify no undefined
	symbols are used by mistake. Add '-export-symbols', to reduce the loading time
	of the shared library.

2019-02-15  Daiki Ueno  <ueno@gnu.org>

	its: Avoid uninitialized variable
	* gettext-tools/src/its.c (normalize_whitespace): Initialize last_ws.
	Fixes commit 89e7d2663bd27b8cdd300f26095f49d2c7519030.

2019-02-15  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Omit tests that rely on more than the public libtextstyle API.
	* libtextstyle/autogen.sh: Don't pass --with-tests to gnulib-tool.
	(GNULIB_MODULES): Add term-ostream-tests.
	* gnulib-local/modules/term-ostream-tests (Makefile.am): Don't add
	@INTL_MACOSX_LIBS@ to test_term_ostream_LDADD.
	* gettext-tools/gnulib-tests/Makefile.am (test_term_ostream_LDADD): Add
	@INTL_MACOSX_LIBS@ here.

2019-02-15  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Don't use an external libglib.
	* gnulib-local/m4/libglib.m4 (gl_LIBGLIB): Accept an optional FORCE-INCLUDED
	argument.
	* libtextstyle/gnulib-local/modules/libglib.diff: New file.

2019-02-15  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Don't use an external libxml.
	* gnulib-local/m4/libxml.m4 (gl_LIBXML): Accept an optional FORCE-INCLUDED
	argument.
	* libtextstyle/gnulib-local/modules/libxml.diff: New file.

2019-02-15  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Don't use an external libcroco.
	* gnulib-local/m4/libcroco.m4 (gl_LIBCROCO): Accept an optional FORCE-INCLUDED
	argument.
	* libtextstyle/gnulib-local/modules/libcroco.diff: New file.
	* libtextstyle/autogen.sh: Pass another --local-dir option to gnulib-tool.

2019-02-15  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Fix build error on Cygwin and mingw.
	* libtextstyle/lib/Makefile.am (AM_CPPFLAGS): Define LIBXML_STATIC.

2019-02-15  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Really fix hyperlinks to table of contents in HTML doc.
	* libtextstyle/doc/Makefile.am (libunistring_toc.html): Fix typo in last commit.

2019-02-15  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Document when and how to turn off styling.
	* libtextstyle/doc/libtextstyle.texi (Basic use): Document when and how to turn
	off styling.
	* gnulib-local/lib/term-styled-ostream.oo.c (term_styled_ostream_create): Handle
	a NULL css_filename explicitly.

2019-02-15  Daiki Ueno  <ueno@gnu.org>

	its: Add new preserveSpaceRule "paragraph"
	This implements a new text extraction rule preserving paragraph
	boundaries, as mentioned in:
	https://gitlab.gnome.org/GNOME/glib/issues/1350

	* gettext-tools/doc/gettext.texi (Preparing ITS Rules): Mention "paragraph".
	* gettext-tools/src/its.c (its_rule_list_extract_text): Accept "paragraph".
	(its_merge_context_merge_node): Likewise.
	(normalize_whitespace): Handle "paragraph" rule.
	* gettext-tools/src/its.h (ITS_WHITESPACE_NORMALIZE_PARAGRAPH): New enum value.
	* gettext-tools/tests/xgettext-its-1: Add test for "paragraph" rule.

2019-02-15  Daiki Ueno  <ueno@gnu.org>

	its: Make whitespace normalization logic simpler
	* gettext-tools/src/its.c (normalize_whitespace): Use parallel
	pointers for normalizing whitespaces, instead of memmove.
	Suggested by Bruno Haible.

2019-02-14  Bruno Haible  <bruno@clisp.org>

	libtextstyle: In the examples, actually respect the --color option.
	Reported by Akim Demaille <akim.demaille@gmail.com>.

	* libtextstyle/examples/color-filter/filter.c (main): Set style_file_name to
	NULL when styling should be disabled.
	* libtextstyle/examples/color-hello/hello.c (main): Likewise.

2019-02-14  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Assume that the texinfo sources are in the source dir.
	* libtextstyle/doc/Makefile.am (stamp-vti, libtextstyle.html,
	libtextstyle_toc.html): Lookup libunistring.texi in $(srcdir).

2019-02-14  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Fix hyperlinks to table of contents in HTML doc.
	Reported by Akim Demaille <akim.demaille@gmail.com>.

	* libtextstyle/doc/Makefile.am (libunistring_toc.html): Replace references to
	libtextstyle.html with references to libtextstyle_toc.html.

2019-02-14  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Document the link options more precisely.
	* libtextstyle/doc/libtextstyle.texi (Link options): Document the link
	dependencies.

2019-02-14  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Fix build failure on mingw.
	* gnulib-local/modules/html-styled-ostream (Depends-on): Add 'close'.

2019-02-14  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Add support for VPATH builds with OpenBSD 'make'.
	* gnulib-local/modules/*ostream (Makefile.am): In the rules that use moopp,
	prefix the target file names with '$(srcdir)/'.

2019-02-13  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Put the .sym file in the source directory.
	* libtextstyle/lib/Makefile.am (libtextstyle.sym): Generate in the source
	directory.
	(config.h): Update rule.

2019-02-12  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Fix configuration of the example programs.
	Reported by Akim Demaille <akim.demaille@gmail.com>.

	* libtextstyle/Makefile.am (EXTRA_DIST): Add m4/libtextstyle.m4.

2019-02-12  Bruno Haible  <bruno@clisp.org>

	libtextstyle: Bump version number.
	* libtextstyle/version.sh (VERSION): Set to 0.6.

2019-02-10  Bruno Haible  <bruno@clisp.org>

	libtextstyle: New project.
	* libtextstyle/AUTHORS: New file, extracted from gettext/AUTHORS.
	* libtextstyle/COPYING: New file, copied from gettext/COPYING.
	* libtextstyle/DEPENDENCIES: New file, based on gettext/DEPENDENCIES.
	* libtextstyle/HACKING: New file, based on gettext/HACKING.
	* libtextstyle/INSTALL: New file, copied from gettext/INSTALL.
	* libtextstyle/Makefile.am: New file, based on libunistring/Makefile.am.
	* libtextstyle/NEWS: New file.
	* libtextstyle/README: New file, based on libunistring/README.
	* libtextstyle/autogen.sh: New file, based on libunistring/autogen.sh.
	* libtextstyle/configure.ac: New file, based on libunistring/configure.ac.
	* libtextstyle/build-aux/texi2html: New file, copied from
	libunistring/build-aux/texi2html.
	* libtextstyle/doc/Makefile.am: New file, based on libunistring/doc/Makefile.am.
	* libtextstyle/doc/fdl.texi: New file, copied from gnulib/doc/fdl.texi.
	* libtextstyle/doc/gpl.texi: New file, copied from gnulib/doc/gpl-3.0.texi.
	* libtextstyle/doc/libtextstyle.texi: New file, partially based on
	gettext/gettext-tools/doc/gettext.texi.
	* libtextstyle/examples/color-filter/INSTALL: New file, based on
	gettext/gettext-tools/examples/hello-c/INSTALL.
	* libtextstyle/examples/color-filter/Makefile.am: New file, based on
	gettext/gettext-tools/examples/hello-c/Makefile.am.
	* libtextstyle/examples/color-filter/README: New file.
	* libtextstyle/examples/color-filter/autoclean.sh: New file, based on
	gettext/gettext-tools/examples/hello-c/autoclean.sh.
	* libtextstyle/examples/color-filter/autogen.sh: New file, based on
	gettext/gettext-tools/examples/hello-c/autogen.sh.
	* libtextstyle/examples/color-filter/configure.ac: New file.
	* libtextstyle/examples/color-filter/filter.c: New file.
	* libtextstyle/examples/color-filter/filter-default.css: New file.
	* libtextstyle/examples/color-hello/INSTALL: New file, based on
	gettext/gettext-tools/examples/hello-c/INSTALL.
	* libtextstyle/examples/color-hello/Makefile.am: New file, based on
	gettext/gettext-tools/examples/hello-c/Makefile.am.
	* libtextstyle/examples/color-hello/README: New file.
	* libtextstyle/examples/color-hello/autoclean.sh: New file, based on
	gettext/gettext-tools/examples/hello-c/autoclean.sh.
	* libtextstyle/examples/color-hello/autogen.sh: New file, based on
	gettext/gettext-tools/examples/hello-c/autogen.sh.
	* libtextstyle/examples/color-hello/configure.ac: New file.
	* libtextstyle/examples/color-hello/hello.c: New file.
	* libtextstyle/examples/color-hello/hello-default.css: New file.
	* libtextstyle/examples/color-hello/names.c: New file.
	* libtextstyle/lib/Makefile.am: New file, based on libunistring/lib/Makefile.am.
	* libtextstyle/lib/misc.h: New file.
	* libtextstyle/lib/misc.c: New file.
	* libtextstyle/lib/notinline.h: New file, based on
	libunistring/lib/unistring-notinline.h.
	* libtextstyle/lib/stdbool.mini.h: New file, based on
	libunistring/lib/stdbool.mini.h.
	* libtextstyle/lib/textstyle.h: New file, based on
	gnulib-local/lib/*ostream.oo.h.
	* libtextstyle/lib/textstyle/version.in.h: New file, based on
	libunistring/lib/unistring/version.in.h.
	* libtextstyle/lib/textstyle/woe32dll.in.h: New file, based on
	libunistring/lib/unistring/woe32dll.in.h.
	* libtextstyle/lib/version.c: New file, based on libunistring/lib/version.c.
	* libtextstyle/m4/init-package-version.m4: New file, copied from
	libunistring/m4/init-package-version.m4.
	* libtextstyle/tests/Makefile.am: New file, based on
	libunistring/tests/Makefile.am.
	* libtextstyle/version.sh: New file, based on libunistring/version.sh.
	* libtextstyle/woe32dll/c++fd-styled-ostream.cc: New file.
	* libtextstyle/woe32dll/c++html-styled-ostream.cc: New file.
	* libtextstyle/woe32dll/c++term-styled-ostream.cc: New file.
	* gnulib-local/lib/glib/gstring.c (g_string_append_c): In libtextstyle, honor a
	macro definition.
	* gnulib-local/lib/libxml/elfgcchack.h: In libtextstyle, make this entire file a
	no-op.
	* gnulib-local/lib/libxml/globals.in.h (docbDefaultSAXHandler,
	htmlDefaultSAXHandler, oldXMLWDcompatibility, xmlBufferAllocScheme,
	xmlDefaultBufferSize, xmlDefaultSAXHandler, xmlDefaultSAXLocator,
	xmlDoValidityCheckingDefaultValue, xmlFree, xmlGenericError, xmlStructuredError,
	xmlGenericErrorContext, xmlStructuredErrorContext, xmlGetWarningsDefaultValue,
	xmlIndentTreeOutput, xmlTreeIndentString, xmlKeepBlanksDefaultValue,
	xmlLineNumbersDefaultValue, xmlLoadExtDtdDefaultValue, xmlMalloc,
	xmlMallocAtomic, xmlMemStrdup, xmlParserDebugEntities, xmlParserVersion,
	xmlPedanticParserDefaultValue, xmlRealloc, xmlSaveNoEmptyTags,
	xmlSubstituteEntitiesDefaultValue, xmlRegisterNodeDefaultValue,
	xmlDeregisterNodeDefaultValue, xmlLastError,
	xmlParserInputBufferCreateFilenameValue, xmlOutputBufferCreateFilenameValue): In
	libtextstyle, honor a macro definition.
	* gnulib-local/lib/libxml/globals.c (xmlFree, xmlMalloc, xmlMallocAtomic,
	xmlMemStrdup, xmlRealloc, docbDefaultSAXHandler, htmlDefaultSAXHandler,
	oldXMLWDcompatibility, xmlBufferAllocScheme, xmlDefaultBufferSize,
	xmlDefaultSAXHandler, xmlDefaultSAXLocator, xmlDoValidityCheckingDefaultValue,
	xmlGenericError, xmlStructuredError, xmlGenericErrorContext,
	xmlStructuredErrorContext, xmlGetWarningsDefaultValue, xmlIndentTreeOutput,
	xmlTreeIndentString, xmlKeepBlanksDefaultValue, xmlLineNumbersDefaultValue,
	xmlLoadExtDtdDefaultValue, xmlParserDebugEntities, xmlParserVersion,
	xmlPedanticParserDefaultValue, xmlSaveNoEmptyTags,
	xmlSubstituteEntitiesDefaultValue, xmlRegisterNodeDefaultValue,
	xmlDeregisterNodeDefaultValue, xmlLastError,
	xmlParserInputBufferCreateFilenameValue, xmlOutputBufferCreateFilenameValue):
	Likewise.
	* gnulib-local/lib/libxml/xmlmemory.c (xmlMalloc): Likewise.

2019-02-10  Bruno Haible  <bruno@clisp.org>

	gnulib-local: New module 'fd-styled-ostream'.
	* gnulib-local/lib/fd-styled-ostream.oo.h: New file.
	* gnulib-local/lib/fd-styled-ostream.oo.c: New file.
	* gnulib-local/modules/fd-styled-ostream: New file.
	* gnulib-local/Makefile.am (EXTRA_DIST): Add them.

2019-02-10  Bruno Haible  <bruno@clisp.org>

	term-ostream: Remove the need for an exit handler.
	* gnulib-local/lib/term-ostream.oo.c (output_buffer): Delay the error() call
	until the default state has been restored.

2019-02-10  Bruno Haible  <bruno@clisp.org>

	term-ostream: Prepare for robustness through signal handling.
	* gnulib-local/lib/term-ostream.oo.h (ttyctl_t): New type.
	(term_ostream_create): Add tty_control argument.
	* gnulib-local/lib/term-ostream.oo.c (term_ostream_create): Likewise.
	* gnulib-local/lib/term-styled-ostream.oo.h: Include term-ostream.h.
	(term_styled_ostream_create): Add tty_control argument.
	* gnulib-local/lib/term-styled-ostream.oo.c (term_styled_ostream_create):
	Likewise.
	* gnulib-local/tests/test-term-ostream.c (main): Use TTYCTL_AUTO.
	* gettext-tools/src/color.c (print_color_test): Likewise.
	* gettext-tools/src/write-catalog.c (msgdomain_list_print): Likewise.

2019-02-10  Bruno Haible  <bruno@clisp.org>

	libasprintf: Tweak documentation formatting.
	* gettext-runtime/libasprintf/autosprintf.texi: Indent all paragraphs the same
	way.

2019-02-10  Bruno Haible  <bruno@clisp.org>

	Fix typo in comment.
	* gettext-tools/src/color.h (style_file_prepare): Fix typo in comment.

2019-02-10  Bruno Haible  <bruno@clisp.org>

	doc: Fix typo.
	* gettext-tools/doc/gettext.texi (Styles rules): Fix typo.

2019-02-09  Bruno Haible  <bruno@clisp.org>

	Update copyright years.

2019-02-09  Bruno Haible  <bruno@clisp.org>

	Remove automatically generated files from version control.

2019-02-09  Bruno Haible  <bruno@clisp.org>

	html-styled-ostream: Fix memory leak.
	* gnulib-local/lib/html-styled-ostream.oo.c (html_styled_ostream::free): Free
	the stream.

2019-02-09  Bruno Haible  <bruno@clisp.org>

	html-ostream: Fix memory leak.
	* gnulib-local/lib/html-ostream.oo.c: Include minmax.h.
	(verify_invariants, shrink_class_stack): New functions.
	(emit_pending_spans): Use them.
	(html_ostream::write_mem): Shrink class stack during newline processing.
	(html_ostream::free, html_ostream::begin_span): Verify invariants.
	(html_ostream::end_span): Likewise. Shrink class stack.
	* gnulib-local/modules/html-ostream (Depends-on): Add 'minmax'.

2019-02-08  Bruno Haible  <bruno@clisp.org>

	examples: Fix build failure when building from git (regression from 2018-10-23).
	* gettext-tools/examples/po/xsmallpot.sh: Build less of 'hello-pascal'.

2019-02-08  Bruno Haible  <bruno@clisp.org>

	color: Make color.c package-neutral.
	* gettext-tools/src/color.h (style_file_prepare): Add arguments.
	* gettext-tools/src/color.c: Don't include relocatable.h.
	(style_file_lookup): Add stylesdir_after_install argument.
	(style_file_prepare): Add arguments.
	* gettext-tools/src/write-catalog.c: Include relocatable.h.
	(GETTEXTSTYLESDIR): New macro.
	(msgdomain_list_print): Update style_file_prepare calls.
	* gettext-tools/tests/init-env.in (GETTEXTSTYLESDIR): New environment variable.

2019-02-08  Bruno Haible  <bruno@clisp.org>

	term-ostream: Accommodate a shell that is not in /bin/sh.
	* gnulib-local/tests/test-term-ostream-xterm.sh: Renamed from
	gnulib-local/tests/test-term-ostream-xterm.
	* gnulib-local/modules/term-ostream-tests (Files, Makefile.am): Update
	accordingly.
	* gnulib-local/Makefile.am (EXTRA_DIST): Likewise.

2019-02-08  Bruno Haible  <bruno@clisp.org>

	libglib: Fix list of files to clean.
	* gnulib-local/modules/libglib (MOSTLYCLEANFILES): Add glib.h-t, glibconfig.h-t.

2019-02-08  Bruno Haible  <bruno@clisp.org>

	build: Code style.
	* autogen.sh: Make it clear that 'touch config.h.in' is tied to autoheader.

2019-02-05  Bruno Haible  <bruno@clisp.org>

	Remove left-over empty directories in 'make distclean'.
	* gettext-tools/gnulib-tests/Makefile.am (distclean-local): New target.

2019-02-04  Bruno Haible  <bruno@clisp.org>

	Fix copyright years.

2019-01-25  Bruno Haible  <bruno@clisp.org>

	doc: Mention --color=test in the description of the --color option.
	Reported by Nathaniel M. Beaver <nathanielmbeaver@gmail.com>
	in <https://savannah.gnu.org/bugs/?55573>.

	* gettext-tools/doc/gettext.texi (Colorizing): Mention that the --color and
	--style options are applicable to many programs.
	(The --color option): Mention the 'test' value.

2019-01-21  Bruno Haible  <bruno@clisp.org>

	msginit: Update for current shape of Translation Project.
	Reported by Karl Ove Hufthammer <karl@huftis.org>
	in <https://lists.gnu.org/archive/html/bug-gettext/2019-01/msg00014.html>.

	* gettext-tools/projects/TP/teams.html: Fetched from teams.url.
	* gettext-tools/projects/TP/team-address: Update sed expressions for current
	structure of teams page.

2019-01-06  Bruno Haible  <bruno@clisp.org>

	Make cldr-plurals program more robust.
	* gettext-tools/src/cldr-plurals.c: Include closeout.h.
	(main): Arrange to invoke close_stdout at program exit.

2019-01-06  Bruno Haible  <bruno@clisp.org>

	Assume setlocale function.
	* gettext-runtime/src/envsubst.c (main): Assume setlocale exists.
	* gettext-runtime/src/gettext.c (main): Likewise.
	* gettext-runtime/src/ngettext.c (main): Likewise.
	* gettext-tools/src/cldr-plurals.c (main): Likewise.
	* gettext-tools/src/hostname.c (main): Likewise.
	* gettext-tools/src/msgattrib.c (main): Likewise.
	* gettext-tools/src/msgcat.c (main): Likewise.
	* gettext-tools/src/msgcmp.c (main): Likewise.
	* gettext-tools/src/msgcomm.c (main): Likewise.
	* gettext-tools/src/msgconv.c (main): Likewise.
	* gettext-tools/src/msgen.c (main): Likewise.
	* gettext-tools/src/msgexec.c (main): Likewise.
	* gettext-tools/src/msgfilter.c (main): Likewise.
	* gettext-tools/src/msgfmt.c (main): Likewise.
	* gettext-tools/src/msggrep.c (main): Likewise.
	* gettext-tools/src/msginit.c (main, canonical_locale_charset, get_title):
	Likewise.
	* gettext-tools/src/msgmerge.c (main): Likewise.
	* gettext-tools/src/msgunfmt.c (main): Likewise.
	* gettext-tools/src/msguniq.c (main): Likewise.
	* gettext-tools/src/recode-sr-latin.c (main): Likewise.
	* gettext-tools/src/urlget.c (main): Likewise.
	* gettext-tools/src/xgettext.c (main): Likewise.
	* gettext-tools/tests/testlocale.c (main): Likewise.
	* gettext-tools/tests/tstgettext.c (main): Likewise.
	* gettext-tools/tests/tstngettext.c (main): Likewise.
	* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Don't test whether setlocale
	exists.

2019-01-06  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.

2019-01-06  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2018-12-17  Bruno Haible  <bruno@clisp.org>

	Fix compilation error on HP-UX with gcc.
	* gnulib-local/lib/libxml/trionan.c: Include <float.h>.

2018-12-16  Bruno Haible  <bruno@clisp.org>

	Add comment regarding HP-UX cc in C99 mode.
	* gnulib-local/lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update
	comment.

2018-11-25  Bruno Haible  <bruno@clisp.org>

	intl: Really uninstall the intl/ subdir sources.
	* gettext-runtime/intl/Makefile.am (uninstall-sources): New target.

2018-11-25  Bruno Haible  <bruno@clisp.org>

	Fix compilation error (regression from today).
	* autogen.sh (GNULIB_MODULES_RUNTIME_FOR_SRC): Add 'unistd'.
	* gettext-runtime/src/envsubst.c: Include <unistd.h>.

2018-11-25  Bruno Haible  <bruno@clisp.org>

	build: Use Automake in intl subdirectory.
	* gettext-runtime/intl/Makefile.am: New file, based on
	gettext-runtime/intl/Makefile.in.
	* gettext-runtime/intl/Makefile.in: Remove file.
	* autogen.sh: Copy gettext-runtime/intl/Makefile.am to
	gettext-tools/intl/Makefile.am.
	* gettext-runtime/configure.ac (USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL,
	PACKAGE_IS_GETTEXT_TOOLS, PRELOADABLE_LIBINTL): New conditionals.
	* gettext-tools/configure.ac: Likewise.

2018-11-25  Bruno Haible  <bruno@clisp.org>

	build: Stop generating a VERSION file.
	* gettext-tools/configure.ac: Don't create intl/VERSION.
	* gettext-runtime/intl/Makefile.in (DISTFILES.normal): Remove variable.
	(distclean): Simplify accordingly.

2018-11-25  Bruno Haible  <bruno@clisp.org>

	build: Remove some duplicate .m4 files.
	* autogen.sh: Copy wchar_t.m4 and wint_t.m4 for libasprintf.
	* gettext-runtime/m4/codeset.m4: Remove file.
	* gettext-runtime/m4/extern-inline.m4: Remove file.
	* gettext-runtime/m4/intl-thread-locale.m4: Remove file.
	* gettext-runtime/m4/lcmessage.m4: Remove file.
	* gettext-runtime/m4/lock.m4: Remove file.
	* gettext-runtime/m4/longlong.m4: Remove file.
	* gettext-runtime/m4/threadlib.m4: Remove file.
	* gettext-runtime/m4/wchar_t.m4: Remove file.
	* gettext-runtime/m4/wint_t.m4: Remove file.
	* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Don't distribute them.
	* Makefile.am (distcheck-hook): Don't verify that they are identical copies.

2018-11-25  Bruno Haible  <bruno@clisp.org>

	build: Fix #line statements in bison-generated files.
	* gettext-tools/src/plural-exp.c: Revert changes from 2014-12-03 and 2014-12-04.
	* gettext-runtime/intl/Makefile.in (PLURAL_OBJECT): Remove variable.
	(OBJECTS): Use plural.lo always.
	($(srcdir)/plural.c): New rule.
	(.y.c, pluralx.c, pluralx.lo): Remove rules.
	(mostlyclean): Delete the temporary file of the plural.c rule.
	(maintainer-clean): Delete plural.c.
	* gettext-tools/configure.ac (intl/Makefile): Remove PLURAL_OBJECT hack.

2018-11-25  Bruno Haible  <bruno@clisp.org>

	build: Fix #line statements in bison-generated files.
	* gettext-tools/src/Makefile.am (po-gram-gen.c, cldr-plural.c): Override the
	Automake .y.c rule.
	(po-gram-gen.h, cldr-plural.h): Remove separate target.
	(po-gram-gen2.h): Generate in the source directory.

2018-11-25  Bruno Haible  <bruno@clisp.org>

	maint: Add write-up of how to do code coverage.

2018-11-25  Bruno Haible  <bruno@clisp.org>

	libasprintf: On mingw, really use our vasprintf function, not mingw_vasprintf.
	mingw now has a definition of 'vasprintf' in <stdio.h> that redirects to
	mingw_vasprintf, which does not support argument reordering (i.e.
	HAVE_POSIX_PRINTF is not defined). Make sure to avoid this function and use
	the one defined in our lib-asprintf.c instead.

	* gettext-runtime/libasprintf/lib-asprintf.h (asprintf): Define as macro
	redirecting to libasprintf_asprintf.
	(vasprintf): Define as macro redirecting to libasprintf_vasprintf.
	* gettext-runtime/libasprintf/lib-asprintf.c: Define also libasprintf_asprintf
	and libasprintf_vasprintf.
	* gettext-runtime/libasprintf/autosprintf.cc: Include lib-asprintf.h last.

2018-11-25  Bruno Haible  <bruno@clisp.org>

	msginit: Add comment about test failure on native Windows.
	* gettext-tools/tests/msginit-3: Add comment.

2018-11-25  Bruno Haible  <bruno@clisp.org>

	msginit: On native Windows, produce same PO header as on Unix.
	* gettext-tools/src/msginit.c (plural_forms): Eliminate a trailing CR.

2018-11-25  Bruno Haible  <bruno@clisp.org>

	envsubst: On native Windows, produce output suitable for the shell.
	* autogen.sh (GNULIB_MODULES_RUNTIME_FOR_SRC): Add 'binary-io'.
	* gettext-runtime/src/envsubst.c (main): In --variables mode, put stdout in
	binary mode.

2018-11-25  Bruno Haible  <bruno@clisp.org>

	Fix some mingw test failures.
	* gettext-tools/tests/intl-1: Ignore different end-of-line convention in the
	output.
	* gettext-tools/tests/intl-2: Likewise.
	* gettext-tools/tests/intl-3: Likewise.
	* gettext-tools/tests/msgfmt-desktop-1: Likewise.
	* gettext-tools/tests/msgfmt-desktop-2: Likewise.
	* gettext-tools/tests/sentence-1: Likewise.
	* gettext-tools/tests/cldr-plurals-1: Likewise.
	* gettext-tools/tests/lang-c: On native Windows, ignore different end-of-line
	convention in the output.
	* gettext-tools/tests/lang-c++: Likewise.
	* gettext-tools/tests/msgfilter-8: On native Windows, use sh, not /bin/sh.

2018-11-25  Bruno Haible  <bruno@clisp.org>

	Fix some mingw test failures.
	* gettext-tools/tests/init-env.in (wabs_srcdir, wabs_top_srcdir): New variables.
	(GETTEXTDATADIR): On mingw, use native Windows syntax.
	* gettext-tools/tests/format-c-3: Use wabs_srcdir instead of abs_srcdir, and
	wabs_top_srcdir instead of abs_top_srcdir.
	* gettext-tools/tests/format-c-4: Likewise.
	* gettext-tools/tests/format-c-5: Likewise.
	* gettext-tools/tests/gettextpo-1: Likewise.
	* gettext-tools/tests/intl-1: Likewise.
	* gettext-tools/tests/intl-2: Likewise.
	* gettext-tools/tests/intl-3: Likewise.
	* gettext-tools/tests/intl-4: Likewise.
	* gettext-tools/tests/intl-setlocale-1: Likewise.
	* gettext-tools/tests/intl-setlocale-2: Likewise.
	* gettext-tools/tests/intl-thread-1: Likewise.
	* gettext-tools/tests/intl-thread-2: Likewise.
	* gettext-tools/tests/intl-thread-3: Likewise.
	* gettext-tools/tests/msgfmt-qt-1: Likewise.
	* gettext-tools/tests/msgfmt-qt-2: Likewise.
	* gettext-tools/tests/msginit-3: Likewise.
	* gettext-tools/tests/msginit-4: Likewise.
	* gettext-tools/tests/msgmerge-compendium-5: Likewise.
	* gettext-tools/tests/msgmerge-compendium-6: Likewise.
	* gettext-tools/tests/msgunfmt-3: Likewise.
	* gettext-tools/tests/msgunfmt-tcl-1: Likewise.
	* gettext-tools/tests/msguniq-1: Likewise.
	* gettext-tools/tests/msguniq-2: Likewise.
	* gettext-tools/tests/msguniq-3: Likewise.
	* gettext-tools/tests/msguniq-4: Likewise.
	* gettext-tools/tests/plural-1: Likewise.
	* gettext-tools/tests/xgettext-1: Likewise.
	* gettext-tools/tests/xgettext-c-1: Likewise.
	* gettext-tools/tests/xgettext-c-comment-6: Likewise.
	* gettext-tools/tests/xgettext-c-escape-3: Likewise.
	* gettext-tools/tests/xgettext-vala-2: Likewise.

2018-11-25  Bruno Haible  <bruno@clisp.org>

	intl: Fix gettext test failures on mingw.
	* gettext-runtime/intl/localename.c (gl_locale_name_posix): Convert the result
	of gl_locale_name_environ to XPG syntax.

2018-11-25  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2018-11-25  Bruno Haible  <bruno@clisp.org>

	Fix typo in comment.
	* gettext-tools/src/msgexec.c (process_string): Fix typo in comment.

2018-11-25  Bruno Haible  <bruno@clisp.org>

	Fix typos in tests.
	* gettext-tools/tests/msgfmt-desktop-1: Fix reference to MSGFMT variable.
	* gettext-tools/tests/msgfmt-desktop-2: Likewise.
	* gettext-tools/tests/msgfmt-xml-1: Likewise.
	* gettext-tools/tests/msgfmt-xml-2: Likewise.

2018-11-25  Bruno Haible  <bruno@clisp.org>

	build: Remove generated files from version control.
	This creates a bootstrapping issue, but it can be mitigated:
	If a user wants to build GNU gettext on a platform which does not have the
	GNU gettext programs installed, they first need to build and install a tarball
	of GNU gettext; then only they can build GNU gettext from the git repository.

	* gettext-runtime/po/gettext-runtime.pot: Remove file.
	* gettext-tools/po/gettext-tools.pot: Remove file.
	* gettext-tools/examples/po/gettext-examples.pot: Remove file.

2018-11-25  Bruno Haible  <bruno@clisp.org>

	build: Update .gitignore for 2018-05-19 change in gnulib.

2018-11-25  Bruno Haible  <bruno@clisp.org>

	build: Update .gitignore for 2018-02-02 change in gnulib.

2018-11-25  Bruno Haible  <bruno@clisp.org>

	build: Update .gitignore for 2017-05-01 change in gnulib.

2018-11-25  Bruno Haible  <bruno@clisp.org>

	build: Update .gitignore for 2017-03-11 change in gnulib.

2018-11-25  Bruno Haible  <bruno@clisp.org>

	build: Update .gitignore for 2017-05-04 change.

2018-11-25  Bruno Haible  <bruno@clisp.org>

	build: Fix mistake in .gitignore (from 2016-12-11).

2018-11-25  Bruno Haible  <bruno@clisp.org>

	Amend 'Stop installing the intl/ subdir sources.' commit from 2018-11-11.
	* gettext-runtime/intl/Makefile.in (install-data, uninstall): Remove the entire
	$prefix/share/gettext/intl directory.

2018-11-25  Bruno Haible  <bruno@clisp.org>

	Fix compilation error on mingw (regression from 2018-11-04).
	* gettext-tools/src/x-appdata.h (SCANNERS_APPDATA): Remove
	literalstring_parser initializer.

2018-11-21  Pavel Raiskup  <praiskup@redhat.com>

	msgfmt: fix C&P issue
	* gettext-tools/src/msgl-check.c (syntax_check_space_ellipsis):
	Use 'end' for buffer size computation, instead of NULL 'ellipsis'.

2018-11-21  Pavel Raiskup  <praiskup@redhat.com>

	format-kde-kuit: really use fallback markup
	* gettext-tools/src/format-kde-kuit.c (format_parse): Use markup.h
	methods when FORMAT_KDE_KUIT_USE_FALLBACK_MARKUP is defined.  Also
	free buffer if there's no support for XML.

2018-11-18  Bruno Haible  <bruno@clisp.org>

	msgmerge must produce output that is stable under msgcat.
	Reported by Ludovic Courtès <ludo@gnu.org>
	in <https://savannah.gnu.org/bugs/?51027>.

	* gettext-tools/src/write-po.c (message_print_obsolete): Preserve the 'no-wrap'
	and '*-format' flags.
	* gettext-tools/tests/msgmerge-27: New file.
	* gettext-tools/tests/msgmerge-28: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add them.
	* gettext-tools/tests/msgmerge-19: Update expected result.

2018-11-18  Bruno Haible  <bruno@clisp.org>

	gettextize: Give more advice.
	* gettext-tools/misc/gettextize.in: Tell the user to remove
	AM_GNU_GETTEXT_INTL_SUBDIR invocations.

2018-11-18  Bruno Haible  <bruno@clisp.org>

	Simplify Autoconf macros.
	* gettext-runtime/m4/intldir.m4: Remove file.
	* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Remove intldir.m4.
	* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): Disallow 'no-libtool'
	argument. Use libtool always. Remove variables that existed only for backward
	compatibility.
	* gettext-runtime/m4/intl.m4: Update comments.
	* autogen.sh: Ignore gettext.m4 and intl.m4 from gnulib.
	* gettext-runtime/intl/Makefile.in: Use libtool always.
	(libintl.a, libgnuintl.a): Remove rule.
	(.o): Remove suffix rule.
	(install-exec, installdirs, uninstall, distclean, dist, distdir): PACKAGE cannot
	be anything else than gettext-runtime and gettext-tools any more.
	* gettext-tools/configure.ac (intl/Makefile): Update.
	* NEWS: Mention that AM_GNU_GETTEXT_INTL_SUBDIR is gone.

2018-11-17  Bruno Haible  <bruno@clisp.org>

	Make 'make distcheck' work in a VPATH build.
	* Makefile.am (distcheck-hook): Compare files in $(srcdir).
	* gettext-tools/examples/po/xsmallpot.sh: Put the resulting POT file in the
	source dir, not in the build dir.
	* gettext-tools/examples/po/Makefile.am (update-po): Execute sub-make in the
	build dir, not in the source dir.
	(SMALLPOFILES_FOR_lang): Prefix file names with $(srcdir).
	(hello-*/po/*.po): Likewise. Execute mmsmallpo.sh in $(srcdir).

2018-11-11  Bruno Haible  <bruno@clisp.org>

	gettextize: Install also host-cpu-c-abi.m4 (needed since 2018-03-24).
	* gettext-tools/m4/Makefile.am (aclocal_DATA): Install host-cpu-c-abi.m4.
	* PACKAGING: Mention host-cpu-c-abi.m4.
	* gettext-tools/misc/gettextize.in (m4filelist): Add host-cpu-c-abi.m4.
	* gettext-tools/doc/gettext.texi (aclocal): Mention host-cpu-c-abi.m4.

2018-11-11  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2018-11-11  Bruno Haible  <bruno@clisp.org>

	Update packaging instructions.
	* PACKAGING: Update file list.

2018-11-11  Bruno Haible  <bruno@clisp.org>

	gettextize: Require automake >= 1.9.
	* gettext-tools/misc/gettextize.in: Signal an error if 'aclocal' from
	automake >= 1.9 is not found. Stop installing intldir.m4, intl.m4 and its
	dependencies.
	* gettext-tools/doc/gettext.texi (mkinstalldirs, aclocal): State the requirement
	to have automake >= 1.9.
	* gettext-tools/m4/Makefile.am (aclocal_DATA): Don't install codeset.m4,
	extern-inline.m4, fcntl-o.m4, glibc2.m4, glibc21.m4, intdiv0.m4, intl.m4,
	intl-thread-locale.m4, intldir.m4, intmax.m4, inttypes_h.m4, inttypes-pri.m4,
	lcmessage.m4, lock.m4, longlong.m4, printf-posix.m4, size_max.m4, stdint_h.m4,
	threadlib.m4, uintmax_t.m4, visibility.m4, wchar_t.m4, wint_t.m4, xsize.m4.
	* PACKAGING: Remove the *.m4 files that are no longer installed.

2018-11-11  Bruno Haible  <bruno@clisp.org>

	Stop installing the intl/ subdir sources.
	* gettext-runtime/intl/Makefile.in (gettextsrcdir): Remove variable.
	(DISTFILES.obsolete): Remove variable.
	(install-data): Don't install nor remove anything.
	(installdirs): Don't create $(gettextsrcdir).
	* gettext-tools/misc/add-to-archive: Don't add the intl directory to the
	archive.
	* PACKAGING: Remove mention of $prefix/share/gettext/intl/ directory.

2018-11-11  Bruno Haible  <bruno@clisp.org>

	gettextize: Remove --intl option.
	* gettext-tools/misc/gettextize.in (func_usage): Don't mention --intl option.
	Signal an error if the --intl option is specified.
	Simplify main code accordingly.
	* gettext-tools/doc/gettextize.texi: Remove --intl option description.
	* gettext-tools/doc/gettext.texi (Prerequisites): Remove mention of intl/
	directory.
	(configure.ac): Suggest to use AM_GNU_GETTEXT([external]) always. Remove mention
	of intl/ directory.
	(config.guess): Suggest them always.
	(aclocal): Shrink the list of .m4 files.
	(acconfig): Remove subsection.
	(config.h.in): Remove mention of intl/ directory.
	(Makefile, src/Makefile, lib/gettext.h): Likewise.
	(AM_GNU_GETTEXT): First argument must be 'external'. Remove third argument.
	(AM_GNU_GETTEXT_INTL_SUBDIR): Remove subsection.
	(Language Implementors): Remove mention of intl/ directory. Mention that
	Solaris 11 gettext works like GNU gettext.
	(Maintainers for other Languages): Remove mention of intl/ directory.
	* gettext-tools/doc/autopoint.texi: Update explanation of name.
	* NEWS: Mention the change.

2018-11-09  Bruno Haible  <bruno@clisp.org>

	xgettext tests: Rename xgettext-c-18 to xgettext-c-6.
	* gettext-tools/tests/xgettext-c-6: Renamed from
	gettext-tools/tests/xgettext-c-18.
	* Makefile.am (TESTS): Update.

2018-11-09  Bruno Haible  <bruno@clisp.org>

	xgettext tests: Rename xgettext-c-25 to xgettext-c-5.
	* gettext-tools/tests/xgettext-c-5: Renamed from
	gettext-tools/tests/xgettext-c-25.
	* Makefile.am (TESTS): Update.

2018-11-08  Bruno Haible  <bruno@clisp.org>

	xgettext tests: Rename xgettext-c-24 to xgettext-c-comment-6.
	* gettext-tools/tests/xgettext-c-comment-6: Renamed from
	gettext-tools/tests/xgettext-c-24.
	* gettext-tools/tests/xg-c-comment-6.c: Renamed from
	gettext-tools/tests/xg-c-24.c.
	* Makefile.am (TESTS, EXTRA_DIST): Update.

2018-11-08  Bruno Haible  <bruno@clisp.org>

	xgettext tests: Rename xgettext-c-9 to xgettext-c-comment-5.
	* gettext-tools/tests/xgettext-c-comment-5: Renamed from
	gettext-tools/tests/xgettext-c-9.
	* Makefile.am (TESTS): Update.

2018-11-08  Bruno Haible  <bruno@clisp.org>

	xgettext tests: Rename xgettext-c-6 to xgettext-c-comment-4.
	* gettext-tools/tests/xgettext-c-comment-4: Renamed from
	gettext-tools/tests/xgettext-c-6.
	* Makefile.am (TESTS): Update.

2018-11-08  Bruno Haible  <bruno@clisp.org>

	xgettext tests: Rename xgettext-c-16 to xgettext-c-comment-3.
	* gettext-tools/tests/xgettext-c-comment-3: Renamed from
	gettext-tools/tests/xgettext-c-16.
	* Makefile.am (TESTS): Update.

2018-11-08  Bruno Haible  <bruno@clisp.org>

	xgettext tests: Rename xgettext-c-7 to xgettext-c-comment-2.
	* gettext-tools/tests/xgettext-c-comment-2: Renamed from
	gettext-tools/tests/xgettext-c-7.
	* Makefile.am (TESTS): Update.

2018-11-08  Bruno Haible  <bruno@clisp.org>

	xgettext tests: Rename xgettext-c-5 to xgettext-c-comment-1.
	* gettext-tools/tests/xgettext-c-comment-1: Renamed from
	gettext-tools/tests/xgettext-c-5.
	* Makefile.am (TESTS): Update.

2018-11-08  Bruno Haible  <bruno@clisp.org>

	xgettext tests: Rename xgettext-c-21 to xgettext-c-escape-3.
	* gettext-tools/tests/xgettext-c-escape-3: Renamed from
	gettext-tools/tests/xgettext-c-21.
	* gettext-tools/tests/xg-c-escape-3.c: Renamed from
	gettext-tools/tests/xg-c-21.c.
	* Makefile.am (TESTS, EXTRA_DIST): Update.

2018-11-08  Bruno Haible  <bruno@clisp.org>

	xgettext tests: Rename xgettext-c-23 to xgettext-c-escape-2.
	* gettext-tools/tests/xgettext-c-escape-2: Renamed from
	gettext-tools/tests/xgettext-c-23.
	* Makefile.am (TESTS): Update.

2018-11-08  Bruno Haible  <bruno@clisp.org>

	xgettext tests: Rename xgettext-c-19 to xgettext-c-escape-1.
	* gettext-tools/tests/xgettext-c-escape-1: Renamed from
	gettext-tools/tests/xgettext-c-19.
	* Makefile.am (TESTS): Update.

2018-11-08  Bruno Haible  <bruno@clisp.org>

	xgettext tests: Rename xgettext-c-14 to xgettext-c-format-5.
	* gettext-tools/tests/xgettext-c-format-5: Renamed from
	gettext-tools/tests/xgettext-c-14.
	* Makefile.am (TESTS): Update.

2018-11-08  Bruno Haible  <bruno@clisp.org>

	xgettext tests: Rename xgettext-c-17 to xgettext-c-format-4.
	* gettext-tools/tests/xgettext-c-format-4: Renamed from
	gettext-tools/tests/xgettext-c-17.
	* Makefile.am (TESTS): Update.

2018-11-08  Bruno Haible  <bruno@clisp.org>

	xgettext tests: Rename xgettext-c-13 to xgettext-c-format-3.
	* gettext-tools/tests/xgettext-c-format-3: Renamed from
	gettext-tools/tests/xgettext-c-13.
	* Makefile.am (TESTS): Update.

2018-11-08  Bruno Haible  <bruno@clisp.org>

	xgettext tests: Rename xgettext-c-8 to xgettext-c-format-2.
	* gettext-tools/tests/xgettext-c-format-2: Renamed from
	gettext-tools/tests/xgettext-c-8.
	* Makefile.am (TESTS): Update.

2018-11-08  Bruno Haible  <bruno@clisp.org>

	xgettext tests: Rename xgettext-c-12 to xgettext-c-format-1.
	* gettext-tools/tests/xgettext-c-format-1: Renamed from
	gettext-tools/tests/xgettext-c-12.
	* Makefile.am (TESTS): Update.

2018-11-08  Bruno Haible  <bruno@clisp.org>

	xgettext tests: Rename xgettext-c-15 to xgettext-c-ctxt-3.
	* gettext-tools/tests/xgettext-c-ctxt-3: Renamed from
	gettext-tools/tests/xgettext-c-15.
	* Makefile.am (TESTS): Update.

2018-11-08  Bruno Haible  <bruno@clisp.org>

	xgettext tests: Rename xgettext-c-11 to xgettext-c-ctxt-2.
	* gettext-tools/tests/xgettext-c-ctxt-2: Renamed from
	gettext-tools/tests/xgettext-c-11.
	* Makefile.am (TESTS): Update.

2018-11-08  Bruno Haible  <bruno@clisp.org>

	xgettext tests: Rename xgettext-c-10 to xgettext-c-ctxt-1.
	* gettext-tools/tests/xgettext-c-ctxt-1: Renamed from
	gettext-tools/tests/xgettext-c-10.
	* Makefile.am (TESTS): Update.

2018-11-08  Bruno Haible  <bruno@clisp.org>

	xgettext tests: Rename xgettext-c-22 to xgettext-c-c++-2.
	* gettext-tools/tests/xgettext-c-c++-2: Renamed from
	gettext-tools/tests/xgettext-c-22.
	* Makefile.am (TESTS): Update.

2018-11-08  Bruno Haible  <bruno@clisp.org>

	xgettext tests: Rename xgettext-c-20 to xgettext-c-c++-1.
	* gettext-tools/tests/xgettext-c-c++-1: Renamed from
	gettext-tools/tests/xgettext-c-20.
	* Makefile.am (TESTS): Update.

2018-11-05  Bruno Haible  <bruno@clisp.org>

	xgettext: C: Treat invalid escape sequences like GCC does.
	* gettext-tools/src/x-c.c (phase7_getc): For invalid escape sequences "\c",
	produce c, not a backslash.

2018-11-05  Bruno Haible  <bruno@clisp.org>

	xgettext: Simplify calling convention of arglist_parser_remember.
	* gettext-tools/src/xg-arglist-parser.h (struct partial_call): Add
	'msgid_comment_is_utf8' field.
	(arglist_parser_remember): Add comment_is_utf8 argument.
	* gettext-tools/src/xg-arglist-parser.c (arglist_parser_alloc,
	arglist_parser_clone): Update.
	(arglist_parser_remember): Add comment_is_utf8 argument.
	(arglist_parser_done): Pass comment_is_utf8 value down to remember_a_message.
	* gettext-tools/src/x-c.c (extract_parenthesized): Update callers. Don't set
	xgettext_current_source_encoding around arglist_parser_remember calls.
	* gettext-tools/src/x-csharp.c (extract_parenthesized): Likewise.
	* gettext-tools/src/x-java.c (extract_parenthesized): Likewise.
	* gettext-tools/src/x-javascript.c (extract_balanced): Likewise.
	* gettext-tools/src/x-perl.c (extract_balanced): Likewise.
	* gettext-tools/src/x-python.c (extract_balanced): Likewise.
	* gettext-tools/src/x-vala.c (extract_balanced): Likewise.
	* gettext-tools/src/x-awk.c (extract_parenthesized): Update callers.
	* gettext-tools/src/x-elisp.c (read_object): Likewise.
	* gettext-tools/src/x-librep.c (read_object): Likewise.
	* gettext-tools/src/x-lisp.c (read_object): Likewise.
	* gettext-tools/src/x-lua.c (extract_balanced): Likewise.
	* gettext-tools/src/x-php.c (extract_balanced): Likewise.
	* gettext-tools/src/x-scheme.c (read_object): Likewise.
	* gettext-tools/src/x-sh.c (read_command): Likewise.
	* gettext-tools/src/x-tcl.c (read_command): Likewise.

2018-11-05  Bruno Haible  <bruno@clisp.org>

	xgettext: Delay calls to from_current_source_encoding, part 2.
	* gettext-tools/src/xg-arglist-parser.h: Include xg-mixed-string.h.
	(struct partial_call): Change type of fields msgctxt, msgid, msgid_plural to
	'mixed_string_ty *'.
	(arglist_parser_remember, arglist_parser_remember_msgctxt): Take a
	'mixed_string_ty *' argument instead of a 'char *' argument.
	* gettext-tools/src/xg-arglist-parser.c (arglist_parser_clone): Update
	accordingly.
	(arglist_parser_remember, arglist_parser_remember_msgctxt): Take a
	'mixed_string_ty *' argument.
	(arglist_parser_done): Convert the mixed_string to UTF-8 encoded 'char *' here.
	This is where from_current_source_encoding gets invoked now: immediately before
	invoking remember_a_message, that is, only when we really need to know the
	--from-source encoding.
	* gettext-tools/src/x-c.c (extract_parenthesized): Pass the mixed_string to
	arglist_parser_remember. Don't set xgettext_current_source_encoding around
	arglist_parser_done calls.
	* gettext-tools/src/x-csharp.c (extract_parenthesized): Likewise.
	* gettext-tools/src/x-java.c (extract_parenthesized): Likewise.
	* gettext-tools/src/x-javascript.c (extract_balanced): Likewise.
	* gettext-tools/src/x-python.c (extract_balanced): Likewise.
	* gettext-tools/src/x-vala.c (extract_balanced): Likewise.
	* gettext-tools/src/x-lisp.c: Include xg-mixed-string.h.
	(read_object): Convert the string to a mixed_string_ty before passing it to
	arglist_parser_remember.
	* gettext-tools/src/x-elisp.c: Likewise.
	* gettext-tools/src/x-librep.c: Likewise.
	* gettext-tools/src/x-scheme.c: Likewise.
	* gettext-tools/src/x-awk.c: Include xg-mixed-string.h.
	(extract_parenthesized): Convert the string to a mixed_string_ty before passing
	it to arglist_parser_remember.
	* gettext-tools/src/x-lua.c: Include xg-mixed-string.h.
	(extract_balanced): Convert the string to a mixed_string_ty before passing it to
	arglist_parser_remember.
	* gettext-tools/src/x-php.c: Include xg-mixed-string.h.
	(extract_balanced): Convert the string to a mixed_string_ty before passing it to
	arglist_parser_remember.
	* gettext-tools/src/x-sh.c: Include xg-mixed-string.h.
	(read_command): Convert the string to a mixed_string_ty before passing it to
	arglist_parser_remember.
	* gettext-tools/src/x-tcl.c: Include xg-mixed-string.h.
	(read_command): Convert the string to a mixed_string_ty before passing it to
	arglist_parser_remember.
	* gettext-tools/src/x-perl.c (extract_balanced): Convert the string to a
	mixed_string_ty before passing it to arglist_parser_remember. Don't set
	xgettext_current_source_encoding around arglist_parser_done calls.

2018-11-05  Bruno Haible  <bruno@clisp.org>

	xgettext: Simplify calling convention of remember_a_message.
	* gettext-tools/src/xg-message.h (remember_a_message,
	remember_a_message_plural): Add is_utf8, comment_is_utf8 arguments.
	* gettext-tools/src/xg-message.c (remember_a_message,
	remember_a_message_plural): Likewise.
	* gettext-tools/src/xg-arglist-parser.c (arglist_parser_done): Update callers.
	* gettext-tools/src/x-awk.c (extract_parenthesized): Likewise.
	* gettext-tools/src/x-c.c (extract_parenthesized): Likewise.
	* gettext-tools/src/x-csharp.c (extract_parenthesized): Likewise.
	* gettext-tools/src/x-desktop.c (extract_desktop_handle_pair): Likewise.
	* gettext-tools/src/x-elisp.c (read_object): Likewise.
	* gettext-tools/src/x-java.c (extract_parenthesized): Likewise.
	* gettext-tools/src/x-javascript.c (extract_balanced): Likewise.
	* gettext-tools/src/x-librep.c (read_object): Likewise.
	* gettext-tools/src/x-lisp.c (read_object): Likewise.
	* gettext-tools/src/x-lua.c (extract_balanced): Likewise.
	* gettext-tools/src/x-perl.c (extract_variable, interpolate_keywords,
	extract_balanced): Likewise.
	* gettext-tools/src/x-php.c (extract_balanced): Likewise.
	* gettext-tools/src/x-python.c (extract_balanced): Likewise.
	* gettext-tools/src/x-rst.c (extract_rst, extract_rsj): Likewise.
	* gettext-tools/src/x-scheme.c (read_object): Likewise.
	* gettext-tools/src/x-sh.c (read_word, read_command): Likewise.
	* gettext-tools/src/x-smalltalk.c (extract_smalltalk): Likewise.
	* gettext-tools/src/x-tcl.c (read_command): Likewise.
	* gettext-tools/src/x-vala.c (extract_balanced): Likewise.
	* gettext-tools/src/x-ycp.c (extract_parenthesized): Likewise.
	* gettext-tools/src/xgettext.c (xgettext_its_extract_callback): Likewise.

2018-11-05  Bruno Haible  <bruno@clisp.org>

	xgettext: Delay calls to from_current_source_encoding, part 1.
	* xg-mixed-string.h (enum segment_type, struct mixed_string_segment,
	struct mixed_string, mixed_string_ty): New types.
	(mixed_string_alloc_simple, mixed_string_alloc_utf8, mixed_string_clone,
	mixed_string_contents, mixed_string_free, mixed_string_contents_free1,
	mixed_string_concat, mixed_string_concat_free1): New declarations.
	(struct mixed_string_buffer): Change internal representation to use segments.
	(mixed_string_buffer_result): Change return type to 'mixed_string_ty *'.
	* xg-mixed-string.c: Include flexmember.h, msgl-ascii.h, po-charset.h.
	(segment_alloc, segment_clone, mixed_string_alloc_simple,
	mixed_string_alloc_utf8, mixed_string_clone, mixed_string_contents,
	mixed_string_free, mixed_string_contents_free1, mixed_string_concat,
	mixed_string_concat_free1): New functions.
	(mixed_string_buffer_init, mixed_string_buffer_is_empty): Change to match new
	internal representation.
	(mixed_string_buffer_grow_curr_buffer): New function.
	(mixed_string_buffer_grow_utf8_buffer): Remove function.
	(mixed_string_buffer_append_to_utf8_buffer): Update accordingly.
	(mixed_string_buffer_flush_curr_buffer): Remove function.
	(mixed_string_buffer_add_segment, mixed_string_buffer_flush_curr): New
	functions.
	(mixed_string_buffer_append_char, mixed_string_buffer_append_unicode,
	mixed_string_buffer_destroy, mixed_string_buffer_result): Change to match new
	internal representation.
	* x-c.c (struct token_ty): New field 'mixed_string'.
	(free_token): Update accordingly.
	(phase5_get, phase6_get, phase8a_get): For tokens of type
	token_type_string_literal, use a mixed_string.
	(phase8_get): Use mixed_string_concat_free1.
	(struct xgettext_token_ty): New field 'mixed_string'.
	(x_c_lex, extract_parenthesized): For tokens of type
	xgettext_token_type_string_literal, use a mixed_string.
	* x-csharp.c (comment_line_end): Update.
	(struct token_ty): New field 'mixed_string'.
	(free_token): Update accordingly.
	(phase6_get): For tokens of type token_type_string_literal, use a mixed_string.
	(phase7_get): Use mixed_string_concat_free1.
	(extract_parenthesized): For tokens of type token_type_string_literal, use a
	mixed_string.
	* x-java.c (comment_line_end): Update.
	(struct token_ty): New field 'mixed_string'.
	(free_token): Update accordingly.
	(phase5_get): For tokens of type token_type_string_literal, use a mixed_string.
	(phase6_get): Use mixed_string_concat_free1.
	(extract_parenthesized): For tokens of type token_type_string_literal, use a
	mixed_string.
	* x-javascript.c (comment_line_end): Update.
	(struct token_ty): New field 'mixed_string'.
	(free_token): Update accordingly.
	(phase5_get): For tokens of type token_type_string, use a mixed_string.
	(x_javascript_lex): Use mixed_string_concat_free1.
	(extract_balanced): For tokens of type token_type_string, use a mixed_string.
	* x-python.c (comment_line_end): Update.
	(struct token_ty): New field 'mixed_string'.
	(free_token): Update accordingly.
	(phase5_get): For tokens of type token_type_string, use a mixed_string.
	(x_python_lex): Use mixed_string_concat_free1.
	(extract_balanced): For tokens of type token_type_string, use a mixed_string.
	* x-rst.c (extract_rsj): Update.
	* x-vala.c (struct token_ty): New field 'mixed_string'.
	(free_token): Update accordingly.
	(phase3_get): For tokens of type token_type_string_literal, use a mixed_string.
	For tokens of type token_type_string_template, fix a memory leak.
	(x_vala_lex): Use mixed_string_concat_free1.
	(extract_balanced): For tokens of type token_type_string_literal, use a
	mixed_string.

2018-11-05  Bruno Haible  <bruno@clisp.org>

	xgettext: JavaScript: Make more use of mixed_string_buffer.
	* gettext-tools/src/x-javascript.c (struct unicode_string_buffer): Remove type.
	(init_unicode_string_buffer, unicode_string_buffer_append_unicode_grow,
	unicode_string_buffer_append_unicode, unicode_string_buffer_result,
	free_unicode_string_buffer): Remove functions.
	(comment_buffer, comment_start, comment_at_start, comment_add,
	comment_line_end): Use mixed_string_buffer API.

2018-11-05  Bruno Haible  <bruno@clisp.org>

	xgettext: Python: Make more use of mixed_string_buffer.
	* gettext-tools/src/x-python.c (struct unicode_string_buffer): Remove type.
	(init_unicode_string_buffer, unicode_string_buffer_append_unicode_grow,
	unicode_string_buffer_append_unicode, unicode_string_buffer_result,
	free_unicode_string_buffer): Remove functions.
	(comment_buffer, comment_start, comment_at_start, comment_add,
	comment_line_end): Use mixed_string_buffer API.

2018-11-05  Bruno Haible  <bruno@clisp.org>

	xgettext: Change the C# extractor to make use of mixed_string_buffer.
	* gettext-tools/src/x-csharp.c (struct string_buffer): Remove type.
	(init_string_buffer, string_buffer_append_unicode_grow,
	string_buffer_append_unicode, string_buffer_result, free_string_buffer): Remove
	functions.
	(comment_buffer, comment_start, comment_at_start, comment_add,
	comment_line_end): Use mixed_string_buffer API.
	(phase6_get): Likewise.

2018-11-05  Bruno Haible  <bruno@clisp.org>

	xgettext: Optimize away a memory allocation.
	* gettext-tools/src/x-c.c (phase5_get): Allocate the mixed_string_buffer on the
	stack, not on the heap.
	* gettext-tools/src/x-csharp.c (phase6_get): Likewise.
	* gettext-tools/src/x-javascript.c (phase5_get): Likewise.
	* gettext-tools/src/x-python.c (phase5_get): Likewise.
	* gettext-tools/src/x-vala.c (phase3_get): Likewise.
	* gettext-tools/src/x-rst.c (stringbuf, parse_string, extract_rsj): Allocate the
	mixed_string_buffer statically, not on the heap.
	* gettext-tools/src/xg-mixed-string.h (mixed_string_buffer_alloc,
	mixed_string_buffer_done): Remove declarations.
	* gettext-tools/src/xg-mixed-string.c (mixed_string_buffer_alloc,
	mixed_string_buffer_done): Remove functions.

2018-11-05  Bruno Haible  <bruno@clisp.org>

	xgettext: Change the Java extractor to make use of mixed_string_buffer.
	* gettext-tools/src/xg-mixed-string.h: Include <stdbool.h>.
	(mixed_string_buffer_init, mixed_string_buffer_is_empty,
	mixed_string_buffer_destroy, mixed_string_buffer_result): New declarations.
	* gettext-tools/src/xg-mixed-string.c: Include xg-pos.h.
	(mixed_string_buffer_init): New function.
	(mixed_string_buffer_alloc): Invoke it.
	(mixed_string_buffer_is_empty): New function, based on comment_at_start in
	x-java.c.
	(mixed_string_buffer_append_lone_surrogate): New function, based on
	string_buffer_append_lone_surrogate in x-java.c.
	(mixed_string_buffer_flush_utf16_surr, mixed_string_buffer_append_unicode): Use
	it.
	(mixed_string_buffer_destroy, mixed_string_buffer_result): New functions.
	(mixed_string_buffer_done): Invoke mixed_string_buffer_result.
	* gettext-tools/src/x-java.c: Include xg-mixed-string.h.
	(struct string_buffer): Remove type.
	(init_string_buffer, string_buffer_append_byte,
	string_buffer_append_unicode_grow, string_buffer_append_unicode,
	string_buffer_append_lone_surrogate, string_buffer_flush_utf16_surr,
	string_buffer_flush_curr_buffer): Remove functions.
	(mixed_string_buffer_append): Renamed from string_buffer_append. Use
	mixed_string_buffer.
	(string_buffer_result, free_string_buffer): Remove functions.
	(comment_buffer, comment_start, comment_at_start, comment_add,
	comment_line_end): Use mixed_string_buffer API.
	(accumulate_escaped, phase5_get): Likewise.

2018-11-05  Bruno Haible  <bruno@clisp.org>

	xgettext: Share some more code among extractors.
	* gettext-tools/src/xg-pos.h: New file.
	* gettext-tools/src/xg-pos.c: New file.
	* gettext-tools/src/Makefile.am (noinst_HEADERS): Add xg-pos.h.
	(xgettext_SOURCES): Add xg-pos.c.
	* gettext-tools/src/FILES: Update.
	* gettext-tools/src/x-awk.c: Include xg-pos.h.
	(real_file_name, logical_file_name, line_number): Remove variables.
	* gettext-tools/src/x-c.c: Likewise.
	* gettext-tools/src/x-csharp.c: Likewise.
	* gettext-tools/src/x-elisp.c: Likewise.
	* gettext-tools/src/x-java.c: Likewise.
	* gettext-tools/src/x-javascript.c: Likewise.
	* gettext-tools/src/x-librep.c: Likewise.
	* gettext-tools/src/x-lisp.c: Likewise.
	* gettext-tools/src/x-lua.c: Likewise.
	* gettext-tools/src/x-perl.c: Likewise.
	* gettext-tools/src/x-php.c: Likewise.
	* gettext-tools/src/x-python.c: Likewise.
	* gettext-tools/src/x-rst.c: Likewise.
	* gettext-tools/src/x-scheme.c: Likewise.
	* gettext-tools/src/x-sh.c: Likewise.
	* gettext-tools/src/x-smalltalk.c: Likewise.
	* gettext-tools/src/x-tcl.c: Likewise.
	* gettext-tools/src/x-vala.c: Likewise.
	* gettext-tools/src/x-ycp.c: Likewise.

2018-11-05  Bruno Haible  <bruno@clisp.org>

	xgettext: Split source code into smaller files.
	* gettext-tools/src/rc-str-list.h: New file, extracted from
	gettext-tools/src/xgettext.h.
	* gettext-tools/src/xg-encoding.h: Likewise.
	* gettext-tools/src/xg-mixed-string.h: Likewise.
	* gettext-tools/src/xg-arglist-context.h: Likewise.
	* gettext-tools/src/xg-arglist-callshape.h: Likewise.
	* gettext-tools/src/xg-arglist-parser.h: Likewise.
	* gettext-tools/src/xg-message.h: Likewise.
	* gettext-tools/src/xg-encoding.c: New file, extracted from
	gettext-tools/src/xgettext.c.
	* gettext-tools/src/xg-mixed-string.c: Likewise.
	* gettext-tools/src/xg-arglist-context.c: Likewise.
	* gettext-tools/src/xg-arglist-callshape.c: Likewise.
	* gettext-tools/src/xg-arglist-parser.c: Likewise.
	* gettext-tools/src/xg-message.c: Likewise.
	* gettext-tools/src/xgettext.h: Remove declarations that moved to rc-str-list.h
	and xg-*.h.
	(add_all_comments, comment_tag, msgstr_prefix, msgstr_suffix,
	default_syntax_check, current_formatstring_parser1,
	current_formatstring_parser2, current_formatstring_parser3): New declarations.
	(xgettext_comment, xgettext_comment_reset, savable_comment_to_xgettext_comment,
	recognize_qt_formatstrings): New declarations.
	(substring_match): Remove obsolete declaration.
	* gettext-tools/src/xgettext.c: Include xgettext.h first.
	Include <iconv.h>, rc-str-list.h, xg-encoding.h, xg-arglist-context.h,
	xg-message.h. Don't include xsize.h, po-xerror.h, unistr.h.
	(add_all_comments, comment_tag, msgstr_prefix, msgstr_suffix,
	default_syntax_check): Make global.
	(split_keywordspec, insert_keyword_callshape): Moved to xg-arglist-callshape.c.
	(null_context, passthrough_context, inherited_context,
	null_context_list_iterator, passthrough_context_circular_list,
	passthrough_context_list_iterator, flag_context_list_iterator,
	flag_context_list_iterator_advance, flag_context_list_table_lookup): Move to
	xg-arglist-context.c.
	(flag_context_list_table_insert): Move bulk of body to new function
	flag_context_list_table_add in xg-arglist-context.c.
	(xgettext_comment, xgettext_comment_reset, savable_comment_to_xgettext_comment):
	Make global.
	(current_formatstring_parser1, current_formatstring_parser2,
	current_formatstring_parser3): Make global.
	(non_ascii_error_message, from_current_source_encoding): Move to xg-encoding.c.
	(CONVERT_STRING, set_format_flags_from_context, warn_format_string,
	remember_a_message, remember_a_message_plural): Move to xg-message.c.
	(arglist_parser_alloc, arglist_parser_clone, arglist_parser_remember,
	arglist_parser_remember_msgctxt, arglist_parser_decidedp, arglist_parser_done):
	Move to xg-arglist-parser.c.
	(mixed_string_buffer_alloc, mixed_string_buffer_append_to_curr_buffer,
	mixed_string_buffer_grow_utf8_buffer, mixed_string_buffer_append_to_utf8_buffer,
	mixed_string_buffer_flush_utf16_surr, mixed_string_buffer_flush_curr_buffer,
	mixed_string_buffer_append_char, mixed_string_buffer_append_unicode,
	mixed_string_buffer_done): Move to xg-mixed-string.c.
	(recognize_qt_formatstrings): New function.
	* gettext-tools/src/x-*.h: Include xg-arglist-context.h instead of xgettext.h.
	* gettext-tools/src/x-*.c: Update include directives.
	* gettext-tools/src/its.h: Likewise.
	* gettext-tools/src/Makefile.am (noinst_HEADERS): Add the new .h files.
	(xgettext_SOURCES): Add the new .c files.
	* gettext-tools/src/FILES: Update.

2018-11-05  Bruno Haible  <bruno@clisp.org>

	xgettext: Fix crash when parsing invalid \Uxxxxxxxx escape sequence.
	* gettext-tools/src/x-c.c (phase3_pushback): Increase size to 9 characters.

2018-11-05  Bruno Haible  <bruno@clisp.org>

	xgettext: Add support for C++11 raw string literals.
	* gettext-tools/src/x-c.c (phase5_get): Recognize the R"..." syntax and its variants.
	* gettext-tools/tests/xgettext-c-20: Change expected error message.

2018-11-05  Bruno Haible  <bruno@clisp.org>

	xgettext: Add support for C11 string literals.
	* gettext-tools/src/x-c.c (phase5_get): Recognize the u8"..." syntax.
	* gettext-tools/tests/xgettext-c-25: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.
	* NEWS: Mention the change.

2018-11-05  Bruno Haible  <bruno@clisp.org>

	xgettext: Vala: Improve parsing of escape sequences.
	* gettext-tools/src/x-vala.c (phase7_getc): Don't recognize \?, \a, \1...\7, \U.
	Do recognize \$.
	* gettext-tools/tests/xgettext-vala-1: Test \t in verbatim strings literals.
	* NEWS: Mention the change.

2018-11-05  Bruno Haible  <bruno@clisp.org>

	xgettext: Fix result for concatenation of strings with escape sequences.
	Reported by Morten Welinder <mwelinder@gmail.com>
	in <https://lists.gnu.org/archive/html/bug-gettext/2015-12/msg00017.html>
	and <https://savannah.gnu.org/bugs/?46756>.

	Revert commits from
	2014-05-07 xgettext: Provide a way to interpret string literals lazily
	2014-05-07 c: Interpret string literals lazily
	2014-05-09 vala: Interpret string literals lazily
	2014-12-02 c: Support C++11 string literals
	and subsequent fixes of these.

	* gettext-tools/src/xgettext.h (savable_comment_convert_encoding): Remove
	declaration.
	(enum literalstring_escape_type, struct literalstring_parser): Remove types.
	(struct partial_call): Update.
	(arglist_parser_remember_literal): Remove declaration.
	* gettext-tools/src/xgettext.c (struct extractor_ty): Remove
	'literalstring_parser' field.
	(savable_comment_convert_encoding): Remove function.
	(current_literalstring_parser): Remove variable.
	(extract_from_file, arglist_parser_alloc, arglist_parser_clone): Update.
	(arglist_parser_remember_literal): Remove function.
	(arglist_parser_remember_msgctxt): Simplify accordingly.
	* gettext-tools/src/x-*.h (SCANNERS_*): Remove literalstring_parser initializer.
	* gettext-tools/src/x-c.h (literalstring_c): Remove declaration.
	* gettext-tools/src/x-c.c: Remove all traces of literalstring_escape_type and
	literalstring_parser.
	(phase7_getc, phase7_ungetc): Reinstantiate functions.
	(phase5_get): Simplify. Use phase7_getc.
	* gettext-tools/src/x-vala.c: Remove all traces of literalstring_escape_type and
	literalstring_parser.
	(phase7_getc, phase7_ungetc): Reinstantiate functions.
	(phase3_get): Simplify. Use phase7_getc.
	(extract_balanced): Simplify.

2018-11-05  Bruno Haible  <bruno@clisp.org>

	xgettext: New tests for non-ASCII extracted comments.
	* gettext-tools/tests/xgettext-c-24: New file.
	* gettext-tools/tests/xg-c-24.c: New file.
	* gettext-tools/tests/xgettext-vala-2: New file.
	* gettext-tools/tests/xg-vala-2.vala: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add xgettext-c-24, xgettext-vala-2.
	(EXTRA_DIST): Add xg-c-24.c, xg-vala-2.vala.

2018-11-05  Bruno Haible  <bruno@clisp.org>

	xgettext: Enhance test for NUL byte handling.
	* gettext-tools/tests/xg-c-21.c: Add some more test cases.
	* gettext-tools/tests/xgettext-c-21: Update expected result accordingly. Change
	expected result for backslash-NUL.

2018-11-04  Bruno Haible  <bruno@clisp.org>

	xgettext: New test of concatenation of strings with escape sequences.
	Reported by Morten Welinder <mwelinder@gmail.com>
	in <https://lists.gnu.org/archive/html/bug-gettext/2015-12/msg00017.html>
	and <https://savannah.gnu.org/bugs/?46756>.

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

2018-11-04  Bruno Haible  <bruno@clisp.org>

	xgettext: JavaScript: Fix a memory leak.
	* gettext-tools/src/x-javascript.c (free_token): Free tp->string also for
	token_type_keyword.

2018-11-04  Bruno Haible  <bruno@clisp.org>

	Whitespace changes.
	* gettext-tools/src/cldr-plural-exp.h: Add a blank line.
	* gettext-tools/src/locating-rule.h: Correct indentation.

2018-11-04  Bruno Haible  <bruno@clisp.org>

	Fix test failure with valgrind.
	* gettext-tools/tests/msgcmp-4: Filter out valgrind's messages from the output.

2018-10-28  Bruno Haible  <bruno@clisp.org>

	Make test files executable.
	* gettext-tools/tests/xgettext-c-22: Make executable.
	* gettext-tools/tests/xgettext-properties-[234]: Likewise.
	* gettext-tools/tests/xgettext-rst-[12]: Likewise.

2018-10-28  Bruno Haible  <bruno@clisp.org>

	Make it easier to build the code when the documentation tools don't work.
	* gettext-tools/Makefile.am (SUBDIRS): Move 'doc' to the end. Move 'its' to the
	middle.

2018-10-28  Bruno Haible  <bruno@clisp.org>

	tests: Improve reliability.
	* xgettext-3: Verify the exit code of the xgettext invocation.
	* xgettext-4: Likewise.
	* xgettext-appdata-1: Likewise.
	* xgettext-c-19: Likewise.
	* xgettext-c-20: Likewise.
	* xgettext-c-21: Likewise.
	* xgettext-csharp-2: Likewise.
	* xgettext-csharp-3: Likewise.
	* xgettext-csharp-8: Likewise.
	* xgettext-desktop-1: Likewise.
	* xgettext-glade-1: Likewise.
	* xgettext-glade-6: Likewise.
	* xgettext-glade-7: Likewise.
	* xgettext-gsettings-1: Likewise.
	* xgettext-perl-2: Likewise.
	* xgettext-perl-3: Likewise.

2018-10-25  Bruno Haible  <bruno@clisp.org>

	po, examples: Change .po -> .gmo rules to consider the newest changes to the POT file.
	Reported by Claude Paroz <claude@2xlibre.net>
	in <https://savannah.gnu.org/bugs/?50910>.

	* gettext-runtime/m4/po.m4 (AM_PO_SUBDIRS): Set MSGMERGE_FOR_MSGFMT_OPTION.
	* gettext-runtime/po/Makefile.in.in (MSGMERGE): Use GNU msgmerge, even if not
	first in $PATH.
	(MSGMERGE_FOR_MSGFMT_OPTION): New variable.
	(.po.gmo): Depend on the POT file. Use msgmerge on the fly, to take into
	account the most recent POT file changes.
	* gettext-tools/examples/hello-*/po/Makefile.am: Likewise, also for the .po.qm,
	update-properties, update-classes targets.
	* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile
	(MSGMERGE_FOR_MSGFMT_OPTION): New variable.
	($(STRINGSFILES)): Depend on the POT file. Use msgmerge on the fly, to take
	into account the most recent POT file changes.

2018-10-25  Bruno Haible  <bruno@clisp.org>

	msgmerge: New option --for-msgfmt.
	* gettext-tools/src/msgmerge.c (for_msgfmt): New variable.
	(long_options): Add option --for-msgfmt.
	(main): Handle option --for-msgfmt.
	(usage): Document option --for-msgfmt.
	(match_domain): When --for-msgfmt is given, omit untranslated and fuzzy messages
	from the result.
	(merge): When --for-msgfmt is given, don't add obsolete messages to the result.
	* gettext-tools/tests/msgmerge-26: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.
	* gettext-tools/doc/msgmerge.texi: Mention the option --for-msgfmt.
	* NEWS: Mention the change.

2018-10-25  Bruno Haible  <bruno@clisp.org>

	Add ability to write PO files without translator comment lines.
	* gettext-tools/src/write-po.h (message_print_style_comment): New declaration.
	* gettext-tools/src/write-po.c (print_comment): New variable.
	(message_print_style_comment): New function.
	(message_print_comment): Output nothing if print_comment is false.

2018-10-24  Bruno Haible  <bruno@clisp.org>

	Improve reliability of 'make dist'.
	* gettext-tools/examples/po/Makefile.am (distdir1): Depend on the .pot file.

2018-10-24  Bruno Haible  <bruno@clisp.org>

	po, examples: Put stamp-po in the source directory.
	Rationale: <https://www.gnu.org/prep/standards/html_node/Makefile-Basics.html>.

	* gettext-runtime/po/Makefile.in.in: Use $(srcdir)/stamp-po instead of stamp-po.
	Talk about "version control system", not CVS.
	* gettext-tools/examples/hello-*/po/Makefile.am: Likewise.
	* gettext-tools/examples/po/Makefile.am: Likewise.
	* gettext-tools/examples/check-examples (func_check_dist_vpath): Verify the
	stamp-po file does not exist in the build dir, except when using the older
	Makefile.in.in infrastructure.

2018-10-24  Bruno Haible  <bruno@clisp.org>

	po: Make "make maintainer-clean" erase the .pot file.
	Rationale:
	<https://www.gnu.org/prep/standards/html_node/Standard-Targets.html>
	<https://www.gnu.org/software/automake/manual/html_node/Clean.html>

	* NEWS: Mention the change.
	* gettext-runtime/po/Makefile.in.in (maintainer-clean): Remove the .pot file.
	* gettext-tools/examples/hello-*/po/Makefile.am (MAINTAINERCLEANFILES): Add
	the .pot file.
	* gettext-tools/examples/po/Makefile.am (MAINTAINERCLEANFILES): Likewise.
	* gettext-tools/examples/check-examples (func_check_maintainerclean,
	func_check_maintainerclean_vpath): Verify the .pot file is removed after
	'make maintainer-clean', except when using the older Makefile.in.in
	infrastructure.

2018-10-24  Bruno Haible  <bruno@clisp.org>

	po, examples: Use case-insensitive search for "GNU <PACKAGE_NAME>".
	Reported by Akim Demaille <akim@lrde.epita.fr> in
	<https://lists.gnu.org/archive/html/bug-gettext/2018-10/msg00020.html>.

	* gettext-runtime/po/Makefile.in.in ($(DOMAIN).pot-update): Use a
	case-insensitive search for "GNU <PACKAGE_NAME>".
	* gettext-tools/examples/hello-*/po/Makefile.am ($(DOMAIN).pot-update):
	Likewise.
	* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile
	($(DOMAIN).pot-update): Likewise.

2018-10-24  Bruno Haible  <bruno@clisp.org>

	po: Remove obsolete Makefile rules for .mo files.
	* gettext-runtime/po/Makefile.in.in (MSGFMT*): Remove variables.
	(.SUFFIXES): Remove .mo.
	(.po.mo): Remove rule.
	(distclean): Don't remove *.mo files.
	* gettext-tools/examples/hello-*/po/Makefile.am (.SUFFIXES): Remove .mo.
	(.po.mo): Remove rule.
	(DISTCLEANFILES): Remove *.mo.
	* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile (.SUFFIXES):
	Remove .mo.
	* gettext-runtime/m4/po.m4 (AM_PO_SUBDIRS): Don't set MSGFMT_015.

2018-10-24  Bruno Haible  <bruno@clisp.org>

	Remove outdated DJGPP build infrastructure.
	Approved by Juan Manuel Guerrero <juan.guerrero@gmx.de>.

	* djgpp: Remove directory.
	* Makefile.am (EXTRA_DIST): Remove the djgpp files.

2018-10-24  Bruno Haible  <bruno@clisp.org>

	examples: Add support for msgmerge --previous.
	This mirrors the Makefile.in.in change from 2016-07-01.

	* gettext-tools/examples/hello-*/po/Makefile.am ($(POFILES), update-po): Use
	option --previous when the msgmerge program supports it.
	* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile: Likewise.

2018-10-24  Bruno Haible  <bruno@clisp.org>

	examples: Support reading header comments from file.
	This mirrors the Makefile.in.in change from 2015-09-01 with the amendment
	from today.

	* gettext-tools/examples/hello-*/po/Makefile.am ($(DOMAIN).pot-update):
	Replace header entry with the content of $(DOMAIN).pot-header, if exists.
	* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile: Likewise.

2018-10-24  Bruno Haible  <bruno@clisp.org>

	examples: Make it possible to pass custom options to msginit.
	This mirrors the Makevars change from 2014-10-08.

	* gettext-tools/examples/hello-*/po/Makefile.am (MSGINIT_OPTIONS): New variable.
	* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile: Likewise.

2018-10-24  Bruno Haible  <bruno@clisp.org>

	examples: Add an option to claim the package as GNU/non-GNU.
	This mirrors the Makefile.in.in and Makevars change from 2014-05-01.

	Reported by David Shea at <https://savannah.gnu.org/bugs/?40520>.

	* gettext-runtime/po/Makefile.in.in ($(DOMAIN).pot-update): Tweak whitespace.
	* gettext-tools/examples/hello-*/po/Makefile.am (PACKAGE_GNU): New variable.
	($(DOMAIN).pot-update): Don't search for "GNU packagename" if $(PACKAGE_GNU) is
	set.
	* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile: Likewise.

2018-10-24  Bruno Haible  <bruno@clisp.org>

	examples: Upgrade to newest Makevars.
	* gettext-tools/examples/hello-*/po/Makevars (PACKAGE_GNU, MSGINIT_OPTIONS,
	PO_DEPENDS_ON_POT, DIST_DEPENDS_ON_UPDATE_PO): New variables.
	* gettext-tools/examples/hello-*/configure.* (AM_GNU_GETTEXT_VERSION): Require
	version 0.19.8.
	* gettext-tools/examples/po/xsmallpot.sh (hello-c++-kde): Likewise.
	* gettext-tools/examples/hello-*/m4/Makefile.am (EXTRA_DIST): Update list of .m4
	files.
	* gettext-tools/examples/hello-*/autoclean.sh: Likewise.
	* gettext-tools/examples/check-examples (func_check_maintainerclean,
	func_check_maintainerclean_vpath): Allow left-over .po~ files.

2018-10-24  Bruno Haible  <bruno@clisp.org>

	examples: Avoid grepping through monster files.
	This mirrors the Makefile.in.in change from 2010-06-12.

	Reported by Jim Meyering <jim@meyering.net>.

	* gettext-tools/examples/hello-*/po/Makefile.am (($(DOMAIN).pot-update): When
	GNU find is available, avoid grepping through monster files.
	* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile: Likewise.

2018-10-24  Bruno Haible  <bruno@clisp.org>

	examples: Don't create unnecessary installation directories.
	This mirrors the Makefile.in.in change from 2009-06-09.

	Reported by Serge Pavlovsky <pal666@gmail.com>.

	* gettext-tools/examples/hello-*/po/Makefile.am (install-data-local-yes,
	installdirs-local-yes): Remove unnecessary MKDIR_P invocations.

2018-10-24  Bruno Haible  <bruno@clisp.org>

	po: Make the insertion of the .pot-header file more robust.
	This improves on the 2015-09-01 patch.

	* gettext-runtime/po/Makefile.in.in ($(DOMAIN).pot-update): Fail if the 'cat'
	command fails.

2018-10-24  Bruno Haible  <bruno@clisp.org>

	po: When doing msgmerge --version, use the correct msgmerge program.
	This reverts the patch from
	<https://lists.gnu.org/archive/html/bug-gettext/2015-06/msg00000.html>.
	Rationale:
	<https://lists.gnu.org/archive/html/bug-gettext/2018-10/msg00000.html>.

	* gettext-runtime/po/Makefile.in.in ($(POFILES)): Use $(MSGMERGE_UPDATE),
	not $(MSGMERGE).

2018-10-24  Bruno Haible  <bruno@clisp.org>

	po: Make $(POFILES) target more robust.
	It was introduced on 2014-05-01.

	* gettext-runtime/po/Makefile.in.in ($(POFILES)): Create POT file also when the
	PO file does not yet exist. Fail if creation of the POT file fails.

2018-10-23  Bruno Haible  <bruno@clisp.org>

	Update list of files to check with gnulib.
	* Makefile.am (distcheck): Check also localename-table.h and localename-table.c.

2018-10-23  Bruno Haible  <bruno@clisp.org>

	intl: Improve support for per-thread locales on Solaris 11.4.
	* gettext-runtime/intl/localename.c: Update from gnulib:
	Handle HAVE_SOLARIS114_LOCALES through Solaris specific code.
	* gettext-runtime/intl/localename-table.in.h: Update from gnulib's
	localename-table.h.
	* gettext-runtime/intl/localename-table.c: Update from gnulib.
	* gettext-runtime/m4/intl-thread-locale.m4: Renamed from
	gettext-runtime/m4/intlsolaris.m4.
	(gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
	HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
	* gettext-runtime/m4/intl.m4: Update from gnulib:
	(AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test for 'uselocale'. Set
	HAVE_NAMELESS_LOCALES.
	(gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
	HAVE_NAMELESS_LOCALES here.
	* gettext-runtime/m4/Makefile.am (EXTRA_DIST): List intl-thread-locale.m4, not
	intlsolaris.m4.
	* gettext-tools/m4/Makefile.am (aclocal_DATA): List intl-thread-locale.m4, not
	intlsolaris.m4.
	* gettext-tools/misc/gettextize.in (m4filelist): List intl-thread-locale.m4, not
	intlsolaris.m4.
	* Makefile.am (distcheck-hook): Check intl-thread-locale.m4, not intlsolaris.m4.
	* gettext-tools/doc/gettext.texi (aclocal): List intl-thread-locale.m4, not
	intlsolaris.m4.
	* PACKAGING: List intl-thread-locale.m4, not intlsolaris.m4.

2018-10-23  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2018-10-23  Bruno Haible  <bruno@clisp.org>

	intl: Fix support for per-thread locales on Solaris 11.4.
	* gettext-runtime/intl/localename-table.in.h: Renamed from
	gettext-runtime/intl/localename-table.h.
	* gettext-runtime/intl/Makefile.in (HEADERS): Add localename-table.in.h. Remove
	localename-table.h.
	(localename-table.h): New target.
	(localename.$lo, localename-table.$lo): Update dependencies.
	(mostlyclean): Remove localename-table.h.

2018-10-23  Daiki Ueno  <ueno@gnu.org>

	xgettext: Fix compiler warning
	* gettext-tools/src/x-javascript.c (phase5_scan_regexp): Remove
	implicit argument.  Reported in:
	<https://savannah.gnu.org/bugs/?48404>.

2018-10-23  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* configure.ac: Require Autoconf >= 2.63.
	* gettext-runtime/configure.ac: Likewise.
	* gettext-runtime/libasprintf/configure.ac: Likewise.
	* gettext-tools/configure.ac: Likewise.

2018-10-23  Bruno Haible  <bruno@clisp.org>

	Update from gnulib: Assume Autoconf >= 2.63.
	* gettext-runtime/m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
	* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
	* gettext-runtime/m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume
	AC_USE_SYSTEM_EXTENSIONS exists.
	* gettext-runtime/m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
	* gettext-runtime/m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
	* gettext-runtime/m4/size_max.m4 (AC_COMPUTE_INT): Remove fallback for
	Autoconf < 2.61.

2018-10-23  Bruno Haible  <bruno@clisp.org>

	Update from gnulib: Assume Automake >= 1.11.
	* gettext-runtime/m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE):
	Eliminate uses of 'eval'.

2018-10-23  Bruno Haible  <bruno@clisp.org>

	Update from gnulib: Make better use of Autoconf.
	* gettext-runtime/m4/visibility.m4: Use AC_CACHE_CHECK where possible.

2018-10-23  Bruno Haible  <bruno@clisp.org>

	intl: Add support for per-thread locales on Solaris 11.4.
	Relies on the recent changes to the 'localename' module in gnulib.

	* gettext-runtime/intl/localename.c: Apply changes from gnulib.
	* gettext-runtime/intl/localename-table.h: New file, from gnulib.
	* gettext-runtime/intl/localename-table.c: New file, from gnulib.
	* gettext-runtime/intl/libgnuintl.in.h (newlocale, duplocale, freelocale): New
	overriding declarations.
	* gettext-runtime/intl/Makefile.in (HEADERS): Add localename-table.h.
	(SOURCES): Add localename-table.c.
	(OBJECTS): Add localename-table.$lo.
	(localename-table.lo): New target.
	(libgnuintl.h, libintl.h): Substitute also HAVE_NAMELESS_LOCALES.
	* gettext-runtime/m4/intl.m4: Apply changes from gnulib:
	(gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and 'getlocalename_l'.
	Instead, invoke gt_INTL_SOLARIS. Set HAVE_NAMELESS_LOCALES.
	* gettext-runtime/m4/intlsolaris.m4: New file, from gnulib.
	* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Add it.
	* gettext-tools/m4/Makefile.am (aclocal_DATA): Add intlsolaris.m4.
	* gettext-tools/misc/gettextize.in (m4filelist): Add intlsolaris.m4.
	* Makefile.am (distcheck-hook): Verify that intlsolaris.m4 is consistent with
	gnulib.
	* gettext-tools/doc/gettext.texi (aclocal): Add intlsolaris.m4 to the file list.
	* PACKAGING: Add intlsolaris.m4 to the list of installed files.
	* NEWS: Mention the change.

2018-10-23  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2018-10-23  Bruno Haible  <bruno@clisp.org>

	examples: Fix another build failure.
	* gettext-tools/examples/po/xsmallpot.sh: In hello-pascal, make sure to build
	hello.rsj.

2018-10-21  Bruno Haible  <bruno@clisp.org>

	New subdirectory system-tests.
	* gettext-tools/system-tests/Makefile.am: New file.
	* gettext-tools/system-tests/README: New file.
	* gettext-tools/system-tests/run-test: New file.
	* gettext-tools/system-tests/testlocale.c: New file.
	* gettext-tools/system-tests/intl-1-prg.c: New file.
	* gettext-tools/system-tests/intl-3-prg.c: New file.
	* gettext-tools/system-tests/intl-4-prg.c: New file.
	* gettext-tools/system-tests/intl-5-prg.c: New file.
	* gettext-tools/system-tests/intl-setlocale-1-prg.c: New file.
	* gettext-tools/system-tests/intl-setlocale-2-prg.c: New file.
	* gettext-tools/system-tests/intl-thread-1-prg.c: New file.
	* gettext-tools/system-tests/intl-thread-2-prg.c: New file.
	* gettext-tools/system-tests/intl-thread-3-prg.c: New file.
	* gettext-tools/system-tests/format-c-3-prg.c: New file.
	* gettext-tools/system-tests/format-c-4-prg.c: New file.
	* gettext-tools/system-tests/format-c-5-prg.c: New file.
	* gettext-tools/system-tests/plural-1-prg.c: New file.
	* gettext-tools/Makefile.am (SUBDIRS): Add system-tests.
	* gettext-tools/configure.ac (TEST_SYSTEM_LIBINTL): New conditional.
	(AC_CONFIG_FILES): Add system-tests/Makefile.
	* gettext-tools/tests/init.cfg: Include init-env from the tests/ directory.
	* gettext-tools/tests/intl-5-prg.c: When USE_SYSTEM_LIBINTL is defined, use the
	system's <libintl.h>.
	* gettext-tools/tests/intl-setlocale-1-prg.c: Likewise.
	* gettext-tools/tests/intl-setlocale-2-prg.c: Likewise.
	* gettext-tools/tests/intl-thread-1-prg.c: Likewise.
	* gettext-tools/tests/intl-thread-2-prg.c: Likewise.
	* gettext-tools/tests/intl-thread-3-prg.c: Likewise.
	* gettext-tools/tests/intl-1-prg.c: When USE_SYSTEM_LIBINTL is defined, use the
	system's <libintl.h>.
	* gettext-tools/tests/intl-3-prg.c: Likewise.
	* gettext-tools/tests/intl-4-prg.c: Likewise.
	* gettext-tools/tests/format-c-3-prg.c: Likewise.
	* gettext-tools/tests/format-c-4-prg.c: Likewise.
	* gettext-tools/tests/plural-1-prg.c: Likewise.
	* gettext-tools/tests/format-c-5-prg.c: When USE_SYSTEM_LIBINTL is defined, use
	the system's <libintl.h> and setenv instead of xsetenv, and no fake setlocale.
	* gettext-tools/tests/format-c-3: When USE_SYSTEM_LIBINTL is defined, try
	$LOCALE_FR and $LOCALE_FR_UTF8.
	* gettext-tools/tests/format-c-4: Likewise.
	* gettext-tools/tests/plural-1: Likewise.
	* gettext-tools/tests/format-c-5: When USE_SYSTEM_LIBINTL is defined, try fa_IR
	and fa_IR.UTF-8.

2018-10-21  Bruno Haible  <bruno@clisp.org>

	Update comments.
	* gettext-tools/tests/Makefile.am: Update comments.

2018-10-21  Bruno Haible  <bruno@clisp.org>

	Rename test gettext-8 to intl-5.
	* gettext-tools/tests/intl-5: Renamed from gettext-tools/tests/gettext-8.
	* gettext-tools/tests/intl-5-prg.c: Renamed from
	gettext-tools/tests/gettext-8-prg.c.
	* gettext-tools/tests/Makefile.am: Update.

2018-10-21  Bruno Haible  <bruno@clisp.org>

	Rename test gettext-7 to intl-thread-3 and support more platforms.
	* gettext-tools/tests/intl-thread-3: Renamed from gettext-tools/tests/gettext-7.
	Don't limit to fixed set of platforms.
	* gettext-tools/tests/intl-thread-3-prg.c: Renamed from
	gettext-tools/tests/gettext-7-prg.c. Expect locale names as arguments.
	* gettext-tools/tests/intl-thread-3.po: Renamed from
	gettext-tools/tests/gettext-7.po.
	* gettext-tools/tests/Makefile.am: Update.

2018-10-21  Bruno Haible  <bruno@clisp.org>

	Make the intl-thread-2 test effective on Solaris 11.
	* gettext-tools/m4/locale-de.m4: New file, based on locale-fr.m4 from gnulib.
	* gettext-tools/m4/Makefile.am (EXTRA_DIST): Add it.
	* gettext-tools/configure.ac: Invoke gt_LOCALE_DE_UTF8.
	* gettext-tools/tests/init-env.in: Set LOCALE_DE_UTF8.
	* gettext-tools/tests/intl-thread-2: Use a German instead of a Turkish locale.

2018-10-21  Bruno Haible  <bruno@clisp.org>

	Rename test gettext-6 to intl-thread-2 and support more platforms.
	* gettext-tools/tests/intl-thread-2: Renamed from gettext-tools/tests/gettext-6.
	Don't limit to fixed set of platforms.
	* gettext-tools/tests/intl-thread-2-prg.c: Renamed from
	gettext-tools/tests/gettext-6-prg.c. Expect locale names as arguments.
	* gettext-tools/tests/intl-thread-2-1.po: Renamed from
	gettext-tools/tests/gettext-6-2.po. Convert to UTF-8.
	* gettext-tools/tests/intl-thread-2-2.po: Renamed from
	gettext-tools/tests/gettext-6-1.po. Convert to UTF-8.
	* gettext-tools/tests/Makefile.am: Update.

2018-10-21  Bruno Haible  <bruno@clisp.org>

	New test intl-thread-1.
	* gettext-tools/tests/intl-thread-1: New file.
	* gettext-tools/tests/intl-thread-1-prg.c: New file.
	* gettext-tools/tests/intl-thread-1.po: New file.
	* gettext-tools/tests/Makefile.am: Update.

2018-10-21  Bruno Haible  <bruno@clisp.org>

	Rename test gettext-5 to intl-setlocale-2.
	* gettext-tools/tests/intl-setlocale-2: Renamed from
	gettext-tools/tests/gettext-5.
	* gettext-tools/tests/intl-setlocale-2-prg.c: Renamed from
	gettext-tools/tests/gettext-5-prg.c.
	* gettext-tools/tests/intl-setlocale-2.po: Renamed from
	gettext-tools/tests/gettext-5.po.
	* gettext-tools/tests/Makefile.am: Update.

2018-10-21  Bruno Haible  <bruno@clisp.org>

	Rename test gettext-4 to intl-4.
	* gettext-tools/tests/intl-4: Renamed from gettext-tools/tests/gettext-4.
	* gettext-tools/tests/intl-4-prg.c: Renamed from
	gettext-tools/tests/gettext-4-prg.c.
	* gettext-tools/tests/intl-4.po: Renamed from gettext-tools/tests/gettext-4.po.
	* gettext-tools/tests/Makefile.am: Update.

2018-10-21  Bruno Haible  <bruno@clisp.org>

	New test intl-3.
	* gettext-tools/tests/intl-3: New file.
	* gettext-tools/tests/intl-3-prg.c: New file.
	* gettext-tools/tests/Makefile.amL Update.

2018-10-21  Bruno Haible  <bruno@clisp.org>

	New test intl-2.
	* gettext-tools/tests/intl-2: New file.
	* gettext-tools/tests/intl-2-1.po: New file.
	* gettext-tools/tests/intl-2-2.po: New file.
	* gettext-tools/tests/Makefile.am: Update.

2018-10-21  Bruno Haible  <bruno@clisp.org>

	New test intl-1.
	* gettext-tools/tests/intl-1: New file.
	* gettext-tools/tests/intl-1-prg.c: New file.
	* gettext-tools/tests/intl-1.po: New file.
	* gettext-tools/tests/Makefile.am: Update.

2018-10-21  Bruno Haible  <bruno@clisp.org>

	Rename gettext-3 test to intl-setlocale-1.
	* gettext-tools/tests/intl-setlocale-1: Renamed from
	gettext-tools/tests/gettext-3.
	* gettext-tools/tests/intl-setlocale-1-prg.c: Renamed from
	gettext-tools/tests/gettext-3-prg.c.
	* gettext-tools/tests/intl-setlocale-1-1.po: Renamed from
	gettext-tools/tests/gettext-3-1.po.
	* gettext-tools/tests/intl-setlocale-1-2.po: Renamed from
	gettext-tools/tests/gettext-3-2.po.
	* gettext-tools/tests/Makefile.am: Update.

2018-10-21  Bruno Haible  <bruno@clisp.org>

	Update PACKAGING documentation.
	* PACKAGING: Remove mention of charset.alias (dropped on 2018-05-19).
	Mention that libintl does not get installed on Solaris 11.

2018-10-21  Bruno Haible  <bruno@clisp.org>

	Tests: Update comments.
	* gettext-tools/tests/lang-python-1: Update comment about Python versions.
	* gettext-tools/tests/lang-python-2: Likewise.
	* gettext-tools/tests/lang-pascal: Update comment about fpk versions.

2018-10-21  Bruno Haible  <bruno@clisp.org>

	Fix lang-bash test failure in VPATH builds.
	* gettext-tools/tests/lang-bash: Prepend the gettext-runtime/src build dir,
	not the gettext-runtime/src source dir, to PATH.

2018-10-20  Bruno Haible  <bruno@clisp.org>

	Fix 'make dist' (recent regression).
	* gettext-tools/examples/Makefile.am (EXAMPLESFILES): Remove
	hello-pascal/hello.rst.

2018-10-19  Bruno Haible  <bruno@clisp.org>

	examples: Modernize configure.ac.
	* gettext-tools/examples/hello-*/configure.ac: Use the recommended AC_INIT and
	AM_INIT_AUTOMAKE syntax. Require automake >= 1.11.

2018-10-19  Bruno Haible  <bruno@clisp.org>

	examples: Add a script for checking against mistakes.
	* gettext-tools/examples/check-examples: New file.
	* gettext-tools/examples/HACKING: New file.
	* gettext-tools/examples/Makefile.am (EXTRA_DIST): Add them.
	* Admin/release-steps: Mention check-examples.

2018-10-19  Bruno Haible  <bruno@clisp.org>

	examples: hello-pascal: Fix 'make distcheck'.
	* gettext-tools/examples/hello-pascal/Makefile.am (hello$(EXEEXT)): Move
	hello.rsj into $(srcdir) only if the new contents differs from the old contents.

2018-10-19  Bruno Haible  <bruno@clisp.org>

	examples: hello-java*: Fix 'make distcheck'.
	* gettext-tools/examples/hello-java*/po/Makefile.am (update-properties): Create
	the new .properties files in the build dir and move them to $(srcdir) only if
	the new contents differs from the old contents.
	(update-classes): Likewise, also for .class files.

2018-10-18  Bruno Haible  <bruno@clisp.org>

	examples: hello-csharp*: Improve 'make maintainer-clean'.
	* gettext-tools/examples/hello-csharp*/po/Makefile.am (MAINTAINERCLEANFILES):
	Don't list the $(RESOURCESDLLFILES) here.
	(maintainer-clean-local): Instead, remove them and their parent directories
	here.

2018-10-18  Bruno Haible  <bruno@clisp.org>

	examples: hello-php: Fix runtime error.
	* gettext-tools/examples/hello-php/hello.php: Fix the PHP markup. Don't print
	the return value of the printf function.

2018-10-18  Bruno Haible  <bruno@clisp.org>

	examples: hello-tcl*: Fix runtime error.
	* gettext-tools/examples/hello-tcl*/configure.ac: Ensure pkgdatadir is an
	absolute file name without variable references.

2018-10-18  Bruno Haible  <bruno@clisp.org>

	examples: hello-clisp: Fix runtime error with clisp versions >= 2.34.
	* gettext-tools/examples/hello-clisp/hello.lisp.in: Use the function
	PROCESS-ID, not PROGRAM-ID.

2018-10-18  Bruno Haible  <bruno@clisp.org>

	examples: Fix 'make dist' failures in VPATH builds.
	* gettext-tools/examples/hello-*/po/Makefile.am (distdir1): Invoke target
	'stamp-po' after having done target 'update-po'.

2018-10-18  Bruno Haible  <bruno@clisp.org>

	examples: hello-pascal: Fix 'make dist' failure in VPATH builds.
	* gettext-tools/examples/hello-pascal/Makefile.am: Generate hello.rsj
	in $(srcdir), not in the build dir.

2018-10-18  Bruno Haible  <bruno@clisp.org>

	examples: hello-pascal: Fix 'make dist'.
	* gettext-tools/examples/hello-pascal/Makefile.am (EXTRA_DIST): Add the source
	file.

2018-10-18  Bruno Haible  <bruno@clisp.org>

	examples: hello-java*: Fix "make dist".
	* gettext-runtime/m4/po.m4 (AM_POSTPROCESS_PO_MAKEFILE): Change PROPERTIESFILES
	and CLASSFILES to contain files in $(srcdir), not in $(top_srcdir).
	* gettext-tools/examples/hello-java*/Makefile.am (hello.jar): Fetch the catalogs
	from the po/ directory.
	* gettext-tools/examples/hello-java*/po/Makefile.am (MAINTAINERCLEANFILES):
	Add the .properties and the .class files.
	(EXTRA_DIST): Add the .properties files.
	(update-properties, update-classes): Generate the .properties and .class files
	in the po/ directory, not in the top-level directory.
	* gettext-tools/examples/hello-java*/autoclean.sh: Remove the catalogs in
	the po/ directory, not in the top-level directory.

2018-10-18  Bruno Haible  <bruno@clisp.org>

	examples: Fix 'make dist'.
	* gettext-tools/examples/hello-c/m4/Makefile.am (EXTRA_DIST): Add all files
	that are brought in by 'autopoint'.
	* gettext-tools/examples/hello-c-gnome/m4/Makefile.am (EXTRA_DIST): Likewise.
	* gettext-tools/examples/hello-c-gnome3/m4/Makefile.am (EXTRA_DIST): Likewise.
	* gettext-tools/examples/hello-c++/m4/Makefile.am (EXTRA_DIST): Likewise.
	* gettext-tools/examples/hello-c++-kde/m4/Makefile.am (EXTRA_DIST): Likewise.
	* gettext-tools/examples/hello-c++-gnome/m4/Makefile.am (EXTRA_DIST): Likewise.
	* gettext-tools/examples/hello-objc/m4/Makefile.am (EXTRA_DIST): Likewise.
	* gettext-tools/examples/hello-objc-gnome/m4/Makefile.am (EXTRA_DIST): Likewise.

2018-10-18  Bruno Haible  <bruno@clisp.org>

	examples: Fix 'make' failures in VPATH builds.
	* gettext-tools/examples/hello-java*/Makefile.am (hello_RESOURCES,
	MAINTAINERCLEANFILES): Remove variables.
	(hello.jar): Use two jar commands, to combine .class files from the build dir
	with .properties files from the source dir.
	* gettext-tools/examples/hello-java*/po/Makefile.am (update-properties,
	update-classes): Reference the .pot file in the source dir, not in the build
	dir.
	(echo-catalogs): Include the fallback catalog.
	* gettext-tools/examples/hello-pascal/Makefile.am (hello_SOURCES): Add $(srcdir)
	prefix.
	(hello$(EXEEXT)): Use -o option to specify where the object file and the
	executable file shall be created.

2018-10-17  Bruno Haible  <bruno@clisp.org>

	examples: hello-csharp-forms: Fix 'make clean'.
	* gettext-tools/examples/hello-csharp-forms/Makefile.am (CLEANFILES): Add
	hello.net.exe.mdb.

2018-10-17  Bruno Haible  <bruno@clisp.org>

	examples: hello-csharp: Fix 'make clean'.
	* gettext-tools/examples/hello-csharp/Makefile.am (CLEANFILES): Add
	hello.net.exe.mdb.

2018-10-17  Bruno Haible  <bruno@clisp.org>

	examples: hello-objc-gnustep: Fix 'make distclean'.
	* gettext-tools/examples/hello-objc-gnustep/GNUmakefile (internal-distclean):
	Remove the *.lproj directories.
	* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile (internal-clean):
	Remove remove-potcdate.sed.

2018-10-17  Bruno Haible  <bruno@clisp.org>

	examples: hello-pascal: Fix 'make maintainer-clean'.
	* gettext-tools/examples/hello-pascal/Makefile.am (MAINTAINERCLEANFILES): New
	variable.

2018-10-17  Bruno Haible  <bruno@clisp.org>

	examples: hello-java: Fix 'make' failure.
	* gettext-tools/examples/hello-java/po/Makefile.am (stamp-po): Fix syntax error.

2018-10-17  Bruno Haible  <bruno@clisp.org>

	examples: hello-pascal: Update.
	* gettext-tools/examples/hello-pascal/configure.ac (PPC): Test for ppcx64 if
	ppc386 is not found.
	* gettext-tools/examples/hello-pascal/hello.rst: Remove file.
	* gettext-tools/examples/hello-pascal/Makefile.am: hello.rsj replaces hello.rst.
	(SUBDIRS): Proceed in current directory before recursing into po/.
	* gettext-tools/examples/hello-pascal/po/Makefile.am (POTFILES): hello.rsj
	replaces hello.rst.
	* gettext-tools/examples/hello-pascal/autoclean.sh: Remove hello.rsj.

2018-10-17  Bruno Haible  <bruno@clisp.org>

	examples: Correctly clean up left-over files.
	* gettext-tools/examples/hello-csharp/autoclean.sh: Handle shell wildcard
	correctly.
	* gettext-tools/examples/hello-csharp-forms/autoclean.sh: Likewise.

2018-10-15  Bruno Haible  <bruno@clisp.org>

	examples: Remove left-over files.
	* gettext-tools/examples/hello-*/autoclean.sh: Remove left-over files.

2018-10-15  Bruno Haible  <bruno@clisp.org>

	examples: Clean up autoconf left-over.
	* gettext-tools/examples/hello-*/autoclean.sh: Remove the 'autom4te.cache'
	directory.

2018-10-15  Bruno Haible  <bruno@clisp.org>

	examples: hello-c++-widgets: Update build infrastructure.
	* gettext-tools/examples/hello-c++-widgets/autogen.sh: Pull in some more .m4
	files.
	* gettext-tools/examples/hello-c++-widgets/autoclean.sh: Remove them.

2018-10-15  Bruno Haible  <bruno@clisp.org>

	Update test after gnulib module 'localcharset' changed.
	* gettext-tools/tests/gettext-4-prg.c: Treat Haiku like BeOS.

2018-10-15  Bruno Haible  <bruno@clisp.org>

	examples: Fix "make dist" error.
	* gettext-tools/examples/po/xsmallpot.sh (hello-c++-kde): Invoke 'autopoint'
	before, not after, 'aclocal'.

2018-10-15  Bruno Haible  <bruno@clisp.org>

	examples: Update developer documentation.
	* gettext-tools/examples/hello-csharp*/po/Makefile.am: Add comment.
	* gettext-tools/examples/hello-tcl*/po/Makefile.am: Likewise.

2018-10-15  Bruno Haible  <bruno@clisp.org>

	examples: Improve developer documentation.
	* gettext-tools/examples/README: Add note about po/ directories.

2018-10-15  Bruno Haible  <bruno@clisp.org>

	examples: Improve developer documentation.
	* HACKING: Mention dependency needed for examples.
	* gettext-tools/examples/hello-objc-gnustep/INSTALL: Small clarifications.

2018-10-15  Bruno Haible  <bruno@clisp.org>

	Fix list of dependencies.
	* DEPENDENCIES: Add libacl.

2018-10-15  Bruno Haible  <bruno@clisp.org>

	C# doc: Fix typo in Makefile.
	* gettext-runtime/intl-csharp/Makefile.am (doc): Fix typo.

2018-10-15  Bruno Haible  <bruno@clisp.org>

	gettextize: Don't redirect stderr.
	Reported by ShellCheck via Pavel Raiskup <praiskup@redhat.com>.

	* gettext-tools/misc/gettextize.in: Don't redirect stderr.

2018-10-15  Bruno Haible  <bruno@clisp.org>

	autopoint: Don't redirect stderr.
	Reported by ShellCheck via Pavel Raiskup <praiskup@redhat.com>.

	* gettext-tools/misc/autopoint.in (func_version_prereq): Don't redirect stderr.

2018-10-15  Bruno Haible  <bruno@clisp.org>

	Fix "make dist" error (regression from 2018-10-09).
	* gettext-tools/examples/Makefile.am (EXAMPLESFILES): Remove
	hello-csharp-forms/BUGS.

2018-10-09  Bruno Haible  <bruno@clisp.org>

	C# support: Remove pnet choice.
	* DEPENDENCIES: Don't mention pnet.
	* PACKAGING: Likewise.
	* gettext-tools/src/format-csharp.c: Simplify comment.
	* gettext-tools/src/msgfmt.cs: Remove workarounds for cscc.
	* gettext-tools/src/write-csharp.c (write_csharp_code): Update comment.
	* gettext-tools/doc/gettext.texi (C#): Don't mention resgen.
	* gettext-tools/tests/lang-csharp: Rely on mono, not pnet.
	* gettext-tools/examples/hello-csharp/INSTALL: Likewise.
	* gettext-tools/examples/hello-csharp-forms/INSTALL: Likewise.
	* gettext-tools/examples/hello-csharp-forms/BUGS: Remove file.

2018-10-09  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2018-10-06  Bruno Haible  <bruno@clisp.org>

	Fix a build failure on mingw with -O0.
	Reported at <https://savannah.gnu.org/bugs/?36443>.
	Fix suggested by Evgeny Grin <k2k@narod.ru>
	in <https://savannah.gnu.org/bugs/?36443#comment4>.

	* gnulib-local/build-aux/moopp (func_emit_source_h): Wrap the function
	declarations in extern "C" {}.

2018-10-05  Bruno Haible  <bruno@clisp.org>

	msgfmt: Remove outdated warning.
	* gettext-tools/src/msgfmt.c (msgfmt_parse_debrief): Remove outdated warning.
	(struct msgfmt_catalog_reader_ty): Remove field 'has_nonfuzzy_header_entry'.
	(msgfmt_constructor, msgfmt_frob_new_message): Update.

2018-10-05  Bruno Haible  <bruno@clisp.org>

	Fix conflict between different uses of GETTEXTLIBDIR.
	Rationale: The programs installed in $(prefix)/lib/gettext/ are at different
	locations before installation: some are in the source tree, some are in the
	build tree.

	* gettext-tools/src/msginit.c (project_id, project_id_version): Test
	GETTEXTLIBDIR_SRCDIR, not GETTEXTLIBDIR.
	(plural_forms): Test GETTEXTLIBDIR_BUILDDIR, not GETTEXTLIBDIR.
	* gettext-tools/tests/msginit-3: Set GETTEXTLIBDIR_SRCDIR, not GETTEXTLIBDIR.
	* gettext-tools/tests/msginit-4: Set both GETTEXTLIBDIR_SRCDIR and
	GETTEXTLIBDIR_BUILDDIR.

2018-10-05  Bruno Haible  <bruno@clisp.org>

	Fix conflict between different uses of GETTEXTDATADIR.
	* gettext-tools/src/read-tcl.c (msgdomain_read_tcl): Test GETTEXTTCLDIR, not
	GETTEXTDATADIR.
	* gettext-tools/tests/msgunfmt-tcl-1: Set GETTEXTTCLDIR, not GETTEXTDATADIR.

2018-10-05  Bruno Haible  <bruno@clisp.org>

	Fix msginit-4 test failure when run step-by-step.
	* gettext-tools/tests/msginit-4: Don't assume that the test is run in a
	directory with just one POT file.

2018-10-05  Bruno Haible  <bruno@clisp.org>

	cldr-plurals: Improve error handling.
	* gettext-tools/src/cldr-plurals.c (extract_rules): Let libxml2 show errors.
	Don't assume that the error was an out-of-memory.

2018-10-05  Bruno Haible  <bruno@clisp.org>

	Remove unnecessary trailing comma in struct initializers.
	* gettext-tools/src/msgattrib.c (long_options): Remove trailing comma in
	initializer.
	* gettext-tools/src/msgcat.c (long_options): Likewise.
	* gettext-tools/src/msgcomm.c (long_options): Likewise.
	* gettext-tools/src/msgconv.c (long_options): Likewise.
	* gettext-tools/src/msgen.c (long_options): Likewise.
	* gettext-tools/src/msgfilter.c (long_options): Likewise.
	* gettext-tools/src/msgmerge.c (long_options): Likewise.
	* gettext-tools/src/msgunfmt.c (long_options): Likewise.
	* gettext-tools/src/msguniq.c (long_options): Likewise.
	* gettext-tools/src/xgettext.c (long_options): Likewise.

2018-10-05  Bruno Haible  <bruno@clisp.org>

	Explain how to concatenate POT files.
	Reported by Hadi Farah in
	<https://lists.gnu.org/archive/html/bug-gettext/2018-09/msg00026.html>.

	* gettext-tools/doc/msgcat.texi: Explain how to concatenate POT files.

2018-10-05  Bruno Haible  <bruno@clisp.org>

	Include gnulib module 'mkdir', needed for older mingw versions.
	Reported by Maarten Bosmans at <https://savannah.gnu.org/bugs/?33379>.

	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add 'mkdir'.

2018-10-05  Bruno Haible  <bruno@clisp.org>

	Fix link error when building with --enable-shared on mingw.
	* autogen.sh (GNULIB_MODULES_LIBGETTEXTPO_OTHER): Add 'realloc-posix'.

2018-10-05  Bruno Haible  <bruno@clisp.org>

	Fix msginit-4 test failure on Cygwin with --enable-shared.
	* gettext-tools/src/msginit.c (plural_forms): Include the program's directory
	in argv[0].

2018-10-05  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gettext-runtime/intl/vasnprintf.c: Update from gnulib.
	* gettext-runtime/libasprintf/vasnprintf.c: Update from gnulib.

2018-10-05  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2018-09-19  Bruno Haible  <bruno@clisp.org>

	Avoid test failures on 32-bit Cygwin in a 64-bit Cygwin environment.
	In this situation, argv[0] is absolute, even though the program was invoked
	as a file name without slashes (and thus found in $PATH).

	* gettext-tools/tests/msgcmp-2: Normalize the program name better.
	* gettext-tools/tests/msgcmp-3: Likewise.
	* gettext-tools/tests/msgfmt-7: Likewise.
	* gettext-tools/tests/msgfmt-8: Likewise.
	* gettext-tools/tests/msgfmt-9: Likewise.
	* gettext-tools/tests/msgfmt-10: Likewise.
	* gettext-tools/tests/msgmerge-2: Likewise.
	* gettext-tools/tests/msgmerge-9: Likewise.

2018-09-18  Bruno Haible  <bruno@clisp.org>

	Fix link error when building with --disable-shared on 64-bit Cygwin.
	* gnulib-local/lib/execute.c.diff: Remove file.
	* gnulib-local/lib/spawn-pipe.c.diff: Remove file.
	* gnulib-local/tests/test-environ.c.diff: Remove file.
	* gnulib-local/Makefile.am (EXTRA_DIST): Remove them.

2018-09-18  Bruno Haible  <bruno@clisp.org>

	Fix link error when building with --disable-shared on Cygwin and mingw.
	* gettext-tools/configure.ac (LIBXML_STATIC): Define to 1 when using the
	included libxml and building with --disable-shared.
	* gnulib-local/lib/libxml/libxml.h (LIBXML_STATIC): Define to 1, not empty.

2018-09-17  Bruno Haible  <bruno@clisp.org>

	autogen.sh: Fix use of undefined function.
	* autogen.sh: Rewrite error message code.

2018-09-17  Bruno Haible  <bruno@clisp.org>

	Fix link error on Cygwin.
	Patch partially by Michael Haubenwallner at
	https://gitlab.gnome.org/GNOME/libxml2/commit/c65c9e8ee07e2dab0647392c2bd1795a5bc99829

	* gnulib-local/lib/libxml/xmlexports.in.h: Don't assume that _WIN32 is defined
	on Cygwin.
	(XMLPUBVAR): Define as 'extern', not as empty.

2018-09-17  Bruno Haible  <bruno@clisp.org>

	Fix "Unescaped left brace in regex is deprecated here" warnings from Perl 5.26.
	Reported and patch by Jehan <jehan@girinstud.io> <jehan@zemarmot.net> at
	<https://savannah.gnu.org/bugs/?54088>.

	* gettext-tools/doc/texi2html: Escape braces in regular expressions.
	* gettext-runtime/libasprintf/texi2html: Likewise.

2018-09-17  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gnulib-local/modules/fnmatch.diff: Update.
	* gettext-runtime/intl/config.charset: Remove file.
	* gettext-runtime/intl/localcharset.h: Update from gnulib.
	* gettext-runtime/intl/localcharset.c: Likewise.
	* gettext-runtime/intl/Makefile.in (DISTFILES.common): Remove config.charset.
	(charset.alias): Remove target.
	(install-exec): Don't install charset.alias.
	(install-data): Don't chmod config.charset.
	(installdirs): Don't create $(libdir).
	(uninstall): Don't uninstall charset.alias.
	(mostlyclean): Don't remove charset.alias.
	* gettext-runtime/intl/lock.h: Update from gnulib.
	* gettext-runtime/intl/verify.h: Likewise.
	* gettext-runtime/intl/printf-parse.c: Likewise.
	* gettext-runtime/libasprintf/printf-parse.c: Likewise.
	* gettext-runtime/m4/extern-inline.m4: Likewise.
	* gettext-runtime/m4/threadlib.m4: Likewise.
	* Makefile.am (distcheck-hook): Don't compare config.charset, ref-add.sin,
	ref-del.sin.

2018-09-17  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2018-09-17  Bruno Haible  <bruno@clisp.org>

	Fix lang-sh test failure in VPATH builds.
	* gettext-tools/tests/lang-sh: Prepend the gettext-runtime/src build dir,
	not the gettext-runtime/src source dir, to PATH.

2018-09-16  Bruno Haible  <bruno@clisp.org>

	libintl: Improve locale handling on macOS 10.12 or newer.
	* gettext-runtime/intl/langprefs.c (_nl_language_preferences_default): Make the
	logic also work in locales such as "zh-Hans-DE".
	* gettext-runtime/intl/setlocale.c: Include header files for CoreFoundation.
	(libintl_setlocale): Try harder to set a locale for categories LC_CTYPE and
	LC_MESSAGES.

2018-09-16  Bruno Haible  <bruno@clisp.org>

	Don't assume that 'sed' supports alternation in regular expressions.
	See https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Limitations-of-Usual-Tools.html

	* gettext-tools/tests/msginit-1: Don't use \| in a 'sed' regular expression.
	* gettext-tools/tests/msginit-3: Likewise.
	* gettext-tools/tests/msginit-4: Likewise.

2018-09-16  Bruno Haible  <bruno@clisp.org>

	Update list of locale names with scripts on macOS.
	* gettext-runtime/intl/localename.c (gl_locale_name_canonicalize): Update
	tables to match Mac OS X 10.13 and recent glibc.

2018-09-16  Bruno Haible  <bruno@clisp.org>

	Oops, fix typo.
	* gettext-runtime/m4/intlmacosx.m4 (gt_INTL_MACOSX): Fix variable name.

2018-09-16  Bruno Haible  <bruno@clisp.org>

	Fix link error in "make check" when building with --disable-shared on macOS.
	* gnulib-local/modules/term-ostream-tests (test_term_ostream_LDADD): Add
	@INTL_MACOSX_LIBS@.

2018-09-16  Bruno Haible  <bruno@clisp.org>

	Use newer macOS APIs when possible.
	* gettext-runtime/m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
	CFLocaleCopyPreferredLanguages.
	* gettext-runtime/intl/langprefs.c (_nl_language_preferences_default): Use
	CFLocaleCopyPreferredLanguages when it exists.

2018-09-16  Bruno Haible  <bruno@clisp.org>

	Revisit macOS specific code.
	* gettext-runtime/intl/localename.c (gl_locale_name_default): Reduce code
	duplication. Fix comments about Mac OS X versions.

2018-09-16  Bruno Haible  <bruno@clisp.org>

	libintl: Fix language preferences on macOS 10.12 or newer.
	Reported by Kristian Rietveld <kris@loopnest.org> at
	<https://savannah.gnu.org/bugs/?49560>.

	* gettext-runtime/intl/langprefs.c (_nl_language_preferences_default): Handle
	preferences elements of the form "ll-CC" in a reasonable way.
	* NEWS: Mention the change.

2018-09-16  Bruno Haible  <bruno@clisp.org>

	setlocale: Improve support for locales not supported by libc.
	Reported by Dapeng Gao <peter@dpgao.cc> at
	<https://savannah.gnu.org/bugs/?54479>.

	* gettext-runtime/intl/setlocale.c: Include <stdio.h>.
	(libintl_setlocale): Use a more error-tolerant strategy when the locale to be
	set is not supported by libc: Emit warnings instead of failing.

2018-09-16  Bruno Haible  <bruno@clisp.org>

	Fix link error when linking with libintl.a on macOS.
	* gettext-runtime/intl/loadmsgcat.c (_nl_msg_cat_cntr): Zero-initialize on
	macOS.

2018-09-16  Bruno Haible  <bruno@clisp.org>

	doc: Assume texinfo 4.0 or newer.
	* gettext-tools/doc/gettext.texi: Omit Next, Prev, Up fields from @node lines.
	* gettext-runtime/libasprintf/autosprintf.texi: Likewise.

2018-09-16  Bruno Haible  <bruno@clisp.org>

	Reduce "make dist" time by 7 minutes.
	* configure.ac (AM_INIT_AUTOMAKE): Remove dist-xz and dist-lzip options.
	* Admin/release-steps: Mention how to create the tarballs with higher
	compression after "make dist".

2018-09-15  Bruno Haible  <bruno@clisp.org>

	Add support for translation lookup with context in shell scripts.
	Reported by Markus Gothe <nietzsche@lysator.liu.se>
	in <https://savannah.gnu.org/bugs/?49899>.

	* gettext-runtime/src/gettext.c (long_options): Add option '--context'.
	(main): Handle option -c/--context.
	(usage): Document option -c/--context. Split usage message.
	* gettext-runtime/src/ngettext.c (long_options): Add option '--context'.
	(main): Handle option -c/--context.
	(usage): Document option -c/--context. Split usage message.
	* gettext-runtime/src/gettext.sh.in (eval_pgettext, eval_npgettext): New
	functions.
	* gettext-tools/src/xgettext.h (struct arglist_parser): Add 'next_is_msgctxt'
	field.
	(arglist_parser_remember_msgctxt): New declaration.
	* gettext-tools/src/xgettext.c (arglist_parser_alloc, arglist_parser_clone):
	Update accordingly.
	(arglist_parser_remember_msgctxt): New function.
	* gettext-tools/src/x-sh.c (init_keywords): Recognize also eval_pgettext and
	eval_npgettext.
	(init_flag_table_sh): Set flags for eval_pgettext, eval_npgettext.
	(substring_of_word): New function.
	(read_command): Recognize and handle -c/--context argument of 'gettext' and
	'ngettext'.
	* gettext-tools/tests/lang-sh: Add test of message lookup with context.
	* gettext-runtime/doc/rt-gettext.texi: Mention the --context option.
	* gettext-runtime/doc/rt-ngettext.texi: Likewise.
	* gettext-tools/doc/gettext.texi (sh, Preparing Shell Scripts, gettext.sh):
	Mention the new shell functions.
	(eval_pgettext Invocation, eval_npgettext Invocation): New subsubsections.
	* gettext-tools/doc/xgettext.texi: Mention the support for eval_pgettext,
	eval_npgettext.
	* NEWS: Mention the changes.

2018-08-12  Bruno Haible  <bruno@clisp.org>

	gettext-runtime/intl/setlocale.c: Add fixes from gnulib.
	2018-08-11  Bruno Haible  <bruno@clisp.org>

	        setlocale: Trivial simplification.
	        * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.

	2017-04-21  Bruno Haible  <bruno@clisp.org>

	        Fix test-mbrtowc5.sh failure on native Windows.
	        * setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
	        "C".

	2016-03-22  Geert Janssens  <janssens-geert@telenet.be>

	        setlocale: add "sv" to Windows language table
	        * setlocale.c (language_table) [W32]: Add "sv".
	        Reported in <https://savannah.gnu.org/bugs/?44588>.

	2012-01-04  Bruno Haible  <bruno@clisp.org>

	        Talk about "native Windows API", not "Win32".
	        * setlocale.c: Update comments to mention native Windows.

2018-07-25  Bruno Haible  <bruno@clisp.org>

	Upgrade to newer help2man.
	Reported by Bernhard M. Wiedemann in <https://savannah.gnu.org/bugs/?54367>.

	* gettext-runtime/man/help2man: Upgrade to version 1.47.6, with one change:
	  $source ||= "$program $version";
	  replaced by
	  $source ||= "$package $version";
	* gettext-tools/man/help2man: Likewise.

2018-07-25  Bruno Haible  <bruno@clisp.org>

	Make it possible to copy&paste strings from the HTML-formatted man pages.
	* gettext-runtime/man/Makefile.am (MAN2HTML_POSTPROCESS): New variable.
	(gt_man2html): Use it.
	* gettext-tools/man/Makefile.am (MAN2HTML_POSTPROCESS): New variable.
	(gt_man2html): Use it.

2018-07-03  Bruno Haible  <bruno@clisp.org>

	Enable the format_arg attribute also on clang on Mac OS X.
	Reported by Tom Tromey <tom@tromey.com>
	in <https://lists.gnu.org/archive/html/bug-gettext/2018-07/msg00000.html>.

	* gettext-runtime/intl/libgnuintl.in.h (_INTL_MAY_RETURN_STRING_ARG): On macOS,
	use attribute __format_arg__ if the compiler is based on clang >= 3.0.

2018-07-03  Bruno Haible  <bruno@clisp.org>

	Make the format_arg attribute effective also in the case _INTL_REDIRECT_INLINE.
	Reported by Tom Tromey <tom@tromey.com>
	in <https://lists.gnu.org/archive/html/bug-gettext/2018-07/msg00000.html>.

	* gettext-runtime/intl/libgnuintl.in.h (gettext, dgettext, dcgettext,
	ngettext, dngettext, dcngettext): Add attribute __format_arg__ also to the
	'static inline' functions.

2018-06-17  Bruno Haible  <bruno@clisp.org>

	Fix a NEWS entry.
	NEWS: Fix entry from 2016-07-01.

2018-05-14  Bruno Haible  <bruno@clisp.org>

	Update .gitignore.

2018-05-14  Bruno Haible  <bruno@clisp.org>

	xgettext: Improve support for specialized vector syntax in Scheme.
	Reported by Florent Angly <Florent.Angly@cslbehring.com>.

	* gettext-tools/src/x-scheme.c (read_object): Don't call free_token on an
	uninitialized token. Support recent syntax for homogeneous vector types (SRFI-4)
	and byte vectors as well.
	* NEWS: Mention the change.

2018-05-12  Bruno Haible  <bruno@clisp.org>

	libintl: Ensure the *printf function overrides are POSIX compatible.
	Reported by Eli Zaretskii <eliz@gnu.org>.

	* gettext-runtime/intl/printf.c (USE_REPLACEMENT_CODE_ALWAYS): New macro.
	(libintl_vfprintf, libintl_vsprintf, libintl_vsnprintf, libintl_vfwprintf,
	libintl_vswprintf): Use it.
	* NEWS: Mention the change.

2018-05-05  Bruno Haible  <bruno@clisp.org>

	all: Replace more http and ftp URLs by https URLs.
	* autogen.sh: Use https: URLs.
	* gettext-runtime/doc/nls.texi (Translating Teams, Available Packages): Likewise.
	* gettext-tools/doc/gettext.texi: Likewise.
	* gettext-tools/doc/FAQ.html: Likewise.
	* gettext-tools/doc/tutorial.html: Likewise.
	* gettext-tools/misc/gettextize.in: Likewise.
	* gettext-tools/projects/GNOME/team-address: Likewise.
	* gettext-tools/projects/GNOME/teams.url: Likewise.
	* gettext-tools/projects/KDE/team-address: Likewise.
	* gettext-tools/projects/KDE/teams.url: Likewise.
	* gettext-tools/projects/TP/teams.url: Likewise.
	* gettext-tools/src/x-python.c: Likewise.
	* gettext-tools/tests/xgettext-its-1: Likewise.

2018-05-05  Bruno Haible  <bruno@clisp.org>

	all: Use https: URLs in --version output.
	* gettext-runtime/src/envsubst.c: Use https: URL in --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/tests/tstgettext.c: Likewise.
	* gettext-tools/tests/tstngettext.c: Likewise.
	* gnulib-local/build-aux/moopp: Likewise.

2018-05-05  Bruno Haible  <bruno@clisp.org>

	all: Replace http URLs by https URLs in copyright notices.

2018-05-05  Bruno Haible  <bruno@clisp.org>

	Simplify code. Drop support for Borland C++ on Windows.
	* gettext-runtime/intl/dcigettext.c: Simplify
	'defined _WIN32 || defined __WIN32__' to just 'defined _WIN32'.
	* gettext-runtime/intl/l10nflist.c: Likewise.
	* gettext-runtime/intl/langprefs.c: Likewise.
	* gettext-runtime/intl/libgnuintl.in.h: Likewise.
	* gettext-runtime/intl/loadinfo.h: Likewise.
	* gettext-runtime/intl/setlocale.c: Likewise.
	* gettext-runtime/intl/printf-parse.c: Likewise.
	* gettext-runtime/libasprintf/printf-parse.c: Likewise.
	* gettext-tools/src/format-c-parse.h: Likewise.
	* gettext-tools/src/hostname.c: Likewise.
	* gnulib-local/lib/basename.c: Likewise.

2018-05-05  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* Makefile.am (distcheck-hook): Update comparison of flexmember.h.
	* gettext-runtime/intl/localcharset.c: Update from gnulib.
	* gettext-runtime/intl/localename.c: Likewise.
	* gettext-runtime/intl/lock.h: Likewise.
	* gettext-runtime/intl/relocatable.c: Likewise.
	* gettext-runtime/intl/vasnprintf.c: Likewise.
	* gettext-runtime/intl/verify.h: Likewise.
	* gettext-runtime/intl/xsize.h: Likewise.
	* gettext-runtime/libasprintf/vasnprintf.c: Likewise.
	* gettext-runtime/m4/*.m4: Likewise.
	* gettext-tools/examples/po/remove-potcdate.sin: Likewise.
	* gnulib-local/lib/execute.c.diff: Update.

2018-05-05  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2018-03-24  Bruno Haible  <bruno@clisp.org>

	Add support for recent Java versions.
	Reported by Emmanuel Bourg <ebourg@apache.org>
	at <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892733>
	via Santiago Vila.

	* gettext-runtime/configure.ac: Require a Java compiler that supports
	source-version 1.5 and target-version 1.6 (such as Java 6 or newer, or
	GCJ 4.3 or newer).
	* gettext-tools/src/write-java.c (msgdomain_write_java): Likewise
	* gettext-tools/examples/hello-java-qtjambi/configure.ac: Likewise.
	* gettext-tools/configure.ac: Require a Java compiler that supports
	source-version 1.5 (such as Java 5 or newer, or GCJ 4.3 or newer).
	* gettext-tools/examples/hello-java/configure.ac: Likewise.
	* gettext-tools/examples/hello-java-awt/configure.ac: Likewise.
	* gettext-tools/examples/hello-java-swing/configure.ac: Likewise.
	* NEWS: Mention the change.

2018-03-24  Bruno Haible  <bruno@clisp.org>

	Update README-alpha.
	* README-alpha: Don't suggest private email for bug reports about test releases.

2018-03-24  Bruno Haible  <bruno@clisp.org>

	Comment.
	* .dir-locals.el: Add comment.

2018-03-24  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gnulib-local/lib/unistd.in.h.diff: Update.
	* gnulib-local/lib/regexec.c.diff: Remove file.
	* gnulib-local/Makefile.am (EXTRA_DIST): Remove it.

2018-03-24  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib

2018-03-24  Bruno Haible  <bruno@clisp.org>

	Update NEWS file.
	* NEWS: Add a missing entry (for a change from 2016-12-15).

2018-03-15  Bruno Haible  <bruno@clisp.org>

	doc: Fix statement about required Bison version.
	Reported by Amit Chaudhuri <amit.k.chaudhuri@gmail.com>.

	* HACKING: Required minimum Bison version is now 3.0, for cldr-plural.y.

2018-01-27  Bruno Haible  <bruno@clisp.org>

	Rename some files.
	* INSTALL.windows: Renamed from README.windows.
	* Makefile.am (EXTRA_DIST): Update.
	* gettext-runtime/INSTALL.windows: Renamed from gettext-runtime/README.windows.
	* gettext-runtime/Makefile.am (EXTRA_DIST): Update.
	* gettext-runtime/intl/INSTALL.windows: Renamed from gettext-runtime/intl/README.windows.
	* gettext-runtime/intl/Makefile.in (DISTFILES.gettext): Update.
	* gettext-runtime/libasprintf/INSTALL.windows: Renamed from gettext-runtime/libasprintf/README.windows.
	* gettext-runtime/libasprintf/Makefile.am (EXTRA_DIST): Update.
	* gettext-tools/INSTALL.windows: Renamed from gettext-tools/README.windows.
	* gettext-tools/Makefile.am (EXTRA_DIST): Update.

2018-01-27  Bruno Haible  <bruno@clisp.org>

	xgettext: Support '_' in number tokens in C++.
	* gettext-tools/src/x-c.c (phase5_get): Recognize '_' in C++.
	* NEWS: Update.

2018-01-07  Bruno Haible  <bruno@clisp.org>

	xgettext: Support 'p'/'P' exponent markers in number tokens also in C.
	* gettext-tools/src/x-c.c (phase5_get): Recognize sign after 'p' or 'P' also
	in C.
	* NEWS: Update.

2018-01-07  Bruno Haible  <bruno@clisp.org>

	Avoid a test failure of lang-gawk.
	It's a bug in gawk 4.2.0, reported at
	https://lists.gnu.org/archive/html/bug-gawk/2018-01/msg00026.html .

	* gettext-tools/tests/lang-gawk: Skip the test if gawk's version is 4.2.0.

2018-01-06  Bruno Haible  <bruno@clisp.org>

	Add support for new C++ preprocessing number tokens.
	Reported by Moritz Bunkus <moritz@bunkus.org>
	at <https://savannah.gnu.org/bugs/?50117>.

	* gettext-tools/src/x-c.c (phase5_get): Recognize C++14 and C++17 extensions of
	preprocessing number tokens.
	* gettext-tools/tests/xgettext-c-22: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.
	* NEWS: Mention the change.

2018-01-06  Bruno Haible  <bruno@clisp.org>

	Comment fix.
	* gettext-tools/tests/xgettext-c-20: Fix typo in comment.

2018-01-06  Bruno Haible  <bruno@clisp.org>

	doc: Document the data formats supported by the tools in a central place.
	* gettext-tools/doc/gettext.texi (Data Formats): New chapter.
	(Internationalizable Data): Moved here from chapter "Programming Languages".

2018-01-06  Bruno Haible  <bruno@clisp.org>

	Avoid a test failure of lang-csharp on Mac OS X.
	* gettext-tools/tests/lang-csharp: Don't test in $LOCALE_FR on Mac OS X.

2018-01-06  Bruno Haible  <bruno@clisp.org>

	xgettext: Add support for .properties files in UTF-8 encoding.
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add read-file, unistr/u8-check.
	* gettext-tools/src/read-properties: Read the file into memory, then find out
	about its encoding, then start parsing it.
	* gettext-tools/tests/xgettext-properties-2: New file.
	* gettext-tools/tests/xgettext-properties-3: New file.
	* gettext-tools/tests/xgettext-properties-4: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add them.
	* NEWS: Mention the change.

2018-01-05  Bruno Haible  <bruno@clisp.org>

	Add support for .rsj files.
	* gettext-tools/src/x-rst.h (EXTENSIONS_RST, SCANNERS_RST): Add RSJ scanner.
	(extract_rsj): New declaration.
	* gettext-tools/src/x-rst.c: Implement extraction from .rsj files.
	* gettext-tools/src/xgettext.c (usage): Mention RSJ along with RST.
	* gettext-tools/tests/xgettext-rst-1: New file.
	* gettext-tools/tests/xgettext-rst-2: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add them.
	* gettext-tools/tests/lang-pascal: Extract from .rsj file, if the compiler
	generated it.
	* gettext-tools/doc/gettext.texi (RST): Mention that .rsj files are supported
	as well.
	* gettext-tools/doc/xgettext.texi (Choice of input file language): Mention RSJ
	along with RST.
	* NEWS: Mention the change.

2018-01-05  Bruno Haible  <bruno@clisp.org>

	Fix failure of lang-javascript on Ubuntu 16.04.
	pkg-config almost never works. It is best to never use it.

	* gettext-tools/tests/lang-javascript: Don't use pkg-config to test whether
	the installed gjs is appropriate.

2018-01-05  Bruno Haible  <bruno@clisp.org>

	Fix a comment.
	* gettext-tools/src/x-stringtable.h: Fix typo in comment.

2018-01-04  Bruno Haible  <bruno@clisp.org>

	doc: More information for maintainers.
	* HACKING: New section 'Additional requirements for maintainers'.

2018-01-04  Bruno Haible  <bruno@clisp.org>

	Use locales with the customary names.
	On glibc systems, nowadays, the German and French locales are named
	'de_DE.UTF-8' and 'fr_FR.UTF-8', respectively. This change avoids the need
	to install similar locales with different names.

	* gettext-tools/tests/gettext-3: Use locales with '.UTF-8' suffix.
	* gettext-tools/tests/gettext-3-prg.c (lang): Likewise.

2018-01-04  Bruno Haible  <bruno@clisp.org>

	doc: Add information about lua-gettext package.
	* gettext-tools/doc/gettext.texi (Lua): Describe from where to get the
	lua-gettext package.

2018-01-04  Bruno Haible  <bruno@clisp.org>

	doc: Add information about Ubuntu packages.
	* gettext-tools/doc/gettext.texi (List of Programming Languages): Add a
	subsection 'Ubuntu packages' for each.

2018-01-03  Bruno Haible  <bruno@clisp.org>

	Fix msgunfmt-3 failure (regression from 2017-09-24).
	* gettext-tools/tests/Makefile.am (EXTRA_DIST): Add sysdep-without-nul.mo.

2018-01-03  Bruno Haible  <bruno@clisp.org>

	Update dependencies list.
	* HACKING: Add Lzip (needed for "make dist" since 2014-12-24).

2018-01-03  Bruno Haible  <bruno@clisp.org>

	Fix "make dist" of modified git checkouts.
	This fixes error messages such as
	tar: gettext-0.19.8.1.74-72e49-dirty/gettext-tools/gnulib-tests/test-term-ostream-xterm-linux-mandriva.out: file name is too long (max 99); not dumped
	tar: gettext-0.19.8.1.74-72e49-dirty/gettext-runtime/intl-csharp/doc/GNU_Gettext_GettextResourceManager.html: file name is too long (max 99); not dumped

	* configure.ac: Pass option 'tar-ustar' to AM_INIT_AUTOMAKE.
	(am__tar): Use 'tar' option --format=ustar.

2018-01-02  Bruno Haible  <bruno@clisp.org>

	Clarify required bison version.
	Reported by Roger Mc Murtrie <rogermc@grapevine.com.au>
	at <https://savannah.gnu.org/bugs/?47484>.

	* HACKING: Mention minimum version of bison.

2018-01-02  Bruno Haible  <bruno@clisp.org>

	Avoid build failures caused by parallel make.
	Reported by Andrew Stormont <andyjstormont@gmail.com>
	at <https://savannah.gnu.org/bugs/?48412>.

	* gettext-tools/doc/Makefile.am (GNUMAKEFLAGS): New variable.
	* gettext-tools/src/Makefile.am (cldr-plural.h): Add dependency.

2018-01-02  Bruno Haible  <bruno@clisp.org>

	Fix 'ar' invocation when cross-compiling and in 64-bit mode on AIX.
	Reported by Benedikt Morbach <bmorbach@redhat.com>
	at <https://savannah.gnu.org/bugs/?43037>.

	* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Require gl_PROG_AR_RANLIB if
	available. Otherwise, use AC_PROG_RANLIB and set AR and ARFLAGS.
	* gettext-runtime/intl/Makefile.in (AR): Use the value determined through
	autoconf.
	(ARFLAGS): New variable.
	(libintl.a, libgnuintl.a): Use it.
	* gettext-runtime/configure.ac: Invoke gl_PROG_AR_RANLIB.
	* gettext-runtime/libasprintf/configure.ac: Likewise.
	* gettext-tools/configure.ac: Likewise.

2018-01-02  Bruno Haible  <bruno@clisp.org>

	Don't use -lc explicitly when linking with libtool.
	libtool has logic that determines whether it should add -lc, and this logic
	works fine on all modern platforms.

	Reported by Michael Forney <mforney@mforney.org>
	at <https://savannah.gnu.org/bugs/?40192>.

	* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Don't set LTLIBC.
	* gettext-runtime/intl/Makefile.in (libintl.la, libgnuintl.la): Don't use
	LTLIBC.

2017-10-15  Bruno Haible  <bruno@clisp.org>

	Clarify copyright and license of some files.
	Reported by Joël Krähemann at <https://savannah.gnu.org/bugs/?52227>.

	* gettext-runtime/po/Makefile.in.in: Correct copyright holder.
	* gettext-runtime/po/remove-potcdate.sin: Use the same licensing terms as Makefile.in.in.
	* gettext-runtime/po/Rules-quot: Use an all-permissive license.
	* gettext-tools/po/Makevars.template: Likewise.
	* gettext-runtime/po/Makevars: Likewise.
	* gettext-tools/po/Makevars: Likewise.
	* gettext-runtime/po/POTFILES.in: Use GPLv3+.
	* gettext-tools/po/POTFILES.in: Likewise.

2017-09-30  Bruno Haible  <bruno@clisp.org>

	Fix an out-of-bounds memory read.
	Reported by Jakub Wilk <jwilk@jwilk.net>.

	* gnulib-local/lib/term-ostream.oo.c (term_ostream_create): Pass the correct
	length to memcmp().

2017-09-24  Daiki Ueno  <ueno@gnu.org>

	Test of verification of system dependent strings in .mo files.
	* gettext-tools/tests/sysdep-without-nul.mo: New file, from Jakub Wilk.
	* gettext-tools/tests/msgunfmt-3: Add test of sysdep-without-nul.mo.

2017-09-24  Bruno Haible  <bruno@clisp.org>

	Verify that system dependent strings in .mo files are NUL terminated.
	Reported by Jakub Wilk <jwilk@jwilk.net> in
	<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=876498>.

	* gettext-runtime/intl/loadmsgcat.c (_nl_load_domain): Bail out if some of the
	system-dependent strings has a last static segment that is not NUL terminated.
	* gettext-tools/src/read-mo.c (get_sysdep_string): Likewise.

2017-09-24  Bruno Haible  <bruno@clisp.org>

	libintl: Fix pointer use after free.
	* gettext-runtime/intl/loadmsgcat.c (_nl_load_domain): Perform the same lock
	deallocation outside libc as in libc (patch from 2013-09-06).

2017-08-29  Bruno Haible  <bruno@clisp.org>

	AppData: Update documentation.
	* gettext-tools/doc/gettext.texi (AppData): Add reference to the specification.
	Mention support for file extension .metainfo.xml.

2017-08-29  Matthias Klumpp  <matthias@tenstral.net>

	Extend the AppData "language" to also support AppStream metainfo files.
	Fixes <https://savannah.gnu.org/bugs/?50414>,
	reported by Piotr Drąg <piotrdrag@gmail.com>.

	* gettext-tools/its/metainfo.its: Renamed from gettext-tools/its/appdata.its.
	* gettext-tools/its/metainfo.loc: Renamed from gettext-tools/its/appdata.loc.
	Recognize also suffix ".metainfo.xml".
	* gettext-tools/its/Makefile.am (dist_its_DATA): Update.
	* gettext-tools/src/x-appdata.h: Update comment.

2017-08-29  Bruno Haible  <bruno@clisp.org>

	AppData: Simplify code.
	* gettext-tools/src/x-appdata.h (EXTENSIONS_APPDATA): Define to empty, as the
	supported extensions are now defined in the *.loc files.

2017-08-29  Matthias Klumpp  <matthias@tenstral.net>

	Translate <developer_name> elements in AppData files.
	Fixes <https://savannah.gnu.org/bugs/?50408>,
	reported by Piotr Drąg <piotrdrag@gmail.com>.

	* gettext-tools/its/appdata.its: Mark <developer_name> elements as translatable.

2017-08-22  Bruno Haible  <bruno@clisp.org>

	Remove an obsolete configure test.
	* gettext-tools/configure.ac: Remove obsolete test that used the obsolete file
	<xlocale.h>.

2017-08-22  Bruno Haible  <bruno@clisp.org>

	Avoid extraneous NUL bytes in .mo files.
	Reported by Jakub Wilk <jwilk@jwilk.net> via Santiago Vila <sanvila@unex.es>
	in <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=872869>.

	* gettext-tools/src/msgl-header.c (msgdomain_list_set_header_field,
	message_list_delete_header_field): Adjust msgstr_len when modifying msgstr.

2017-07-15  Bruno Haible  <bruno@clisp.org>

	Get rid of autom4te.cache directories, as far as possible.
	* autogen.sh: Remove autom4te.cache directories after running autoconf,
	autoheader, automake.

2017-07-15  Bruno Haible  <bruno@clisp.org>

	Fix bug: gettextize does not add intlmacosx.m4 file.
	Reported by Eli Zaretskii via Gavin Smith in
	<http://lists.gnu.org/archive/html/bug-texinfo/2017-07/msg00026.html>.

	* gettext-tools/misc/gettextize.in (m4filelist): Include intlmacosx.m4 also
	when --intl option is not given.
	* gettext-tools/doc/gettext.texi (aclocal): Add intlmacosx.m4 to file list.

2017-06-15  Bruno Haible  <bruno@clisp.org>

	gettext.h: Update theoretical condition for use of variable size arrays.
	Reported by Paul Eggert.

	* gnulib-local/lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend
	comment to include the theoretical condition for availability of variable size
	arrays, if we could trust the value of __STDC_VERSION__.

2017-05-22  Bruno Haible  <bruno@clisp.org>

	Fix hyperlink to CLHS.
	* gettext-tools/doc/gettext.texi (lisp-format): Fix hyperlink.

2017-05-19  Bruno Haible  <bruno@clisp.org>

	Fix memory leaks.
	Found by Coverity.

	* gettext-runtime/intl/loadmsgcat.c (_nl_load_domain): Free allocated memory
	before returning in out-of-memory case.
	* gettext-runtime/intl/localealias.c (relocate2): Define fallback.
	(read_alias_file): Invoke relocate2 instead of relocate. Free the allocated
	memory.

2017-05-19  Bruno Haible  <bruno@clisp.org>

	Fix missing unlock.
	Found by Coverity.

	* gettext-runtime/intl/dcigettext.c (_nl_find_msg): Unlock the lock and
	free allocated memory before returning.

2017-05-19  Bruno Haible  <bruno@clisp.org>

	Update gettext-runtime files from gnulib.
	* Makefile.am (distcheck-hook): Check also flexmember.m4, flexmember.h.
	* gettext-runtime/intl/Makefile.in (SOURCES): Add flexmember.h.
	* gettext-runtime/intl/flexmember.h: New file, from gnulib.
	* gettext-runtime/intl/localcharset.c:
	  * localcharset.c (relocate2): Define fallback.
	  (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
	  allocated memory.
	  * localcharset.c (WINDOWS_NATIVE): Don't define on Cygwin.
	  * localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
	  return value from setlocale if it would lead to a buffer overrun.
	* gettext-runtime/intl/localename.c:
	  * localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
	  where NL_LOCALE_NAME is defined.
	  * localename.c (WINDOWS_NATIVE): Don't define on Cygwin.
	  * localename.c (gl_locale_name_thread_unsafe): Add clause for
	  Cygwin.
	  * localename.c (struct hash_node): Use FLEXIBLE_ARRAY_MEMBER.
	* gettext-runtime/intl/lock.c:
	  * lock.c: On glibc systems without
	  PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
	  implementation of rwlocks.
	  * lock.c [USE_POSIX_THREADS]
	  (glthread_rwlock_init_for_glibc): New function.
	  [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
	  comment.
	  [USE_PTH_THREADS]: New implementation of rwlocks.
	  [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
	  readers.
	* gettext-runtime/intl/lock.h:
	  * lock.h (pthread_rwlockattr_setkind_np): Don't declare
	  weak on non-glibc platforms.
	  * lock.h: On glibc systems without
	  PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
	  implementation of rwlocks.
	  * lock.h [USE_POSIX_THREADS_WEAK]: Declare also
	  pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
	  pthread_rwlockattr_destroy weak.
	  * lock.h [USE_POSIX_THREADS]: Test
	  HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
	  of rwlock initialization on glibc systems without
	  HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
	  of rwlocks altogether on non-glibc systems without
	  HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
	  [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
	* gettext-runtime/intl/relocatable.c:
	  * relocatable.c (relocate2): New function.
	  * relocatable.c (relocate): Assume pathname is non-NULL. Use
	  ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
	* gettext-runtime/intl/relocatable.h:
	  * relocatable.h (relocate2): New declaration/macro.
	* gettext-runtime/intl/vasnprintf.c, gettext-runtime/libasprintf/vasnprintf.c:
	  * vasnprintf.c (FALLTHROUGH): New macro.
	  Use it whenever one switch case falls through into the next.
	  * vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
	  Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
	  of !HAVE_SNPRINTF_RETVAL_C99.
	  * vasnprintf.c (VASNPRINTF): Move comment down past two cpp
	  directives, so that it takes effect once again.  This is clearly
	  not a proper change, and I will revert it once this bug is fixed:
	  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
	  * vasnprintf.c (IF_LINT): Treat GCC_LINT like lint.
	* gettext-runtime/intl/verify.h:
	  * verify.h (verify) [!__GNUC__]:
	  Use shorter albeit meaningless string to bypass silly compiler limits.
	  * verify.h (assume): Treat GCC_LINT like lint.
	* gettext-runtime/intl/xsize.h: Update.
	* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Add flexmember.m4.
	* gettext-runtime/m4/extern-inline.m4: Update.
	* gettext-runtime/m4/fcntl-o.m4: Update.
	* gettext-runtime/m4/flexmember.m4: New file, from gnulib.
	* gettext-runtime/m4/glibc2.m4: Update.
	* gettext-runtime/m4/glibc21.m4: Update.
	* gettext-runtime/m4/intdiv0.m4: Update.
	* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
	* gettext-runtime/m4/intmax.m4: Update.
	* gettext-runtime/m4/inttypes-pri.m4: Update.
	* gettext-runtime/m4/inttypes_h.m4: Update.
	* gettext-runtime/m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
	* gettext-runtime/m4/longlong.m4: Update.
	* gettext-runtime/m4/printf-posix.m4: Update.
	* gettext-runtime/m4/progtest.m4: Update.
	* gettext-runtime/m4/size_max.m4: Update.
	* gettext-runtime/m4/stdint_h.m4: Update.
	* gettext-runtime/m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
	PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
	Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
	* gettext-runtime/m4/uintmax_t.m4: Update.
	* gettext-runtime/m4/visibility.m4: Update.
	* gettext-runtime/m4/wchar_t.m4: Update.
	* gettext-runtime/m4/xsize.m4: Update.
	* gettext-runtime/tests/test-lock.c:
	  * test-lock.c: On Mac OS X, use named semaphores, not unnamed
	  semaphores.
	  (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
	  (atomic_int_semaphore): New macro.
	  * test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
	  exist.
	  * test-lock.c (USE_SEMAPHORE): New constant.
	  (struct atomic_int, init_atomic_int, get_atomic_int_value,
	  set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
	  Suggested by Torvald Riegel <triegel@redhat.com>.

2017-05-18  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gnulib-local/lib/fnmatch_loop.c.diff: Update.

2017-05-18  Bruno Haible  <bruno@clisp.org>

	Update gnulib

2017-05-16  Bruno Haible  <bruno@clisp.org>

	Update after gnulib changed.
	* gnulib-local/lib/getopt-core.h.diff: New file.
	* gnulib-local/lib/getopt.in.h.diff: Remove file.
	* gnulib-local/lib/unistd.in.h.diff: Update.
	* gnulib-local/modules/fnmatch.diff: Update.
	* gnulib-local/Makefile.am (EXTRA_DIST): Add lib/getopt-core.h.diff. Remove
	lib/getopt.in.h.diff.
	* gettext-runtime/m4/wint_t.m4: Update from gnulib.
	* autogen.sh: In the gnulib-tool invocations, avoid gnulib test modules that
	depend on 'hash' (because we use a different 'hash' module).
	* .gitignore: Update.

2017-05-15  Bruno Haible  <bruno@clisp.org>

	Update gnulib

2017-05-15  Bruno Haible  <bruno@clisp.org>

	doc: Fix statement about Bulgarian.
	Reported by Domingo Bernardo <domingopbernardo@gmail.com>.

	* gettext-tools/doc/gettext.texi (Plural forms): Fix classification of
	Bulgarian.

2017-05-15  Bruno Haible  <bruno@clisp.org>

	Respect the configure option --localedir.
	Reported by Markus Gothe at https://savannah.gnu.org/bugs/index.php?49862 .

	The AC_SUBSTed variable @localedir@ is supported since Autoconf 2.60.

	* gettext-runtime/intl/Makefile.in (localedir): Set to @localedir@. Suggested
	by Markus Gothe <nietzsche@lysator.liu.se>.
	* gettext-runtime/m4/intldir.m4: Require Autoconf 2.60 or newer.
	* gettext-tools/doc/gettext.texi (src/Makefile): Assume Autoconf 2.60 or newer.

2017-05-04  Bruno Haible  <bruno@clisp.org>

	Remove the ability to compile the Java programs to native executables.
	This ability relied on GCJ, and GCJ was removed from GCC in version 7.1.

	* gnulib-local/modules/gcj: Remove file.
	* gnulib-local/m4/gcj.m4: Remove file.
	* gnulib-local/Makefile.am (EXTRA_DIST): Remove both.
	* gnulib-local/m4/java.m4 (gt_JAVA_CHOICE): Map value 'bytecode' to 'yes'.

	* autogen.sh (GNULIB_MODULES_TOOLS_OTHER): Remove 'gcj'.
	* gettext-tools/configure.ac: Don't invoke gt_GCJ. Don't set BUILDJAVAEXE.
	* gettext-tools/src/Makefile.am (DEFS): Remove USEJEXE, GETTEXTJEXEDIR defines.
	(GCJ, GCJFLAGS): Remove variables.
	(USEJAVA, USEJEXE): Assume BUILDJAVAEXE is false.
	(all-java-*, install-data-java-*, installdirs-java-*, uninstall-java-*): Remove
	targets that assume BUILDJAVAEXE = true. Rename remaining targets.
	(install-exec-java-*): Remove targets.
	* gettext-tools/src/read-java.c (msgdomain_read_java: Assume USEJEXE is false.
	* gettext-tools/src/urlget.c (fetch): Likewise.
	* gettext-tools/tests/msgunfmt-java-1: Don't set GETTEXTJEXEDIR.
	* PACKAGING (Java support): Drop text about native executables.

	* gettext-tools/m4/Makefile.am (examplesbuildaux_DATA): Remove gcj.m4.
	* gettext-tools/examples/hello-java*/autogen.sh: Don't copy gcj.m4.
	* gettext-tools/examples/hello-java*/autoclean.sh: Don't remove m4/gcj.m4.
	* gettext-tools/examples/hello-java*/m4/Makefile.am (EXTRA_DIST): Remove
	gcj.m4.
	* gettext-tools/examples/hello-java*/configure.ac: Don't invoke gt_GCJ,
	AC_PROG_RANLIB. Remove option --enable-java-exe. Don't set BUILDJAVAEXE. Don't
	set USEJEXE.
	* gettext-tools/examples/hello-java*/Makefile.am (GCJ, GCJFLAGS, AR, RANLIB):
	Remove variables.
	[USEJEXE]: Remove section.

2017-04-22  Bruno Haible  <bruno@clisp.org>

	Avoid -Wundef warning in gettext.h.
	* gnulib-local/lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
	Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
	<https://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00022.html>.

2017-04-19  Bruno Haible  <bruno@clisp.org>

	PO mode: Fix typo.
	* gettext-tools/misc/po-mode.el (po-select-mark-and-mark): Fix typo in message.

2017-04-19  Bruno Haible  <bruno@clisp.org>

	PO mode: Fix recognition of C and C++ modes.
	The variable 'mode-name' can contain a suffix, see
	https://www.gnu.org/software/emacs/manual/html_node/ccmode/Minor-Modes.html
	https://www.gnu.org/software/emacs/manual/html_node/emacs/Electric-C.html
	Therefore use 'major-mode' instead of 'mode-name'.

	* gettext-tools/misc/po-mode.el (po-preset-string-functions): Test major-mode,
	not mode-name.
	(po-mode-version-string): Bump to 2.25.

	Reported at <https://savannah.gnu.org/bugs/index.php?50830>
	by Peter Hull <peterhull90@gmail.com>.

2017-03-20  Bruno Haible  <bruno@clisp.org>

	Fix compilation error in <libintl.h> on Cygwin.
	Reported by Michael Haubenwallner at https://savannah.gnu.org/bugs/?50595 .

	* gettext-runtime/intl/libgnuintl.in.h (newlocale): Hide declaration if
	  locale_t type is not visible on Cygwin.

2017-02-16  Bruno Haible  <bruno@clisp.org>

	Support for Automake targets install-{dvi,ps,pdf,html}.
	Reported by Eric Blake at https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25690
	via Assaf Gordon.

	* gettext-runtime/po/Makefile.in.in (install-dvi, install-ps, install-pdf,
	install-html): New empty targets.

2017-01-10  Bruno Haible  <bruno@clisp.org>

	Update URLs in READMEs.
	* README: Prefer https protocol over http or ftp protocol.
	* DEPENDENCIES: Likewise. Point to OpenJDK instead of gcj. Point to Mono instead
	of pnet.

2017-01-02  Bruno Haible  <bruno@clisp.org>

	lock test: Fix performance problem on multi-core machines.
	* gettext-runtime/tests/test-lock.c (USE_VOLATILE): New macro.
	(struct atomic_int): New type.
	(init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
	functions.
	(lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
	as 'struct atomic_int'.
	(lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
	reclock_checker_thread, test_recursive_lock): Use the new functions.
	Reported by Eric Blake in
	https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
	and by Pádraig Brady in
	http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00117.html.

2016-12-16  Bruno Haible  <bruno@clisp.org>

	Add comments about test failures with --disable-nls.
	* gettext-tools/tests/lang-bash: Add comment.
	* gettext-tools/tests/lang-sh: Likewise.
	* gettext-tools/tests/lang-c: Likewise.
	* gettext-tools/tests/lang-c++: Likewise.
	* gettext-tools/tests/lang-objc: Likewise.

2016-12-15  Bruno Haible  <bruno@clisp.org>

	Polish the last commit.

2016-12-15  John Darrington  <john@darrington.wattle.id.au>

	msgfmt: Remove POT-Creation-Date field from the header in the output.
	This helps reproducible builds.
	Reported at <https://savannah.gnu.org/bugs/?49654>.
	* gettext-tools/src/msgl-header.h (message_list_delete_header_field): New
	declaration.
	* gettext-tools/src/msgl-header.c (known_fields): New variable, extracted from
	msgdomain_list_set_header_field.
	(message_list_delete_header_field): New function.
	* gettext-tools/src/write-mo.c: Include msgl-header.h.
	(msgdomain_write_mo): Delete the POT-Creation-Date field.
	* gettext-tools/src/write-java.c: Include msgl-header.h.
	(msgdomain_write_java): Delete the POT-Creation-Date field.
	* gettext-tools/src/write-csharp.c: Include msgl-header.h.
	(msgdomain_write_csharp): Delete the POT-Creation-Date field.
	* gettext-tools/src/write-resources.c: Include msgl-header.h.
	(msgdomain_write_csharp_resources): Delete the POT-Creation-Date field.
	* gettext-tools/src/write-tcl.c: Include msgl-header.h.
	(msgdomain_write_tcl): Delete the POT-Creation-Date field.
	* gettext-tools/src/write-qt.c: Include msgl-header.h.
	(msgdomain_write_qt): Delete the POT-Creation-Date field.
	* gettext-tools/src/write-desktop.c: Include msgl-header.h.
	(msgdomain_write_desktop): Delete the POT-Creation-Date field.
	* gettext-tools/src/write-xml.c: Include msgl-header.h.
	(msgdomain_write_xml): Delete the POT-Creation-Date field.
	* gettext-tools/tests/msgfmt-19: New file, based on
	gettext-tools/tests/msgfmt-18.
	* gettext-tools/tests/Makefile.am (TESTS): Add it.

2016-12-15  Bruno Haible  <bruno@clisp.org>

	Fix typo in comment.

2016-12-12  Bruno Haible  <bruno@clisp.org>

	Fix error handling in autogen.sh.
	* autogen.sh: Don't invoke automake if aclocal, autoconf, or autoheader failed.

2016-12-11  Bruno Haible  <bruno@clisp.org>

	Simplify .gitignore.

2016-12-11  Bruno Haible  <bruno@clisp.org>

	Remove files deleted by "make maintainer-clean" from version control.

2016-12-11  Bruno Haible  <bruno@clisp.org>

	Merge all .gitignore files into a single .gitignore file.

2016-12-11  Bruno Haible  <bruno@clisp.org>

	Update and organize the .gitignore files.

2016-12-10  Bruno Haible  <bruno@clisp.org>

	Update to newest gnulib.

2016-12-09  Bruno Haible  <bruno@clisp.org>

	Fix crash of xgettext with --its option.
	* gettext-tools/src/xgettext.c (main): Free contents of its_dirs only when it
	was initialized. Fixes bug introduced on 2016-05-16.

2016-12-05  KO Myung-Hun  <komh78-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

	intl: Fix that /@unixroot prefix is not working on OS/2 kLIBC
	OS/2 kLIBC has a feature to rewrite some path components. For example,
	'/@unixroot' is replaced with a value of $UNIXROOT if it is.

	So prepending a drive letter to the path starting with '/' makes the
	path starting with '/@unixroot' to 'x:/@unixroot' which is unexpected.

	This will breaks the behavior of some programs depending on /@unixroot
	prefix.

	* gettext-runtime/intl/bindtextdom.c (BINDTEXTDOMAIN): Do not touch
	dirname if it is started with '/@unixroot'.
	* gettext-runtime/intl/relocatable.c (relocate): Do not touch pathname
	if it is started with '/@unixroot'.

2016-12-05  Bruno Haible  <bruno@clisp.org>

	Fix the last commit.
	* autogen.sh: Enable the code of the last commit. Force an update of
	build-aux/ylwrap.

2016-12-04  Bruno Haible  <bruno@clisp.org>

	Always use the newest released copies of files brought in from Automake.
	* autogen.sh: Make sure to get new versions of files brought in by automake.

2016-12-04  Bruno Haible  <bruno@clisp.org>

	Make xgettext-its-2 test stronger.
	* gettext-tools/tests/xgettext-its-2: Set each environment variable only for
	the scope of a single xgettext invocation.

2016-12-04  Bruno Haible  <bruno@clisp.org>

	Avoid test failure in non-English locale.
	* gettext-tools/tests/xgettext-its-2: Set the environment variable LC_MESSAGES
	when we want to check for an error message in English.

2016-12-04  Bruno Haible  <bruno@clisp.org>

	Fix an error message when gettextize if run with option -n.
	* gettext-tools/misc/gettextize.in: Consider the Makevars.template file at the
	location where it is installed, not in $srcdir.

2016-12-04  Bruno Haible  <bruno@clisp.org>

	Tweak installation instructions for Windows.
	* README.windows: Fix the mingw32 PATH.

2016-11-26  Guido Flohr  <guido.flohr@cantanea.com>

	doc: corrected argument numbers

2016-11-25  Guido Flohr  <guido.flohr@cantanea.com>

	Perl supports pgettext() and similar functions

2016-11-24  Guido Flohr  <guido.flohr@cantanea.com>

	xgettext-perl: detect question mark as operator
	After an explicit function call like "somefunc()" a question mark or
	slash cannot be regex delimiters.

2016-11-23  Bruno Haible  <bruno@clisp.org>

	Update installation instructions for Windows.
	* README.windows: Assume a 64-bit Windows. Explain both 32-bit and 64-bit
	builds. Add instructions for the MS Visual C/C++ tool chain. Revamp instructions
	for Cygwin.
	* gettext-runtime/README.windows: Generic reference to top-level file.
	* gettext-runtime/intl/README.windows: Likewise.
	* gettext-runtime/libasprintf/README.windows: Likewise.
	* gettext-tools/README.windows: Likewise.

2016-11-23  Bruno Haible  <bruno@clisp.org>

	Drop the nickname "woe32".
	* README.windows: Renamed from README.woe32.
	* Makefile.am (EXTRA_DIST): Update.
	* gettext-runtime/README.windows: Renamed from gettext-runtime/README.woe32.
	* gettext-runtime/Makefile.am (EXTRA_DIST): Update.
	* gettext-runtime/intl/README.windows: Renamed from gettext-runtime/intl/README.woe32.
	* gettext-runtime/intl/Makefile.in (DISTFILES.gettext): Update.
	* gettext-runtime/libasprintf/README.windows: Renamed from gettext-runtime/libasprintf/README.woe32.
	* gettext-runtime/libasprintf/Makefile.am (EXTRA_DIST): Update.
	* gettext-tools/README.windows: Renamed from gettext-tools/README.woe32.
	* gettext-tools/Makefile.am (EXTRA_DIST): Update.

2016-11-14  Daiki Ueno  <ueno@gnu.org>

	intl: Fix compilation on a system without alloca
	* gettext-runtime/intl/dcigettext.c (DCIGETTEXT): Fix typo 'tmp_dirname'
	-> 'resolved_dirname'.  Reported by Egor Pugin in:
	http://lists.gnu.org/archive/html/bug-gettext/2016-09/msg00008.html

2016-11-02  Daiki Ueno  <ueno@gnu.org>

	doc: Mention new bootstrap requirements
	* autogen.sh: Require automake >= 1.13.
	* HACKING: Require automake >= 1.13, wget, and xz.
	Reported by Karl-P. Richter and Bruno Haible in:
	https://savannah.gnu.org/bugs/?49497

2016-10-25  Bruno Haible  <bruno@clisp.org>

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

2016-10-25  Bruno Haible  <bruno@clisp.org>

	Add comments about the implementation of 'autosprintf::operator='.
	* gettext-runtime/libasprintf/autosprintf.in.h (autosprintf::operator=): Add
	comments. Rename parameter.
	* gettext-runtime/libasprintf/autosprintf.cc (autosprintf::operator=): Likewise.

2016-09-15  Daiki Ueno  <ueno@gnu.org>

	xgettext: Fix crash with *.po file input
	When xgettext was given two *.po files with the same msgid_plural, it
	crashed with double-free.  Problem reported by Davlet Panech in:
	http://lists.gnu.org/archive/html/bug-gettext/2016-09/msg00001.html
	* gettext-tools/src/po-gram-gen.y: Don't free msgid_pluralform after
	calling do_callback_message, assuming that it takes ownership.
	* gettext-tools/src/read-catalog.c (default_add_message): Free
	msgid_plural after calling message_alloc.
	* gettext-tools/tests/xgettext-po-2: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add new test.

2016-08-27  Akinori MUSHA  <knu@idaemons.org>

	Add autoload magic comments

2016-08-27  Akinori MUSHA  <knu@idaemons.org>

	Fix elisp package headers

2016-08-09  Daiki Ueno  <ueno@gnu.org>

	gettextize: Don't add config.rpath to EXTRA_DIST
	The file is automatically included in the distribution by Automake,
	because of an AC_REQUIRE_AUX_FILE invocation.  Reported in:
	http://savannah.gnu.org/bugs/?48729
	* gettext-tools/misc/gettextize.in: Don't add config.rpath to
	added_extradist.

2016-08-03  Daiki Ueno  <ueno@gnu.org>

	po-mode: Fix po-send-mail behaviour on Emacs 25
	* gettext-tools/misc/po-mode.el (po-send-mail): Don't rely on
	region markers.
	Reported by Göran Uddeborg in:
	http://lists.gnu.org/archive/html/bug-gettext/2016-07/msg00027.html

2016-07-12  Daiki Ueno  <ueno@gnu.org>

	Update after gnulib changed

2016-07-12  Daiki Ueno  <ueno@gnu.org>

	Update gnulib

2016-07-12  Michele Locati  <michele@locati.it>

	Better description of GETTEXTCLDRDIR for msginit
	Let's explain better where the GETTEXTCLDRDIR should point to and where the
	CLDR data could be retrieved.

2016-07-09  Stanislav Brabec  <sbrabec@suse.com>

	Add support for msgmerge --previous
	msgmerge --previous is a very useful feature that makes adjusting of
	translation much easier when small changes in the source code are done.
	msgmerge supports it for 10 years, but it is not used by most projects,
	as Makefile.in.in never added support for it.

	Use msgmerge --previous as default on all systems with gettext >= 0.16.

2016-06-28  Daiki Ueno  <ueno@gnu.org>

	gnulib-local: Fix the last change
	* gnulib-local/Makefile.am (EXTRA_DIST): Remove generated files.

2016-06-28  Daiki Ueno  <ueno@gnu.org>

	gnulib-local: Add more files to distribution
	Problem reported by Xen.
	* gnulib-local/Makefile.am (EXTRA_DIST): Regenerate.

2016-06-11  Daiki Ueno  <ueno@gnu.org>

	build: Fix unintentional soname bump
	* gettext-runtime/intl/Makefile.in: Revert LTV_CURRENT and increment
	LTV_REVISION.
	* gettext-tools/libgettextpo/Makefile.am: Likewise.

2016-06-09  Daiki Ueno  <ueno@gnu.org>

	Update translations
	* gettext-runtime/po/eo.po: Update from Felipe Castro <fefcas@gmail.com>
	* gettext-runtime/po/hr.po: Update from Božidar Putanec <bozidarp@yahoo.com>
	* gettext-runtime/po/sv.po: Update from Göran Uddeborg <goeran@uddeborg.se>
	* gettext-tools/examples/po/eo.po: Update from Felipe Castro <fefcas@gmail.com>
	* gettext-tools/examples/po/hr.po: Update from Božidar Putanec <bozidarp@yahoo.com>
	* gettext-tools/examples/po/sv.po: Update from Göran Uddeborg <goeran@uddeborg.se>
	* gettext-tools/po/bg.po: Update from Roumen Petrov <transl@roumenpetrov.info>
	* gettext-tools/po/es.po: Update from Antonio Ceballos <aceballos@gmail.com>
	* gettext-tools/po/fr.po: Update from Stéphane Aulery <lkppo@free.fr>
	* gettext-tools/po/ja.po: Update from Masahito Yamaga <ma@yama-ga.com>
	* gettext-tools/po/ko.po: Update from Changwoo Ryu <cwryu@debian.org>
	* gettext-tools/po/nl.po: Update from Benno Schulenberg <benno@vertaalt.nl>
	* gettext-tools/po/pl.po: Update from Rafał Maszkowski <rzm@icm.edu.pl>
	* gettext-tools/po/sk.po: Update from Marcel Telka <marcel@telka.sk>
	* gettext-tools/po/sr.po: Update from Мирослав Николић <miroslavnikolic@rocketmail.com>
	* gettext-tools/po/sv.po: Update from Göran Uddeborg <goeran@uddeborg.se>
	* gettext-tools/po/tr.po: Update from Nilgün Belma Bugüner <nilgun@buguner.name.tr>
	* gettext-tools/po/uk.po: Update from Yuri Chornoivan <yurchor@ukr.net>
	* gettext-tools/po/vi.po: Update from Trần Ngọc Quân <vnwildman@gmail.com>

2016-06-09  Daiki Ueno  <ueno@gnu.org>

	Update matrix

2016-06-09  Daiki Ueno  <ueno@gnu.org>

	NEWS: Fix release date of 0.19.8

2016-06-09  Daiki Ueno  <ueno@gnu.org>

	Prepare for 0.19.8

2016-06-09  Daiki Ueno  <ueno@gnu.org>

	THANKS: Update

2016-06-08  Daiki Ueno  <ueno@gnu.org>

	gnulib-local: Work around regcomp.c compile error
	* gnulib-local/Makefile.am (EXTRA_DIST): Add lib/regcomp.c.diff.
	* gnulib-local/lib/regcomp.c.diff: New file, partially revert Gnulib
	commit f97745b0.

2016-06-08  Daiki Ueno  <ueno@gnu.org>

	tests: Use Exit instead of exit if init.sh is used
	* gettext-tools/tests/*: Use Exit instead of exit, as suggested by
	init.sh.

2016-06-07  Daiki Ueno  <ueno@gnu.org>

	build: Create intl/ChangeLog
	* autogen.sh: Create an empty ChangeLog for gettext-runtime/intl, which
	is necessary when running "make dist" from the top level directory.

2016-06-02  Daiki Ueno  <ueno@gnu.org>

	build: Simplify placeholder ChangeLog creation
	* autogen.sh: Use empty ChangeLog for placeholder.  Bail out if any
	error occurs in autoreconf phase.

2016-06-02  Daiki Ueno  <ueno@gnu.org>

	maint: Update release steps

2016-06-01  Daiki Ueno  <ueno@gnu.org>

	tests: Check invalid input in sentence-1-prg
	* gettext-tools/tests/sentence-1-prg.c (main): Check input buffer
	overflow, while it is not possible with the current test case.

2016-06-01  Daiki Ueno  <ueno@gnu.org>

	tests: Fix test data for sentence-1
	* gettext-tools/tests/sentence-1: Use NO-BREAK SPACE instead of
	IDEOGRAPHIC SPACE.

2016-05-31  Daiki Ueno  <ueno@gnu.org>

	tests: Fix location of valgrind suppression file
	* gettext-tools/tests/Makefile.am (CHECKER): Use $(abs_srcdir) instead
	of $(srcdir).

2016-05-31  Daiki Ueno  <ueno@gnu.org>

	tests: Turn sentence test into a shell script
	For consistency with other tests.  Also it fixes a test failure when
	built with --disable-shared, since LOG_COMPILER set to $(SHELL) doesn't
	recognize binary executable.
	* gettext-tools/tests/Makefile.am (TESTS): Rename 'sentence' to
	'sentence-1'.
	(check_PROGRAMS): Rename 'sentence' to 'sentence-1-prg'.
	(sentence_1_prg_SOURCES): Rename from 'sentence_SOURCES'.
	(sentence_1_prg_CPPFLAGS): Rename from 'sentence_CPPFLAGS'.
	(sentence_1_prg_LDADD): Rename from 'sentence_LDADD'.
	* gettext-tools/tests/sentence-1: New file.
	* gettext-tools/tests/sentence-1-prg.c: Rename from sentence.c, move the
	test data to sentence-1.
	* gettext-tools/tests/.gitignore: Ignore sentence-1-prg.

2016-05-30  Daiki Ueno  <ueno@gnu.org>

	maint: Update copyright year

2016-05-30  Daiki Ueno  <ueno@gnu.org>

	xgettext: Update usage documentation
	* gettext-tools/src/xgettext.c (usage): Mention 'bullet-unicode' check.

2016-05-28  Daniel Burr  <dburr@dburr.net>  (tiny change)

	build: Make libxml2 check tighter
	* gnulib-local/m4/libxml.m4 (gl_LIBXML): Try to check
	xmlXPathSetContextNode, which is available in libxml2 2.9.1 or later.
	Problem reported by Dominyk in:
	http://savannah.gnu.org/bugs/?46844

2016-05-27  Daiki Ueno  <ueno@gnu.org>

	desktop: Add missing "extern" in header
	* gettext-tools/src/read-desktop.h: Add "extern" to each function
	declaration.
	Possibly related to: https://savannah.gnu.org/bugs/?45896

2016-05-27  Daiki Ueno  <ueno@gnu.org>

	NEWS: Mention gettext.m4 change

2016-05-27  Daiki Ueno  <ueno@gnu.org>

	m4: Rely less on internal symbols
	* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): Skip checks for the
	internal symbols _nl_msg_cat_cntr, _nl_domain_bindings, and
	_nl_expand_alias, if __GNU_GETTEXT_SUPPORTED_REVISION is defined.
	Problem reported and fix suggested by Masanori Ogino in:
	https://lists.gnu.org/archive/html/bug-gettext/2016-04/msg00000.html
	The rationale behind this is: (1) those symbol checks are for detecting
	certain broken implementations, namely NetBSD and Solaris 7, and
	(2) __GNU_GETTEXT_SUPPORTED_REVISION is not defined in those
	implementations, while it is defined on compatible implementations, such
	as musl-libc which doesn't have those internal symbols.

2016-05-25  Daiki Ueno  <ueno@gnu.org>

	NEWS: Add 0.19.8 changes

2016-05-25  Daiki Ueno  <ueno@gnu.org>

	intl: Pacify pre-C99 compilers
	* gettext-runtime/intl/plural-exp.h (HAVE_STRUCT_INITIALIZER): New
	macro, based on the check previously in plural-exp.c.  Also add check
	for __SUNPRO_C for Solaris Studio C compiler.
	(GERMANIC_PLURAL): Define as 'struct expression' not 'const struct
	expression' if struct/union initializers are not supported by the
	compiler.
	* gettext-runtime/intl/plural-exp.c: Use HAVE_STRUCT_INITIALIZER.
	Reported by Dagobert Michelsen and investigated by pan7 in:
	https://savannah.gnu.org/support/?108743

2016-05-24  David Shea  <dshea@redhat.com>

	desktop: Fix invalid memory access
	* gettext-tools/src/read-desktop.c (desktop_lex): Don't access memory
	deallocated with realloc().  Reported in:
	http://savannah.gnu.org/bugs/?47991

2016-05-23  Daiki Ueno  <ueno@gnu.org>

	tests: Add more tests for JavaScript format string
	* gettext-tools/tests/format-javascript-1: Add test for multiple uses of
	same argument.
	* gettext-tools/tests/format-javascript-2: Use proper flag to activate
	javascript format checker.

2016-05-23  Daiki Ueno  <ueno@gnu.org>

	javascript: Fix format type compatibility check
	* gettext-tools/src/format-javascript.c (format_check): Check if the two
	argument types are the same.

2016-05-20  Daiki Ueno  <ueno@gnu.org>

	tests: Add test for ITS search path
	* gettext-tools/tests/Makefile.am (TESTS): Add new test.
	* gettext-tools/tests/xgettext-its-2: New file.

2016-05-20  Daiki Ueno  <ueno@gnu.org>

	search-path: Fix XDG_DATA_DIRS traversal
	* gettext-tools/src/search-path.c (foreach_elements): Append "gettext"
	suffix to each element from XDG_DATA_DIRS.

2016-05-20  Daiki Ueno  <ueno@gnu.org>

	search-path: Don't relocate dirs given as envvar
	* gettext-tools/src/search-path.c (foreach_function_ty): New typedef.
	(path_array_ty): New struct.
	(foreach_components, increment, fill): New functions.
	(get_search_path): Rewrite using those functions.  Relocate
	GETTEXTDATADIR here.
	* gettext-tools/src/search-path.h (get_search_path): Update documentation.
	* gettext-tools/src/msgfmt.c (main): Don't relocate directories in ITS
	search path.
	* gettext-tools/src/xgettext.c (main): Likewise.

2016-05-19  Daiki Ueno  <ueno@gnu.org>

	Update after Gnulib changed
	* gnulib-local/lib/gettext.h: Update from gnulib.
	* gettext-runtime/m4/extern-inline.m4: Likewise.
	* gettext-runtime/m4/intdiv0.m4: Likewise.

2016-05-19  Daiki Ueno  <ueno@gnu.org>

	Update gnulib
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Explicitly pull 'gettext',
	as the module is now marked as obsolete.
	* gnulib-local/Makefile.am (EXTRA_DIST): Remove m4/hard-locale.m4.diff.
	* gnulib-local/m4/hard-locale.m4.diff: Remove, as it is no longer
	needed.
	* gettext-tools/gnulib-lib/.gitignore: Ignore files brought by gnulib-tool.
	* gettext-tools/gnulib-tests/.gitignore: Likewise.
	* gettext-tools/libgettextpo/.gitignore: Likewise.

2016-05-18  Daiki Ueno  <ueno@gnu.org>

	maint: Add --no-git option to autogen.sh
	* autogen.sh: Port --no-git option from Gnulib's bootstrap.

2016-05-16  Daiki Ueno  <ueno@gnu.org>

	msgfmt, xgettext: Respect XDG_DATA_DIRS
	Suggested in https://savannah.gnu.org/bugs/?47123
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add 'xmemdup0'.
	* gettext-tools/gnulib-lib/.gitignore: Ignore files brought by gnulib-tool.
	* gettext-tools/gnulib-tests/.gitignore: Likewise.
	* gettext-tools/src/search-path.c: New file.
	* gettext-tools/src/search-path.h: New file.
	* gettext-tools/src/Makefile.am (noinst_HEADERS): Add search-path.h.
	(libgettextsrc_la_SOURCES): Add search-path.c.
	* gettext-tools/src/msgfmt.c: Include "search-path.h".
	(main): Use get_search_path to locate ITS directories.
	* gettext-tools/src/xgettext.c: Include "search-path.h".
	(main): Use get_search_path to locate ITS directories.

2016-05-16  Daiki Ueno  <ueno@gnu.org>

	javascript: Avoid uninitialized variable
	* gettext-tools/src/format-javascript.c (format_check): Fix
	loop initialization.  Spotted by clang-analyzer.

2016-03-25  Hanno Boeck  <hanno@gentoo.org>  (tiny change)

	lua: Avoid heap buffer overflow
	* gettext-tools/src/x-lua.c (string_end): Allocate a room for
	terminating NUL.  Reported in: http://savannah.gnu.org/bugs/?4753

2016-03-23  Daiki Ueno  <ueno@gnu.org>

	format-python-brace: Support chained expression
	* gettext-tools/src/format-python-brace.c (parse_directive): Recognize
	chained getattr/getitem expressions.
	* gettext-tools/tests/format-python-brace-1: Add test for the case where
	both getattr and getitem are used.
	Reported by Paul Franklin in:
	https://lists.gnu.org/archive/html/bug-gettext/2016-03/msg00017.html

2016-03-23  Daiki Ueno  <ueno@gnu.org>

	doc: Fix ngettext usage example
	* gettext-tools/doc/gettext.texi (Plural forms): Fix positional argument
	syntax in the C example.  Reported by Jonathan Leffler in:
	http://lists.gnu.org/archive/html/bug-gettext/2016-03/msg00002.html

2016-03-22  Daiki Ueno  <ueno@gnu.org>

	javascript: Fix invalid memory access
	* gettext-tools/src/format-javascript.c (format_parse): Fix numbered_arg
	allocation for the unnumbered case.

	Reported by Roger Mc Murtrie in: <http://savannah.gnu.org/bugs/?47492>.

2016-03-22  Daiki Ueno  <ueno@gnu.org>

	maint: Clean up .gitignore
	* gettext-tools/gnulib-lib/.gitignore: Sort lines.

2016-03-02  Daiki Ueno  <ueno@gnu.org>

	xgettext: Put --its help in the right section
	* gettext-tools/src/xgettext.c (usage): Move --its=FILE option under
	"Language specific options" from "Output details".

2016-02-22  Daiki Ueno  <ueno@gnu.org>

	xgettext: Add new check bullet-unicode
	* gettext-tools/src/xgettext.c (main): Generalize --check option
	handling.
	* gettext-tools/src/message.h (enum syntax_check_type): New enum value
	sc_bullet_unicode.
	(NSYNTAXCHECKS): Increment.
	* gettext-tools/src/message.c (syntax_check_name): Add name for
	sc_bullet_unicode.
	* gettext-tools/src/msgl-check.c (struct bullet_ty, struct
	bullet_stack_ty): New struct.
	(bullet_stack): New variable.
	(syntax_check_bullet_unicode): New function.
	(sc_funcs): Register syntax_check_bullet_unicode as a check function for
	sc_bullet_unicode.
	* gettext-tools/tests/xgettext-14: Add tests for --check=bullet-unicode

2016-02-10  Daiki Ueno  <ueno@gnu.org>

	doc: Mention the behavior stripping *.in
	* gettext-tools/doc/gettext.texi (Preparing ITS Rules): Add footnote
	explaining the matching behavior if the input file name has the .in
	suffix.  Suggested by Jan Synacek.

2016-02-08  Daiki Ueno  <ueno@gnu.org>

	javascript: Support '%m$' in format strings
	Gjs has had support for numbered arguments in format strings since 1.40.
	Recognize it as well in format-javascript, so msgfmt -c doesn't fail
	when numbered arguments are in msgstr.  Reported by Sean Burke in:
	https://lists.gnu.org/archive/html/bug-gettext/2015-10/msg00002.html
	* gettext-tools/src/format-javascript.c (struct numbered_arg): New
	struct.
	(struct spec): Rename format_args_count to numbered_arg_count.  Add
	NUMBERED field in place of FORMAT_ARGS.  All callers changed.
	(numbered_arg_compare): New function.
	(format_parse): Handle numbered arguments.  Based on format-awk.c.
	(format_check): Add check for numbered arguments.
	* gettext-tools/tests/format-javascript-1: Add tests for numbered
	arguments.
	* gettext-tools/tests/lang-javascript: Use numbered argument in format
	strings.  Add check for Gjs version >= 1.40.

2016-02-08  Daiki Ueno  <ueno@gnu.org>

	moopp: Revert file modes accidentally set

2016-01-20  KO Myung-Hun  <komh78@gmail.com>

	gettext-tools: Use a short name for DLLs on OS/2
	OS/2 does not support a DLL name longer than 8 characters.

	* gettext-tools/configure.ac (OS2): Define on OS/2.
	* gettext-tools/gnulib-lib/Makefile.am (libgettextlib_la_LDFLAGS):
	Set a DLL name to gtlib on OS/2.
	* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_LDFLAGS):
	Set a DLL name to gtpo on OS/2.
	* gettext-tools/src/Makefile.am (libgettextsrc_la_LDFLAGS): Set a DLL
	name to gtsrc on OS/2.

2016-01-20  KO Myung-Hun  <komh78@gmail.com>

	libasprintf: Build a shared library on OS/2
	* gettext-runtime/libasprintf/configure.ac (LTNOUNDEF): Set to
	-no-undefined on OS/2.

2016-01-20  KO Myung-Hun  <komh78@gmail.com>

	intl: Support UNIXROOT in BINDTEXTDOMAIN () on EMX
	$UNIXROOT is a drive on which a root of FHS is.

	* gettext-runtime/intl/bindtextdom.c (BINDTEXTDOMAIN): Prepend
	$UNIXROOT to dirname if it is started '/' or it is an empty string.

2016-01-20  KO Myung-Hun  <komh78@gmail.com>

	moop: Replace CR as well as LF with a space
	On OS/2, EOL marker is CR+LF.

	* gnulib-local/bulid-aux/moopp (func_check_header_syntax):
	Replace CR as well as LF with a space.

2016-01-15  Bruno Haible  <bruno@clisp.org>

	Change msgfmt to produce little-endian .mo files by default.
	* gettext-tools/src/msgfmt.c (main): Initialize 'byteswap' so as to
	produce little-endian .mo files by default.
	* gettext-tools/doc/gettext.texi: Update documentation.
	* gettext-tools/doc/msgfmt.texi (--endianness): Likewise.

2016-01-13  Daiki Ueno  <ueno@gnu.org>

	maint: Revert copyright year changes in test data
	Some test programs started failing after mass update of copyright notice
	for year 2016 (commit 7fa0c277), because of embedded test data with
	fixed copyright dates.  Revert the commit for those files.
	Reported by Bruno Haible.
	* .x-update-copyright: Exclude test programs embedding copyright date.
	* gettext-tools/tests/msgcomm-22: Revert the last change.
	* gettext-tools/tests/msgfilter-sr-latin-1: Likewise.
	* gettext-tools/tests/msggrep-1: Likewise.
	* gettext-tools/tests/msggrep-2: Likewise.
	* gettext-tools/tests/msggrep-3: Likewise.
	* gettext-tools/tests/msggrep-4: Likewise.
	* gettext-tools/tests/msggrep-5: Likewise.
	* gettext-tools/tests/msggrep-9: Likewise.
	* gettext-tools/tests/msggrep-11: Likewise.
	* gettext-tools/tests/msgmerge-14: Likewise.

2016-01-07  Daiki Ueno  <ueno@gnu.org>

	its: Recognize *.glade as a GtkBuilder file too

2016-01-05  Santiago Vila  <sanvila@unex.es>  (tiny change)

	* PACKAGING: List version specific files

2016-01-02  Daiki Ueno  <ueno@gnu.org>

	maint: Update copyright year

2016-01-02  Daiki Ueno  <ueno@gnu.org>

	Update gnulib

2016-01-02  Daiki Ueno  <ueno@gnu.org>

	maint: Use maintainer-makefile from gnulib
	* autogen.sh: Pull GNUmakefile, maint.mk, and dependency scripts in
	build-aux.
	* cfg.mk (update-copyright-env): Adjust for gettext.
	* .x-update-copyright: New file.
	* .gitignore: Ignore files brought in by gnulib-tool.

2015-12-28  Daiki Ueno  <ueno@gnu.org>

	maint: Update release-steps to current practice
	* Admin/release-steps: Split document into two sections ('Making a
	snapshot release' and 'Making an official release'), reorder some steps,
	and remove mention of manual generation of PO/POT files.

2015-12-27  Daiki Ueno  <ueno@gnu.org>

	Update translations
	* gettext-runtime/po/fr.po: Update from Stéphane Aulery <lkppo@free.fr>.
	* gettext-runtime/po/nb.po: Update from Johnny A. Solbu <johnny@solbu.net>.
	* gettext-runtime/po/pt_BR.po: Update from Rafael Ferreira <rffontenelle@gmail.com>.
	* gettext-runtime/po/sr.po: Update from Мирослав Николић <miroslavnikolic@rocketmail.com>.
	* gettext-runtime/po/zh_TW.po: Update from Wei-Lun Chao <bluebat@member.fsf.org>.
	* gettext-tools/examples/po/fr.po: Update from Stéphane Aulery <lkppo@free.fr>.
	* gettext-tools/examples/po/nb.po: Update from Johnny A. Solbu <johnny@solbu.net>.
	* gettext-tools/examples/po/pt_BR.po: Update from Rafael Ferreira <rffontenelle@gmail.com>.
	* gettext-tools/examples/po/sr.po: Update from Мирослав Николић <miroslavnikolic@rocketmail.com>.
	* gettext-tools/examples/po/zh_TW.po: Update from Wei-Lun Chao <bluebat@member.fsf.org>.
	* gettext-tools/po/bg.po: Update from Roumen Petrov <transl@roumenpetrov.info>.
	* gettext-tools/po/es.po: Update from Antonio Ceballos <aceballos@gmail.com>.
	* gettext-tools/po/fr.po: Update from Stéphane Aulery <lkppo@free.fr>.
	* gettext-tools/po/ja.po: Update from Masahito Yamaga <ma@yama-ga.com>.
	* gettext-tools/po/nl.po: Update from Benno Schulenberg <benno@vertaalt.nl>.
	* gettext-tools/po/pt_BR.po: Update from Rafael Fontenelle <rffontenelle@gmail.com>.
	* gettext-tools/po/sk.po: Update from Marcel Telka <marcel@telka.sk>.
	* gettext-tools/po/sl.po: Update from Primoz PETERLIN <primozz.peterlin@gmail.com>.
	* gettext-tools/po/sr.po: Update from Мирослав Николић <miroslavnikolic@rocketmail.com>.
	* gettext-tools/po/uk.po: Update from Yuri Chornoivan <yurchor@ukr.net>.
	* gettext-tools/po/vi.po: Update from Trần Ngọc Quân <vnwildman@gmail.com>.

2015-12-27  Daiki Ueno  <ueno@gnu.org>

	Prepare for 0.19.7

2015-12-27  Daiki Ueno  <ueno@gnu.org>

	doc: Regenerate translation matrix
	* gettext-runtime/ABOUT-NLS: Regenerate for 0.19.7.
	* gettext-runtime/doc/matrix.texi: Regenerate for 0.19.7.

2015-12-27  Daiki Ueno  <ueno@gnu.org>

	NEWS: Add 0.19.7 changes

2015-12-27  Daiki Ueno  <ueno@gnu.org>

	Update gnulib

2015-12-27  Daiki Ueno  <ueno@gnu.org>

	Ignore file brought by gnulib-tool
	* gettext-tools/gnulib-tests/.gitignore: Ignore file brought by
	gnulib-tool.

2015-12-23  Daiki Ueno  <ueno@gnu.org>

	term-ostream-tests: Add test data for FreeBSD 10.1
	* gnulib-local/modules/term-ostream-tests: Add
	test-term-ostream-xterm-freebsd101.out.
	* gnulib-local/tests/test-term-ostream-xterm: Use new test data.
	* gnulib-local/tests/test-term-ostream-xterm-freebsd101.out: New file.

2015-12-21  Daiki Ueno  <ueno@gnu.org>

	cldr-plurals: Fix errors from clang-analyzer
	* gettext-tools/src/cldr-plurals.c (extract_rules): Add extra null
	checks for NODE and BUFFER.  Don't add NUL byte to the end of buffer
	manually.

2015-12-17  Daiki Ueno  <ueno@gnu.org>

	po: Prefer to use host tools when cross compiling
	* gettext-runtime/po/Makefile.in.in (CROSS_COMPILING): New substitute
	variable.
	(.nop.po-update): Don't prepend ../src to $PATH when cross compiling.
	* gettext-runtime/po/Rules-quot (.insert-header.po-update-en): Likewise.

2015-12-17  Daiki Ueno  <ueno@gnu.org>

	its: Allow CDATA and comments in translatable node
	* gettext-tools/src/its.c (its_rule_list_is_translatable): Don't return
	false on CDATA and comments.

2015-12-17  Daiki Ueno  <ueno@gnu.org>

	its: Fix typo in GSettings rule
	* gettext-tools/its/gsettings.its: Fix typo in escape rule.

2015-12-15  Daiki Ueno  <ueno@gnu.org>

	gnulib-local: Fix link error due to symbol dupes
	* gnulib-local/lib/libxml/trionan.c (minus_zerod): Mark as static.

2015-12-15  Daiki Ueno  <ueno@gnu.org>

	gnulib-local: Pull more functions for libxml
	* gettext-tools/gnulib-lib/.gitignore: Ignore files brought by
	gnulib-tool.
	* gettext-tools/gnulib-tests/.gitignore: Likewise.
	* gnulib-local/modules/libxml (Depends-on): Add 'pow', 'log10', and
	'fabs'.

2015-12-15  Daiki Ueno  <ueno@gnu.org>

	gnulib-local: Replace libxml2 trio with Gnulib
	* gettext-tools/gnulib-lib/.gitignore: Ignore files brought by
	gnulib-tool.
	* gettext-tools/gnulib-tests/.gitignore: Likewise.
	* gnulib-local/lib/libxml/triodef.h: Remove.
	* gnulib-local/lib/libxml/trionan.c: Replace it with Gnulib functions.
	* gnulib-local/lib/libxml/trionan.h: Remove.
	* gnulib-local/modules/libxml (Depends-on): Add 'isinf', 'isnan', and
	'signbit'.

2015-12-14  Daiki Ueno  <ueno@gnu.org>

	gnulib-local: Update included libxml2 to 2.9.3
	* gnulib-local/lib/libxml/*: Update from libxml2 2.9.3.  Add buf.[ch],
	enc.h, save.h, triodef.h, trionan.[ch].  Enable XPath and XPointer
	support.
	* gnulib-local/modules/libxml (Files): Add new files from libxml2 2.9.3.

2015-12-10  Daiki Ueno  <ueno@gnu.org>

	gettext-tools: Update POTFILES.in
	* gettext-tools/po/POTFILES.in: Add newly added files.

2015-12-10  Daiki Ueno  <ueno@gnu.org>

	gnulib-local: Make markup.c translator friendly
	* gnulib-local/lib/markup.c: Reuse strings.

2015-12-10  Daiki Ueno  <ueno@gnu.org>

	its: Mark some attributes as escape="no"
	* gettext-tools/its/glade2.its: Mark "comments" attribute as
	escape="no".
	* gettext-tools/its/gsettings.its: Mark "context" attribute as
	escape="no".
	* gettext-tools/its/gtkbuilder.its: Mark "comments" attribute as
	escape="no".

2015-12-10  Daiki Ueno  <ueno@gnu.org>

	xgettext: Respect ITS escape rule for attributes
	* gettext-tools/src/its.c (its_rule_list_extract_text): Check for
	"escape" value for an attribute node.
	* gettext-tools/tests/xgettext-its-1: Add tests for gt:escapeRule.

2015-12-10  KO Myung-Hun  <komh78@gmail.com>  (tiny change)

	intl: Fix name resolution failures on kLIBC
	kLIBC already has _nl_default_dirname and _nl_msg_cat_cntr in its own
	gettext implmenetation.
	* gettext-runtime/intl/dcigettext.c: Do not declare _nl_default_dirname
	on kLIBC.
	* gettext-runtime/intl/gettextP.h: Define _nl_msg_cat_cntr to
	libintl_nl_msg_cat_cntr on kLIBC.

2015-12-10  KO Myung-Hun  <komh78@gmail.com>  (tiny change)

	build: Do not include os2compat.[ch]
	kLIBC does not need os2compat.[ch]
	* gettext-runtime/configure.ac (AH_BOTTOM): Do not include
	intl/os2compat.h on kLIBC.
	* gettext-runtime/intl/osdep.c: Do not include os2compat.c on kLIBC.
	* gettext-tools/configure.ac (AH_BOTTOM): Do not include
	intl/os2compat.h on kLIBC.

2015-12-10  KO Myung-Hun  <komh78@gmail.com>  (tiny change)

	test-lock: Do not include sched.h on kLIBC
	* gettext-runtime/tests/test-lock.c: Do not include sched.h on kLIBC,
	since kLIBC does not have sched.h.

2015-12-10  Daiki Ueno  <ueno@gnu.org>

	kde: Fix KUIT error handling when libxml2 is used
	* gettext-tools/src/format-kde-kuit.c (format_parse): Return NULL if
	xmlReadMemory returns NULL.

2015-12-10  Daiki Ueno  <ueno@gnu.org>

	xgettext: Add --its option for ease of testing
	* gettext-tools/doc/xgettext.texi (Output details): Mention --its
	option.
	* gettext-tools/src/xgettext.c (long_options): Add --its option.
	(main): Handle --its option.  Suggested by Sébastien Wilmet.

2015-12-10  Daiki Ueno  <ueno@gnu.org>

	xgettext: Improve error reporting when ITS is used
	* gettext-tools/src/xgettext.c (main): Print error when an ITS file is
	designated through a locating rule, but the file does not exist.

2015-12-09  Daiki Ueno  <ueno@gnu.org>

	build: Update DEPENDENCIES
	* DEPENDENCIES: Remove duplicate entry for libxml2.

2015-12-09  Daiki Ueno  <ueno@gnu.org>

	build: Remove expat dependency
	* DEPENDENCIES: Suggest libxml2 instead of expat.
	* gnulib-local/lib/markup.c: New file.
	* gnulib-local/lib/markup.h: New file.
	* gnulib-local/modules/markup: New file.
	* autogen.sh (GNULIB_MODULES_LIBGETTEXTPO): Add markup module.
	* gettext-tools/configure.ac: Remove checks for expat.
	* gettext-tools/gnulib-lib/.gitignore: Ignore modules pulled by
	gnulib-tool due to the markup module usage.
	* gettext-tools/gnulib-tests/.gitignore: Likewise.
	* gettext-tools/libgettextpo/.gitignore: Likewise.
	* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES):
	Remove ../src/libexpat-compat.c.
	(libgettextpo_la_LDFLAGS): Remove @LTLIBEXPAT@.
	* gettext-tools/src/Makefile.am (noinst_HEADERS): Remove
	libexpat-compat.h.
	(libgettextsrc_la_SOURCES): Remove libexpat-compat.c.
	(libgettextsrc_la_LDFLAGS): Remove @LTLIBEXPAT@.
	* gettext-tools/src/format-kde-kuit.c: Use functions from markup.h, when
	the file is being compiled as part of libgettextpo.  Otherwise use
	libxml2.
	* gettext-tools/src/libexpat-compat.c: Remove.
	* gettext-tools/src/libexpat-compat.h: Remove.

2015-12-08  Daiki Ueno  <ueno@gnu.org>

	build: Fix texi2html failure with perl 5.22
	* gettext-runtime/libasprintf/texi2html (update_sec_num): Don't use
	"defined" against an array ref.
	* gettext-tools/doc/texi2html (update_sec_num): Likewise.

2015-12-08  Daiki Ueno  <ueno@gnu.org>

	Update gnulib

2015-12-08  Daiki Ueno  <ueno@gnu.org>

	xgettext: Ignore --from-code when XML mode
	* gettext-tools/src/xgettext.c (extract_from_xml_file): Forcibly set
	current source encoding to UTF-8, on XML mode.

2015-12-08  Daiki Ueno  <ueno@gnu.org>

	build: Suppress compiler warning
	* gettext-tools/src/its.c (its_rule_list_extract_text): Remove unused
	local variable "message".

2015-12-04  Daiki Ueno  <ueno@gnu.org>

	msgfmt: Support XML file merging
	* gettext-tools/src/Makefile.am (noinst_HEADERS): Add write-xml.h.
	(msgfmt_SOURCES): Add write-xml.c.
	* gettext-tools/src/its.c (its_merge_context_merge_node): New function.
	(its_merge_context_merge): New function.
	(its_merge_context_alloc): New function.
	(its_merge_context_write): New function.
	(its_merge_context_free): New function.
	* gettext-tools/src/its.h (its_merge_context_ty): New type.
	* gettext-tools/src/msgfmt.c: Include "its.h", "locating-rule.h", and
	"write-xml.h".
	(SIZEOF): New macro.
	(xml_mode, xml_locale_name, xml_template_name, xml_base_directory,
	xml_language, xml_its_rules): New variable.
	(long_options): Add --language and --xml.
	(main): Handle new options.
	(usage): Document new options.
	(msgfmt_xml_bulk): New function.
	* gettext-tools/src/write-xml.c: New file.
	* gettext-tools/src/write-xml.h: New file.
	* gettext-tools/doc/gettext.texi: Mention XML file merging use-case.
	* gettext-tools/doc/msgfmt.texi: Mention --xml option.
	* gettext-tools/tests/msgfmt-xml-1: New file.
	* gettext-tools/tests/msgfmt-xml-2: New file.
	* gettext-tools/tests/Makefile.am (TESTS): Add new tests.

2015-12-04  Daiki Ueno  <ueno@gnu.org>

	xgettext: Rewrite Glade scanner in ITS
	* gettext-tools/its/glade.loc: New file.
	* gettext-tools/its/glade1.its: New file.
	* gettext-tools/its/glade2.its: New file.
	* gettext-tools/its/gtkbuilder.its: New file.
	* gettext-tools/its/Makefile.am (dist_its_DATA): Add new files.
	* gettext-tools/src/Makefile.am (xgettext_SOURCES): Remove x-glade.c.
	* gettext-tools/src/x-glade.c: Remove.
	* gettext-tools/src/x-glade.h (EXTENSIONS_GLADE): Set language field to
	NULL.
	(SCANNERS_GLADE): Set func field to NULL.
	* gettext-tools/po/POTFILES.in: Remove x-glade.c

2015-12-04  Daiki Ueno  <ueno@gnu.org>

	xgettext: Rewrite GSettings scanner in ITS
	* gettext-tools/its/gsettings.its: New file.
	* gettext-tools/its/gsettings.loc: New file.
	* gettext-tools/its/Makefile.am (dist_its_DATA): Add new files.
	* gettext-tools/src/Makefile.am (xgettext_SOURCES): Remove x-gsettings.c.
	* gettext-tools/src/x-gsettings.c: Remove.
	* gettext-tools/src/x-gsettings.h (EXTENSIONS_GSETTINGS): Set language
	field to NULL.
	(SCANNER_GSETTINGS): Set func field to NULL.

2015-12-04  Daiki Ueno  <ueno@gnu.org>

	xgettext: Rewrite AppData scanner in ITS
	* gettext-tools/its/appdata.loc: New file.
	* gettext-tools/its/appdata.its: New file.
	* gettext-tools/its/Makefile.am (dist_its_DATA): Add new files.
	* gettext-tools/src/Makefile.am (xgettext_SOURCES): Remove x-appdata.c.
	* gettext-tools/src/x-appdata.c: Remove.
	* gettext-tools/src/x-appdata.h (EXTENSIONS_APPDATA): Set language
	field to NULL.
	(SCANNERS_APPDATA): Set func field to NULL.

2015-12-04  Daiki Ueno  <ueno@gnu.org>

	xgettext: Add support for generic XML files
	* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add trim module.
	* gettext-tools/src/locating-rule.h: New file.
	* gettext-tools/src/locating-rule.c: New file.
	* gettext-tools/src/its.h: New file.
	* gettext-tools/src/its.c: New file.
	* gettext-tools/src/xgettext.c: Include "locating-rule.h" and "its.h".
	(its_locators): New variable.
	(long_options): Add --itstool option.
	(extract_from_xml_file): New function.
	(main): Handle --itstool option.
	(usage): Document --itstool option.
	* gettext-tools/src/Makefile.am (noinst_HEADERS): Add locating-rule.h
	and its.h.
	(libgettextsrc_la_CPPFLAGS): Add $(INCXML).
	(libgettextsrc_la_SOURCES): Add locating-rule.c and its.c.
	* gettext-tools/Makefile.am (SUBDIRS): Add its directory.
	* gettext-tools/configure.ac: Output its/Makefile.
	* gettext-tools/doc/gettext.texi (Preparing ITS Rules): New section.
	* gettext-tools/doc/xgettext.texi: Mention --itstool option.
	* gettext-tools/tests/Makefile.am (TESTS): Add new tests.
	* gettext-tools/tests/xgettext-its-1: New file
	* gettext-tools/tests/init-env.in: Set GETTEXTDATADIR for ITS tests.

2015-11-18  Daiki Ueno  <ueno@gnu.org>

	cldr-plurals: Add sanity checks for input
	* gettext-tools/src/cldr-plurals.c (extract_rules): Add null checks and
	element type checks.

2015-11-17  Daiki Ueno  <ueno@gnu.org>

	cldr-plurals: Rewrite XML handling using libxml2
	* src/cldr-plurals.c: Include <libxml/tree.h> and
	<libxml/parser.h>, instead of "libexpat-compat.h".
	(extract_locale, extracted_rules, parser, logical_file_name)
	(struct element_state, stack, stack_size, stack_depth)
	(ensure_stack_size, start_element_handler, end_element_handler)
	(character_data_handler): Remove.
	(extract_rules): Rename from extract_rule and rewrite using DOM.
	(main): Use extract_rules.
	* src/Makefile.am (cldr_plurals_CFLAGS): Add $(INCXML).

2015-11-17  Daiki Ueno  <ueno@gnu.org>

	cldr-plurals: Fix a trivial leak
	* src/cldr-plural.y (sample_range): Free unused operand value.

2015-11-17  Phil Davis  <phil.davis@inf.org>  (tiny change)

	doc: Fix typo in gettext_noop example
	* doc/gettext.texi (Special cases): Add missing ')' to
	a gettext_noop call.

2015-10-29  Daiki Ueno  <ueno@gnu.org>

	maint: Ignore more generated ChangeLogs
	* .gitignore: Add gettext-runtime/intl/ChangeLog,
	gettext-runtime/po/ChangeLog, and gettext-tools/po/ChangeLog.

2015-10-29  Daiki Ueno  <ueno@gnu.org>

	m4: Fix typo in usage comment
	* gettext-runtime/m4/gettext.m4: Remove duplicate words.
	* gettext-runtime/m4/intl.m4: Likewise.
	* gettext-runtime/m4/intldir.m4: Likewise.
	* gettext-runtime/m4/intlmacosx.m4: Likewise.
	* gettext-runtime/m4/lcmessage.m4: Likewise.
	* gettext-runtime/m4/nls.m4: Likewise.
	* gettext-runtime/m4/po.m4: Likewise.
	* gettext-runtime/m4/progtest.m4: Likewise.
	Reported by Jakub Wilk in:
	https://lists.gnu.org/archive/html/bug-gettext/2015-10/msg00026.html.

2015-10-29  Daiki Ueno  <ueno@gnu.org>

	doc: Fix typo in msgfmt invocation
	* gettext-tools/doc/msgfmt.texi: Fix the documentation of -d option,
	used in the Desktop Entry mode.

2015-10-15  Daiki Ueno  <ueno@gnu.org>

	build: Generate ChangeLogs for intl and po
	* autogen.sh: Create empty ChangeLog files under intl and po.
	* Makefile.am (gen-ChangeLogs): Rename from gen-ChangeLog.  Generate
	ChangeLog files for */intl and */po as well as top-level.
	* gettext-runtime/intl/ChangeLog.0: Rename from ChangeLog.
	* gettext-runtime/po/ChangeLog.0: Rename from ChangeLog.
	* gettext-tools/po/ChangeLog.1: Rename from ChangeLog.

2015-10-15  Daiki Ueno  <ueno@gnu.org>

	build: Distribute old ChangeLogs in tarball
	* Makefile.am (changelog_etc): Remove non-existent ChangeLog files
	under intl and po.
	(EXTRA_DIST): Add $(changelog_etc).

2015-10-14  Mike Frysinger  <vapier@chromium.org>

	tests: use check_PROGRAMS
	The noinst_xxx targets will be compiled all the time.  For test programs,
	the check_xxx targets make more sense as they'll only be built when the
	user runs `make check`.

	* gettext-runtime/tests/Makefile.am (noinst_PROGRAMS): Rename to ...
	(check_PROGRAMS): ... this.

2015-10-14  Mike Frysinger  <vapier@chromium.org>

	intl/localename: control langinfo.h inclusion
	This header is only used to work around buggy behavior in old versions
	of glibc, so do not include it all the time.  Otherwise we get build
	failures on systems that do not provide langinfo.h.

	* gettext-runtime/intl/localename.c: Wrap langinfo.h include with same
	ifdefs used in the source later on.

2015-10-14  Daiki Ueno  <ueno@gnu.org>

	build: Remove ChangeLogs
	Generate ChangeLog files at "make dist" time, using
	gitlog-to-changelog.  We still keep ChangeLog files under "po" and
	"intl" directories, since those files are copied as part of gettext
	infrastructure and it is still meaningful to have them there.
	* .gitignore: Add ChangeLog files.
	* Admin/release-steps: Remove mention of running update-changelog
	script.
	* Admin/update-changelog: Remove.
	* Makefile.am (gen-ChangeLog): New rule.
	* autogen.sh: Copy gitlog-to-changelog from gnulib.  Create empty
	ChangeLog files to suppress Automake errors.
	* gettext-tools/doc/Makefile.am (EXTRA_DIST): Remove ChangeLog.0.
	* gettext-tools/man/Makefile.am (EXTRA_DIST): Remove ChangeLog.0.
	* gettext-tools/src/Makefile.am (EXTRA_DIST): Remove ChangeLog.0.
	* gettext-tools/tests/Makefile.am (EXTRA_DIST): Remove ChangeLog.0.
	* gnulib-local/Makefile.am (EXTRA_DIST): Remove ChangeLog files.
	* */ChangeLog: Rename to ChangeLog.0 or ChangeLog.1.
	* HACKING: Add brief guideline to submit patches.
