]>
git.ipfire.org Git - thirdparty/gettext.git/log
Bruno Haible [Tue, 28 Jul 2020 17:52:13 +0000 (19:52 +0200)]
Fix build error on Solaris 11 in 32-bit mode.
This fixes a compilation error on Solaris 11.3 (both x86_64 and SPARC,
both with gcc and cc) 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.
Bruno Haible [Sun, 20 Dec 2020 22:42:14 +0000 (23:42 +0100)]
Update after gnulib changed.
This fixes a compilation error e.g. on FreeBSD and AIX.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC, GNULIB_MODULES_LIBGETTEXTPO): Add
'free-posix'.
* 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.
Bruno Haible [Mon, 12 Sep 2022 00:47:22 +0000 (02:47 +0200)]
Update after gnulib changed.
Previously, different gnulib-tool invocations within the scope of the same
configure.ac interfered with each other (through the GNULIB_* indicator macros,
used in the generated .h files), and libgrep relied on it. Now, each gnulib-tool
invocation needs its own copy of the generated .h files, in particular locale.h.
Needed for the localeconv() override on native Windows.
* autogen.sh: When invoking gnulib-tool for libgrep, don't avoid 'locale' and
the other header file modules.
* gettext-tools/configure.ac: Set GL_GRGL_GNULIB_SETLOCALE_NULL to 1.
Bruno Haible [Sun, 4 Apr 2021 11:46:34 +0000 (13:46 +0200)]
Update after gnulib changed on 2017-06-17.
* gnulib-local/lib/diffseq.h.diff: Remove file.
* gnulib-local/Makefile.am (EXTRA_DIST): Remove it.
Bruno Haible [Thu, 7 Jan 2021 22:15:05 +0000 (23:15 +0100)]
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.
Bruno Haible [Sun, 20 Jun 2021 01:44:25 +0000 (03:44 +0200)]
Update after gnulib changed.
* libtextstyle/configure.ac: Update for changed naming convention of module
indicator variables.
Bruno Haible [Fri, 25 Dec 2020 18:25:13 +0000 (19:25 +0100)]
Update after gnulib changed.
* libtextstyle/configure.ac: Set GNULIB_MDA_ISATTY. This fixes a link error on
native Windows.
Bruno Haible [Sun, 2 Jan 2022 14:43:41 +0000 (15:43 +0100)]
Update after gnulib changed.
* gettext-tools/tests/msgcat-17: Update test for changed libunistring line
breaking behaviour.
* gettext-tools/tests/msgfilter-sr-latin-1: Likewise.
* gettext-tools/tests/msgmerge-11: Likewise.
* gettext-tools/tests/xgettext-python-1: Likewise.
Bruno Haible [Sun, 11 Sep 2022 15:56:11 +0000 (17:56 +0200)]
Update after gnulib changed.
* gettext-tools/po/POTFILES.in: Update.
Bruno Haible [Sun, 4 Apr 2021 14:01:02 +0000 (16:01 +0200)]
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.
Bruno Haible [Sat, 12 Dec 2020 12:30:15 +0000 (13:30 +0100)]
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 *'.
Bruno Haible [Wed, 2 Dec 2020 18:49:40 +0000 (19:49 +0100)]
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.
Bruno Haible [Mon, 12 Oct 2020 00:09:10 +0000 (02:09 +0200)]
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/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.
Bruno Haible [Sun, 11 Sep 2022 14:58:48 +0000 (16:58 +0200)]
Update after gnulib changed.
Bruno Haible [Sun, 11 Sep 2022 14:20:56 +0000 (16:20 +0200)]
Update after gnulib changed.
* gettext-runtime/intl/arg-nonnull.h: Update from gnulib.
* gettext-runtime/intl/localename.c: Likewise.
* gettext-runtime/intl/lock.h: Likewise.
* gettext-runtime/intl/relocatable.c: Likewise.
* gettext-runtime/intl/relocatable.h: Likewise.
* gettext-runtime/intl/threadlib.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/fcntl-o.m4: Likewise.
* gettext-runtime/m4/iconv.m4: Likewise.
* gettext-runtime/m4/flexmember.m4: Update copyright years.
* gettext-runtime/m4/intlmacosx.m4: Likewise.
* gettext-runtime/m4/inttypes_h.m4: Likewise.
* gettext-runtime/m4/nls.m4: Likewise.
* gettext-runtime/m4/po.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.
Bruno Haible [Sun, 18 Oct 2020 11:52:32 +0000 (13:52 +0200)]
Update after gnulib changed.
* gnulib-local/lib/hash.h.diff: Update.
* gnulib-local/lib/hash.c.diff: Likewise.
Bruno Haible [Sun, 6 Sep 2020 10:04:35 +0000 (12:04 +0200)]
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.
Bruno Haible [Sun, 11 Sep 2022 12:40:55 +0000 (14:40 +0200)]
Update to gnulib stable-202201 branch.
Bruno Haible [Sun, 11 Sep 2022 17:01:14 +0000 (19:01 +0200)]
build: Restore the ability to run "make check".
* cfg.mk (gl_public_submodule_commit): Define to empty.
Bruno Haible [Sun, 15 May 2022 22:00:04 +0000 (00:00 +0200)]
Upgrade to libtool 2.4.7.
* m4/libtool.m4: Update from libtool-2.4.7, with modifications.
2017-10-21 Bruno Haible <bruno@clisp.org>
Fix -export-symbols and -export-symbols-regex support on Solaris 11.3.
* m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): Adjust symcode for Solaris.
* m4/ltoptions.m4: Likewise.
* m4/ltsugar.m4: Likewise.
* m4/ltversion.m4: Likewise.
* m4/lt~obsolete.m4: Likewise.
* build-aux/ltmain.sh: Likewise.
Bruno Haible [Sun, 21 Feb 2021 01:30:09 +0000 (02:30 +0100)]
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.
Bruno Haible [Tue, 28 Jul 2020 17:43:57 +0000 (19:43 +0200)]
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.
Bruno Haible [Sun, 21 Feb 2021 01:28:40 +0000 (02:28 +0100)]
Switch to autoconf-2.71.
* libtextstyle/autogen.sh: Update comments.
Bruno Haible [Wed, 9 Dec 2020 20:43:31 +0000 (21:43 +0100)]
build: Allow building with Autoconf 2.70.
* libtextstyle/autogen.sh: Update comment.
Bruno Haible [Sun, 4 Oct 2020 21:40:53 +0000 (23:40 +0200)]
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.
Bruno Haible [Sat, 14 Nov 2020 13:53:19 +0000 (14:53 +0100)]
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.
Bruno Haible [Sun, 6 Sep 2020 09:48:45 +0000 (11:48 +0200)]
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.
Bruno Haible [Sun, 4 Oct 2020 21:44:52 +0000 (23:44 +0200)]
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.
Bruno Haible [Sat, 1 Aug 2020 20:43:45 +0000 (22:43 +0200)]
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.
Bruno Haible [Tue, 7 Dec 2021 20:13:43 +0000 (21:13 +0100)]
libtextstyle: Clarify rationale for gl_INIT_PACKAGE.
* libtextstyle/m4/init-package-version.m4: Add more comments.
Bruno Haible [Sun, 8 Aug 2021 00:08:43 +0000 (02:08 +0200)]
libtextstyle: Make gl_INIT_PACKAGE work with Automake >= 1.16.4.
Reported and analyzed by Nicole Mazzuca <mazzucan@outlook.com> in
<https://lists.gnu.org/archive/html/bug-libunistring/2021-08/msg00002.html>.
* m4/init-package-version.m4 (gl_INIT_PACKAGE): Use a new macro gl_INIT_EMPTY.
(gl_INIT_DUMMY): Expand to empty in two steps, via a new macro gl_INIT_DUMMY2.
Bruno Haible [Sat, 1 Aug 2020 15:25:10 +0000 (17:25 +0200)]
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.
Bruno Haible [Mon, 27 Jul 2020 01:22:39 +0000 (03:22 +0200)]
Update post-release steps.
Bruno Haible [Mon, 27 Jul 2020 00:17:45 +0000 (02:17 +0200)]
Release 0.21
Bruno Haible [Mon, 27 Jul 2020 00:16:27 +0000 (02:16 +0200)]
Update release steps.
Bruno Haible [Mon, 27 Jul 2020 00:15:14 +0000 (02:15 +0200)]
Prepare for 0.21 release.
* gettext-tools/examples/hello-*/configure.{ac,in.in}: Reference gettext
version 0.21.
Bruno Haible [Mon, 27 Jul 2020 00:14:35 +0000 (02:14 +0200)]
PO file changes from "make distcheck".
Bruno Haible [Sun, 26 Jul 2020 20:56:35 +0000 (22:56 +0200)]
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.
Bruno Haible [Sun, 26 Jul 2020 20:51:24 +0000 (22:51 +0200)]
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.
Bruno Haible [Sun, 26 Jul 2020 19:55:09 +0000 (21:55 +0200)]
doc: Tweak libgettextpo chapter.
* gettext-tools/doc/gettext.texi (libgettextpo): Very small tweaks.
Bruno Haible [Sun, 26 Jul 2020 16:52:36 +0000 (18:52 +0200)]
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.
Bruno Haible [Sun, 26 Jul 2020 16:45:27 +0000 (18:45 +0200)]
doc: Canonicalize source.
* gettext-tools/doc/gettext.texi: Prefer long lines to @<newline> breaks.
Miguel Ángel Arruga Vivas [Tue, 7 May 2019 18:27:53 +0000 (20:27 +0200)]
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.
Miguel Ángel Arruga Vivas [Tue, 7 May 2019 18:11:51 +0000 (20:11 +0200)]
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.
Miguel Ángel Arruga Vivas [Mon, 6 May 2019 15:22:36 +0000 (17:22 +0200)]
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.
Miguel Ángel Arruga Vivas [Mon, 6 May 2019 15:13:24 +0000 (17:13 +0200)]
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.
Miguel Ángel Arruga Vivas [Mon, 6 May 2019 15:00:38 +0000 (17:00 +0200)]
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.
Miguel Ángel Arruga Vivas [Mon, 6 May 2019 14:44:26 +0000 (16:44 +0200)]
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.
Miguel Ángel Arruga Vivas [Mon, 6 May 2019 14:27:09 +0000 (16:27 +0200)]
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.
Miguel Ángel Arruga Vivas [Mon, 6 May 2019 14:19:26 +0000 (16:19 +0200)]
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.
Miguel Ángel Arruga Vivas [Mon, 6 May 2019 14:15:36 +0000 (16:15 +0200)]
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.
Miguel Ángel Arruga Vivas [Mon, 6 May 2019 14:05:40 +0000 (16:05 +0200)]
doc: Update po_message_t API (I)
* gettext-tools/doc/gettext.texi (po_message_t API): Add
po_message_create documentation.
Miguel Ángel Arruga Vivas [Mon, 6 May 2019 12:37:32 +0000 (14:37 +0200)]
doc: Update libgettextpo example
* gettext-tools/doc/gettext.texi (libgettextpo): Update example to the
latest API.
Miguel Ángel Arruga Vivas [Mon, 6 May 2019 11:34:27 +0000 (13:34 +0200)]
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.
Miguel Ángel Arruga Vivas [Sun, 5 May 2019 18:51:49 +0000 (20:51 +0200)]
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.
Miguel Ángel Arruga Vivas [Sun, 5 May 2019 18:02:26 +0000 (20:02 +0200)]
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.
Miguel Ángel Arruga Vivas [Sun, 5 May 2019 17:54:44 +0000 (19:54 +0200)]
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.
Miguel Ángel Arruga Vivas [Sun, 5 May 2019 17:38:57 +0000 (19:38 +0200)]
doc: Add po_xerror_handler_t documentation
* gettext-tools/doc/gettext.texi (libgettextpo): Add struct
po_xerror_handler and its callbacks to the manual.
Miguel Ángel Arruga Vivas [Sun, 5 May 2019 18:09:56 +0000 (20:09 +0200)]
doc: Add po_file_create documentation
* gettext-tools/doc/gettext.texi (libgettextpo): Add po_file_create
documentation.
Bruno Haible [Sun, 26 Jul 2020 15:52:11 +0000 (17:52 +0200)]
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.
Bruno Haible [Sun, 26 Jul 2020 15:26:55 +0000 (17:26 +0200)]
Update to newest gnulib.
Bruno Haible [Sun, 26 Jul 2020 13:01:01 +0000 (15:01 +0200)]
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.
Bruno Haible [Fri, 17 Jul 2020 22:01:57 +0000 (00:01 +0200)]
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.
Bruno Haible [Wed, 15 Jul 2020 00:13:03 +0000 (02:13 +0200)]
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).
Bruno Haible [Wed, 8 Jul 2020 07:21:26 +0000 (09:21 +0200)]
Fix a test failure on MSVC.
* gettext-tools/tests/recode-sr-latin-1: Allow CRLF newlines in the output.
Bruno Haible [Wed, 8 Jul 2020 01:47:08 +0000 (03:47 +0200)]
Fix build error on mingw (regression from 2020-07-05).
* autogen.sh (GNULIB_MODULES_LIBGETTEXTPO_OTHER): Add fdopen.
Bruno Haible [Wed, 8 Jul 2020 01:45:27 +0000 (03:45 +0200)]
Update to newest gnulib.
Bruno Haible [Mon, 6 Jul 2020 19:31:54 +0000 (21:31 +0200)]
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.
Bruno Haible [Mon, 6 Jul 2020 17:28:51 +0000 (19:28 +0200)]
Fix compilation error on AIX (regression from 2019-01-06).
* gettext-runtime/intl/Makefile.am (localename-table.h): Fix insertion of
export.h.
Bruno Haible [Sun, 5 Jul 2020 23:34:33 +0000 (01:34 +0200)]
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.
Bruno Haible [Sun, 5 Jul 2020 21:44:41 +0000 (23:44 +0200)]
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.
Bruno Haible [Sun, 5 Jul 2020 20:47:41 +0000 (22:47 +0200)]
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.
Bruno Haible [Sun, 5 Jul 2020 20:09:08 +0000 (22:09 +0200)]
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.
Bruno Haible [Sun, 5 Jul 2020 20:08:17 +0000 (22:08 +0200)]
Update to newest gnulib.
Bruno Haible [Sun, 5 Jul 2020 20:06:43 +0000 (22:06 +0200)]
gettext.h: Update from gnulib.
* gnulib-local/lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined.
Bruno Haible [Sun, 5 Jul 2020 19:50:34 +0000 (21:50 +0200)]
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.
Bruno Haible [Sun, 5 Jul 2020 19:42:14 +0000 (21:42 +0200)]
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.
Bruno Haible [Sun, 5 Jul 2020 19:29:30 +0000 (21:29 +0200)]
Remove some now unneeded gnulib-tool --avoid options.
* autogen.sh: Remove some --avoid=*-tests options.
* libtextstyle/autogen.sh: Likewise.
Bruno Haible [Sat, 4 Jul 2020 20:21:58 +0000 (22:21 +0200)]
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.
Bruno Haible [Sat, 4 Jul 2020 20:21:28 +0000 (22:21 +0200)]
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.
Bruno Haible [Thu, 25 Jun 2020 15:38:25 +0000 (17:38 +0200)]
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.
Bruno Haible [Sat, 27 Jun 2020 20:43:16 +0000 (22:43 +0200)]
Add comment.
* gettext-tools/src/plural-eval.c (sigfpe_handler): Add comment.
Bruno Haible [Fri, 26 Jun 2020 21:22:29 +0000 (23:22 +0200)]
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.
Bruno Haible [Fri, 26 Jun 2020 19:30:16 +0000 (21:30 +0200)]
Update to newest gnulib.
Bruno Haible [Sat, 6 Jun 2020 15:25:00 +0000 (17:25 +0200)]
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.
Bruno Haible [Sat, 6 Jun 2020 14:53:12 +0000 (16:53 +0200)]
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.
Bruno Haible [Sat, 6 Jun 2020 14:02:22 +0000 (16:02 +0200)]
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.
Bruno Haible [Sun, 10 May 2020 18:44:55 +0000 (20:44 +0200)]
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.
Bruno Haible [Sun, 10 May 2020 19:15:49 +0000 (21:15 +0200)]
i18n: Update list of files.
* gettext-tools/po/POTFILES.in: Add missing files.
Bruno Haible [Sun, 10 May 2020 11:33:58 +0000 (13:33 +0200)]
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.
Daiki Ueno [Sun, 10 May 2020 07:24:37 +0000 (09:24 +0200)]
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>.
Bruno Haible [Sat, 9 May 2020 00:12:02 +0000 (02:12 +0200)]
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.
Bruno Haible [Sat, 9 May 2020 00:12:28 +0000 (02:12 +0200)]
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.
Bruno Haible [Fri, 8 May 2020 23:25:15 +0000 (01:25 +0200)]
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.
Bruno Haible [Fri, 8 May 2020 17:10:19 +0000 (19:10 +0200)]
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.
Bruno Haible [Fri, 8 May 2020 17:07:27 +0000 (19:07 +0200)]
Update to newest gnulib.
Bruno Haible [Fri, 8 May 2020 07:49:39 +0000 (09:49 +0200)]
Update after gnulib changed.
* gnulib-local/modules/fnmatch.diff: Update.
Bruno Haible [Fri, 8 May 2020 07:33:17 +0000 (09:33 +0200)]
Update to newest gnulib.
Bruno Haible [Sun, 3 May 2020 11:18:55 +0000 (13:18 +0200)]
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.
Bruno Haible [Sun, 3 May 2020 11:16:06 +0000 (13:16 +0200)]
Update to newest gnulib.