]> git.ipfire.org Git - thirdparty/gettext.git/log
thirdparty/gettext.git
2 years agoAvoid lang-vala failure on macOS with MacPorts.
Bruno Haible [Tue, 15 Jun 2021 08:32:19 +0000 (10:32 +0200)] 
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.

2 years agoUpdate DEPENDENCIES.
Bruno Haible [Sun, 28 Feb 2021 23:14:46 +0000 (00:14 +0100)] 
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.

2 years agobuild: Avoid a warning in a configure test.
Bruno Haible [Sun, 31 Jan 2021 20:01:44 +0000 (21:01 +0100)] 
build: Avoid a warning in a configure test.

Reported through MacPorts.

* gettext-runtime/m4/intdiv0.m4 (gt_INTDIV0): Avoid shadowing the global 'nan()'
function.

2 years agobuild: Remove glibc21.m4 (unused since 2018-09-17).
Bruno Haible [Mon, 28 Dec 2020 13:12:27 +0000 (14:12 +0100)] 
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.

2 years agointl: Support the AIX 7 locale names.
Bruno Haible [Thu, 10 Dec 2020 16:01:43 +0000 (17:01 +0100)] 
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.

2 years agoxgettext: Make --directory option work right with Ruby input files.
Bruno Haible [Fri, 4 Dec 2020 21:49:27 +0000 (22:49 +0100)] 
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.

2 years agotests: Fix typos on scheme-format test.
Miguel Arruga Vivas [Mon, 31 Dec 2018 10:38:36 +0000 (11:38 +0100)] 
tests: Fix typos on scheme-format test.

* gettext-tools/tests/format-scheme-2: Fix typos.

2 years agobuild: Remove the need for an autoconf test.
Bruno Haible [Sat, 21 Nov 2020 21:37:30 +0000 (22:37 +0100)] 
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.

2 years agobuild: Set permissions of test scripts consistently.
Bruno Haible [Sun, 25 Oct 2020 20:47:23 +0000 (21:47 +0100)] 
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.

2 years agoFix "warning: implicit declaration of function 'open'/'read'/'close'".
Bruno Haible [Sun, 18 Oct 2020 11:42:41 +0000 (13:42 +0200)] 
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.

2 years agoFix "warning: 'max' macro redefined".
Bruno Haible [Sat, 17 Oct 2020 19:55:47 +0000 (21:55 +0200)] 
Fix "warning: 'max' macro redefined".

* gettext-tools/src/x-javascript.c (max): Undefine first.
* gettext-tools/src/x-python.c (max): Likewise.

2 years agoFix "warning: no previous extern declaration for non-static variable".
Bruno Haible [Sun, 6 Sep 2020 23:43:59 +0000 (01:43 +0200)] 
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.

2 years agoFix "warning: this function declaration is not a prototype".
Bruno Haible [Sun, 6 Sep 2020 23:33:56 +0000 (01:33 +0200)] 
Fix "warning: this function declaration is not a prototype".

* gnulib-local/lib/xgetcwd.c (xgetcwd): Use ANSI C prototype syntax.

2 years agoFix "warning: no previous prototype for function 'its_*_eval'".
Bruno Haible [Sun, 6 Sep 2020 23:31:26 +0000 (01:31 +0200)] 
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'.

2 years agoFix "warning: no previous prototype for function 'locating_rule_list_destroy'".
Bruno Haible [Sun, 6 Sep 2020 23:26:42 +0000 (01:26 +0200)] 
Fix "warning: no previous prototype for function 'locating_rule_list_destroy'".

* gettext-tools/src/locating-rule.c (locating_rule_list_destroy): Make 'static'.

2 years agoFix "warning: no previous prototype for function 'xgetcwd'".
Bruno Haible [Sun, 6 Sep 2020 23:24:03 +0000 (01:24 +0200)] 
Fix "warning: no previous prototype for function 'xgetcwd'".

* gnulib-local/lib/xgetcwd.c: Include "xgetcwd.h".

2 years agoFix "warning: unannotated fall-through between switch labels".
Bruno Haible [Sun, 6 Sep 2020 23:08:11 +0000 (01:08 +0200)] 
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.

2 years agoFix "warning: cast from 'const void *' to 'char *' drops const qualifier".
Bruno Haible [Sun, 6 Sep 2020 21:26:02 +0000 (23:26 +0200)] 
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'.

2 years agoFix "warning: cast from 'const void *' to 'char *' drops const qualifier".
Bruno Haible [Sun, 6 Sep 2020 21:23:58 +0000 (23:23 +0200)] 
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'.

2 years agoFix "warning: cast from 'const void *' to 'char *' drops const qualifier".
Bruno Haible [Sun, 6 Sep 2020 21:07:51 +0000 (23:07 +0200)] 
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'.

2 years agoFix "warning: cast ... drops const qualifier".
Bruno Haible [Sun, 6 Sep 2020 21:19:33 +0000 (23:19 +0200)] 
Fix "warning: cast ... drops const qualifier".

* gnulib-local/lib/markup.c (slow_name_validate): Add 'const'.

2 years agoFix "warning: cast from 'const void *' to 'struct pre_message *' drops const qualifier".
Bruno Haible [Sun, 6 Sep 2020 21:01:39 +0000 (23:01 +0200)] 
Fix "warning: cast from 'const void *' to 'struct pre_message *' drops const qualifier".

* gettext-tools/src/write-mo.c (compare_id): Add 'const'.

2 years agoFix "warning: cast from 'const char *' to 'char *' drops const qualifier".
Bruno Haible [Sun, 6 Sep 2020 20:42:44 +0000 (22:42 +0200)] 
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'.

2 years agoFix "warning: cast from 'const void *' to 'struct compiled_kwset *' drops const quali...
Bruno Haible [Sun, 6 Sep 2020 20:18:28 +0000 (22:18 +0200)] 
Fix "warning: cast from 'const void *' to 'struct compiled_kwset *' drops const qualifier".

* gettext-tools/libgrep/m-fgrep.c (Fexecute): Add 'const'.

2 years agoFix "warning: cast from 'const void *' to 'const char **' drops const qualifier".
Bruno Haible [Sun, 6 Sep 2020 20:13:05 +0000 (22:13 +0200)] 
Fix "warning: cast from 'const void *' to 'const char **' drops const qualifier".

* gettext-runtime/src/envsubst.c (cmp_string): Add 'const'.

2 years agoFix matching of languages in the LINGUAS environment variable.
Bruno Haible [Sun, 6 Sep 2020 19:28:50 +0000 (21:28 +0200)] 
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.

2 years agoOptimize also for clang.
Bruno Haible [Sun, 16 Aug 2020 14:07:23 +0000 (16:07 +0200)] 
Optimize also for clang.

* gnulib-local/lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Set to 1
also on clang.

2 years agoOptimize also for clang.
Bruno Haible [Sun, 16 Aug 2020 14:00:40 +0000 (16:00 +0200)] 
Optimize also for clang.

* gnulib-local/lib/gettext.h (pgettext_aux, npgettext_aux, dcpgettext_expr,
dcnpgettext_expr): Inline also on clang.

2 years agoFix quoting of AC_LANG_SOURCE arguments.
Bruno Haible [Sun, 16 Aug 2020 12:02:31 +0000 (14:02 +0200)] 
Fix quoting of AC_LANG_SOURCE arguments.

* gettext-tools/m4/locale-de.m4 (gt_LOCALE_DE_UTF8): Simplify m4 quoting.

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

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

2 years agoHandle known test failure on Alpine Linux.
Bruno Haible [Tue, 15 Jun 2021 00:47:29 +0000 (02:47 +0200)] 
Handle known test failure on Alpine Linux.

* gettext-tools/tests/autopoint-3: Add comment regarding Alpine Linux.

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

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

2 years agoAdd comment about test failures on Cygwin.
Bruno Haible [Sat, 1 Aug 2020 16:31:23 +0000 (18:31 +0200)] 
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.

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

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

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

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

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

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

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

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

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

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

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

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

2 years agolibtextstyle: Fix the set of exported symbols on Alpine Linux.
Bruno Haible [Tue, 6 Apr 2021 23:37:51 +0000 (01:37 +0200)] 
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'.

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

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

2 years agoNEWS: Mention the Unicode standard update (work done in gnulib).
Bruno Haible [Mon, 12 Sep 2022 00:18:33 +0000 (02:18 +0200)] 
NEWS: Mention the Unicode standard update (work done in gnulib).

2 years agoUpdate NEWS.
Bruno Haible [Sun, 11 Sep 2022 23:51:39 +0000 (01:51 +0200)] 
Update NEWS.

* NEWS: Mention that a build failure on macOS 11/arm64 and a build failure on
Linux/powerpc64le with glibc 2.35 are now fixed (through gnulib).

2 years agoUpdate after gnulib changed: Fix link errors of gnulib tests on Windows.
Bruno Haible [Mon, 12 Sep 2022 21:45:02 +0000 (23:45 +0200)] 
Update after gnulib changed: Fix link errors of gnulib tests on Windows.

This avoids link errors of some tests in gnulib-tests on Cygwin and mingw
with --enable-shared.

* autogen.sh: Avoid the *-list-tests, since they reference a variable, leading
to a problem with --enable-shared.

2 years agoUpdate after gnulib changed: Fix link errors on MSVC.
Bruno Haible [Tue, 13 Sep 2022 12:26:20 +0000 (14:26 +0200)] 
Update after gnulib changed: Fix link errors on MSVC.

This fixes a link error on MSVC with --enable-shared.

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

2 years agoUpdate after gnulib changed: Fix link errors on MSVC.
Bruno Haible [Mon, 12 Sep 2022 23:28:06 +0000 (01:28 +0200)] 
Update after gnulib changed: Fix link errors on MSVC.

* gettext-runtime/configure.ac: For the expansion of DLL_VARIABLE, test
WOE32DLL, not _DLL.
* gettext-tools/configure.ac: Set the module indicator variable
GL_GTPO_GNULIB_VFPRINTF to 0.

2 years agoUpdate after gnulib changed: Fix link errors of gettextpo-1-prg on mingw.
Bruno Haible [Mon, 12 Sep 2022 21:44:17 +0000 (23:44 +0200)] 
Update after gnulib changed: Fix link errors of gettextpo-1-prg on mingw.

* gettext-tools/configure.ac: Set the module indicator variables
GL_GTPO_GNULIB_{PUTC,FPUTC,FPUTS,FWRITE,FPRINTF} to 0.
* gettext-tools/libgettextpo/Makefile.am (config.h): Undefine REPLACE_FCHDIR
that is defined in the parent config.h.

2 years agobuild: Fix build failure on Cygwin and mingw.
Michele Locati [Thu, 30 Jul 2020 16:58:02 +0000 (18:58 +0200)] 
build: Fix build failure on Cygwin and mingw.

* gettext-tools/woe32dll/gettextsrc-exports.c: Export formatstring_ruby.

2 years agoFix build error on Solaris 11 in 32-bit mode.
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.

2 years agoUpdate after gnulib changed.
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.

2 years agoUpdate after gnulib changed.
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.

2 years agoUpdate after gnulib changed on 2017-06-17.
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.

2 years agoUpdate after gnulib changed.
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.

2 years agoUpdate after gnulib changed.
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.

2 years agoUpdate after gnulib changed.
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.

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

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

2 years agoUpdate after gnulib changed.
Bruno Haible [Sun, 11 Sep 2022 15:56:11 +0000 (17:56 +0200)] 
Update after gnulib changed.

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

2 years agoUse xalloc module from gnulib.
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.

2 years agoUpdate after gnulib changed.
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 *'.

2 years agoUpdate after gnulib changed.
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.

2 years agoUpdate after gnulib changed.
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.

2 years agoUpdate after gnulib changed.
Bruno Haible [Sun, 11 Sep 2022 14:58:48 +0000 (16:58 +0200)] 
Update after gnulib changed.

2 years agoUpdate 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.

2 years agoUpdate after gnulib changed.
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.

2 years agoUpdate after gnulib changed.
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.

2 years agoUpdate to gnulib stable-202201 branch.
Bruno Haible [Sun, 11 Sep 2022 12:40:55 +0000 (14:40 +0200)] 
Update to gnulib stable-202201 branch.

2 years agobuild: Restore the ability to run "make check".
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.

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

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

2 years agoSupport creating shared libraries on MidnightBSD.
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.

2 years agoFix -export-symbols and -export-symbols-regex support on Solaris 11.3.
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.

2 years agoSwitch to autoconf-2.71.
Bruno Haible [Sun, 21 Feb 2021 01:28:40 +0000 (02:28 +0100)] 
Switch to autoconf-2.71.

* libtextstyle/autogen.sh: Update comments.

2 years agobuild: Allow building with Autoconf 2.70.
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.

2 years agobuild: Assume ANSI C declaration of 'setlocale'.
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.

2 years agobuild: Fix warnings emitted by autoconf-2.69d.
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.

2 years agobuild: Add support for clang on Windows.
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.

2 years agobuild: Modernize autoconf macros.
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.

2 years agoPrefer documented autoconf macro 'm4_if' over '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.

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

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

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

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

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

2 years agoFix build failure with bison 3.7. Revisit bison Makefile rules.
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.

2 years agoUpdate post-release steps.
Bruno Haible [Mon, 27 Jul 2020 01:22:39 +0000 (03:22 +0200)] 
Update post-release steps.

5 years agoRelease 0.21 v0.21
Bruno Haible [Mon, 27 Jul 2020 00:17:45 +0000 (02:17 +0200)] 
Release 0.21

5 years agoUpdate release steps.
Bruno Haible [Mon, 27 Jul 2020 00:16:27 +0000 (02:16 +0200)] 
Update release steps.

5 years agoPrepare for 0.21 release.
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.

5 years agoPO file changes from "make distcheck".
Bruno Haible [Mon, 27 Jul 2020 00:14:35 +0000 (02:14 +0200)] 
PO file changes from "make distcheck".

5 years agoUpdate translations (from the TP).
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.

5 years agoPrepare for 0.21 release.
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.

5 years agodoc: Tweak libgettextpo chapter.
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.

5 years agodoc: Make function declarations easier to read.
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.

5 years agodoc: Canonicalize source.
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.

5 years agodoc: Add Checking API
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.

5 years agodoc: Update po_message_t API (VI)
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.

5 years agodoc: Add format type API
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.

5 years agodoc: Update po_message_t API (V)
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.

5 years agodoc: Update po_message_t API (IV)
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.

5 years agodoc: Add po_filepos_t API
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.

5 years agodoc: Add Header Entry API
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.

5 years agodoc: Update po_message_t API (III)
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.

5 years agodoc: Update po_message_t API (II)
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.

5 years agodoc: Update po_message_t API (I)
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.