]> git.ipfire.org Git - thirdparty/gettext.git/log
thirdparty/gettext.git
5 years agobuild: Avoid failing a configure test due to CFLAGS="-Werror".
Bruno Haible [Sat, 14 Sep 2019 11:30:24 +0000 (13:30 +0200)] 
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().

5 years agobuild: Add support for shallow-cloning of subdirectories.
Bruno Haible [Sun, 1 Sep 2019 15:51:31 +0000 (17:51 +0200)] 
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.

5 years agoxgettext: Assume that Python source files are in UTF-8 by default.
Bruno Haible [Sun, 25 Aug 2019 21:37:44 +0000 (23:37 +0200)] 
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.

5 years agodesktop: Small parser fix.
Bruno Haible [Mon, 13 Apr 2020 11:11:15 +0000 (13:11 +0200)] 
desktop: Small parser fix.

* gettext-tools/src/read-desktop.c (desktop_lex): Fix handling of control
characters in group names.

5 years agoautogen.sh: Make more reliable.
Bruno Haible [Sat, 24 Aug 2019 17:25:06 +0000 (19:25 +0200)] 
autogen.sh: Make more reliable.

* autogen.sh: Really bail out if gnulib-tool fails to copy config.{guess,sub}.

5 years agoxgettext: Handle newlines in Lua long bracket literal strings correctly.
Bruno Haible [Thu, 22 Aug 2019 14:36:59 +0000 (16:36 +0200)] 
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.

5 years agoxgettext: Recognize gettext -e invocations in shell parser.
Bruno Haible [Mon, 19 Aug 2019 08:52:36 +0000 (10:52 +0200)] 
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.

5 years agodoc: Fix documentation of gettext, ngettext programs.
Bruno Haible [Mon, 19 Aug 2019 08:24:30 +0000 (10:24 +0200)] 
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.

5 years agogettext, ngettext: Fix the expansion of '\\' and octal escape sequences.
Bruno Haible [Mon, 19 Aug 2019 00:16:43 +0000 (02:16 +0200)] 
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.

5 years agoxgettext: Fix parsing of escaped single-quote characters in shell parser.
Bruno Haible [Sun, 18 Aug 2019 23:34:34 +0000 (01:34 +0200)] 
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.

5 years agoxgettext: Fix endless loop in shell parser.
Bruno Haible [Sun, 18 Aug 2019 23:02:26 +0000 (01:02 +0200)] 
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.

5 years agobuild: Don't use an obsolete libtool macro.
Bruno Haible [Sun, 18 Aug 2019 15:06:49 +0000 (17:06 +0200)] 
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.

5 years agoDon't extract Icon values from .desktop files into POT files.
Bruno Haible [Sun, 18 Aug 2019 11:27:30 +0000 (13:27 +0200)] 
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.

5 years agomaint: Document how to deal with the build error in gettext-tools/examples/po.
Bruno Haible [Sun, 18 Aug 2019 08:59:40 +0000 (10:59 +0200)] 
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.

5 years agolibtextstyle: Fix VPATH build (regression from yesterday).
Bruno Haible [Sun, 18 Aug 2019 14:40:51 +0000 (16:40 +0200)] 
libtextstyle: Fix VPATH build (regression from yesterday).

* libtextstyle/lib/Makefile.am (AM_CPPFLAGS): Search also the glib subdirectory
of the build dir.

5 years agolibtextstyle: Upgrade to libcroco-0.6.13.
Bruno Haible [Tue, 21 May 2019 01:29:55 +0000 (03:29 +0200)] 
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.

5 years agoxgettext: Fix parsing of JavaScript template literals inside functions.
Bruno Haible [Sun, 28 Jul 2019 17:21:32 +0000 (19:21 +0200)] 
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.

5 years agoFix test failure on MSVC.
Bruno Haible [Sat, 20 Jul 2019 12:32:33 +0000 (14:32 +0200)] 
Fix test failure on MSVC.

* gettext-tools/tests/lang-c++: On MSVC, use <iostream>, not <iostream.h>.

5 years agobuild: Avoid warnings from bison versions >= 3.3.
Bruno Haible [Fri, 19 Jul 2019 21:23:06 +0000 (23:23 +0200)] 
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'.

5 years agolibtextstyle: Fix link error when compiled with GCC 3.3.x.
Bruno Haible [Wed, 17 Jul 2019 18:40:11 +0000 (20:40 +0200)] 
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.

5 years agointl: Don't export the glwthread* symbols from libintl on native Windows.
Bruno Haible [Sun, 7 Jul 2019 08:19:25 +0000 (10:19 +0200)] 
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.

5 years agobuild: Fix build errors with MSVC.
Bruno Haible [Thu, 4 Jul 2019 14:27:44 +0000 (16:27 +0200)] 
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.

5 years agobuild: Fix build error with MSVC.
Bruno Haible [Thu, 4 Jul 2019 14:27:41 +0000 (16:27 +0200)] 
build: Fix build error with MSVC.

* gettext-runtime/intl/Makefile.am (INTL_WINDOWS_LIBS): New variable.
(OTHER_LDFLAGS): Add it.

5 years agobuild: Fix build error with MSVC.
Bruno Haible [Thu, 4 Jul 2019 14:27:37 +0000 (16:27 +0200)] 
build: Fix build error with MSVC.

* gettext-runtime/intl/export.h (LIBINTL_DLL_EXPORTED): Define differently for
MSVC.

5 years agobuild: Fix build errors with MSVC.
Bruno Haible [Thu, 4 Jul 2019 14:27:33 +0000 (16:27 +0200)] 
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.

5 years agobuild: Avoid endless "config.status --recheck" loop (regression from yesterday).
Bruno Haible [Mon, 20 May 2019 00:28:24 +0000 (02:28 +0200)] 
build: Avoid endless "config.status --recheck" loop (regression from yesterday).

* gettext-tools/configure.ac: Use AC_MSG_WARN instead of AC_MSG_ERROR.

5 years agointl: Work around setlocale bug on Android 4.3.
Bruno Haible [Sun, 19 May 2019 22:25:51 +0000 (00:25 +0200)] 
intl: Work around setlocale bug on Android 4.3.

* gettext-runtime/intl/setlocale.c (setlocale_unixlike): New wrapper for
Android.

5 years agomsgmerge: Fix behaviour of --for-msgfmt on PO files with no translations.
Bruno Haible [Sun, 19 May 2019 11:10:06 +0000 (13:10 +0200)] 
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.

5 years agobuild: Restore the ability to build gettext-tools separately, part 2.
Bruno Haible [Sat, 18 May 2019 22:33:19 +0000 (00:33 +0200)] 
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.

5 years agobuild: Restore the ability to build gettext-tools separately, part 1.
Bruno Haible [Sat, 18 May 2019 21:33:06 +0000 (23:33 +0200)] 
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.

5 years agolibtextstyle: Complete commit from 2019-04-28.
Bruno Haible [Sat, 18 May 2019 20:33:43 +0000 (22:33 +0200)] 
libtextstyle: Complete commit from 2019-04-28.

* libtextstyle/Makefile.am (EXTRA_DIST): Add
test-term-ostream-xterm-freebsd-italic.out.

5 years agobuild: Avoid the use of mingw winpthreads for multithreading.
Bruno Haible [Sat, 18 May 2019 16:56:18 +0000 (18:56 +0200)] 
build: Avoid the use of mingw winpthreads for multithreading.

* gettext-runtime/configure.ac: Invoke gl_AVOID_WINPTHREAD.
* gettext-tools/configure.ac: Likewise.

5 years agobuild: Avoid trouble on mingw caused by mingw's *printf functions.
Bruno Haible [Sat, 18 May 2019 16:01:31 +0000 (18:01 +0200)] 
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.

5 years agolibasprintf: Avoid compilation error on mingw with -D__USE_MINGW_ANSI_STDIO=1.
Bruno Haible [Sat, 18 May 2019 15:25:10 +0000 (17:25 +0200)] 
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.

5 years agodoc: Don't mention trademarks.
Bruno Haible [Sat, 18 May 2019 10:05:30 +0000 (12:05 +0200)] 
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.

5 years agobuild: Fix "make install" failure with --disable-shared on glibc systems.
Bruno Haible [Sun, 12 May 2019 21:26:04 +0000 (23:26 +0200)] 
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.

5 years agolibtextstyle: Update gitignore list.
Bruno Haible [Mon, 13 Apr 2020 10:43:45 +0000 (12:43 +0200)] 
libtextstyle: Update gitignore list.

* libtextstyle/.gitignore: Update.

5 years agoThe gettext library is under LGPL 2.1, not 2.0.
Bruno Haible [Sat, 4 Apr 2020 15:28:55 +0000 (17:28 +0200)] 
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.

5 years agointl: Make autoconf macro more robust.
Bruno Haible [Fri, 19 Jul 2019 21:11:48 +0000 (23:11 +0200)] 
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.

5 years agoUpdate after gnulib changed.
Bruno Haible [Sat, 28 Mar 2020 19:03:44 +0000 (20:03 +0100)] 
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.

5 years agoUpdate after gnulib changed.
Bruno Haible [Sun, 5 Jan 2020 19:11:22 +0000 (20:11 +0100)] 
Update after gnulib changed.

5 years agoUpdate after gnulib changed.
Bruno Haible [Thu, 2 Jan 2020 13:54:32 +0000 (14:54 +0100)] 
Update after gnulib changed.

* gettext-runtime/intl/localcharset.c: Update from gnulib.
* gettext-runtime/intl/setlocale-lock.c: Likewise.

5 years agoUpdate after gnulib changed: Support building with --enable-threads=isoc.
Bruno Haible [Tue, 24 Dec 2019 16:37:22 +0000 (17:37 +0100)] 
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.

5 years agoUpdate after gnulib changed: Fix test failures on FreeBSD, NetBSD, macOS.
Bruno Haible [Tue, 24 Dec 2019 16:37:19 +0000 (17:37 +0100)] 
Update after gnulib changed: Fix test failures on FreeBSD, NetBSD, macOS.

* gettext-tools/tests/setlocale.c (setlocale): Undefine.

5 years agoUpdate after gnulib changed.
Bruno Haible [Tue, 24 Dec 2019 16:37:17 +0000 (17:37 +0100)] 
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.

5 years agoUpdate after gnulib changed.
Bruno Haible [Sun, 13 Oct 2019 18:25:46 +0000 (20:25 +0200)] 
Update after gnulib changed.

* gettext-runtime/intl/localcharset.c: Update from gnulib.
* gettext-runtime/intl/verify.h: Likewise.

5 years agoUpdate after gnulib changed.
Bruno Haible [Mon, 19 Aug 2019 02:10:38 +0000 (04:10 +0200)] 
Update after gnulib changed.

* gettext-runtime/intl/localcharset.c: Update from gnulib.
* gettext-runtime/intl/verify.h: Likewise.

5 years agoUpdate after gnulib changed.
Bruno Haible [Sat, 20 Jul 2019 12:25:21 +0000 (14:25 +0200)] 
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.

5 years agoUpdate after gnulib changed.
Bruno Haible [Wed, 3 Jul 2019 21:58:02 +0000 (23:58 +0200)] 
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.

5 years agoUpdate after gnulib changed.
Bruno Haible [Mon, 20 May 2019 19:26:30 +0000 (21:26 +0200)] 
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.

5 years agoUpdate after gnulib changed.
Bruno Haible [Mon, 20 May 2019 01:04:18 +0000 (03:04 +0200)] 
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.

5 years agoUpdate to the newest gnulib.
Bruno Haible [Mon, 13 Apr 2020 08:00:22 +0000 (10:00 +0200)] 
Update to the newest gnulib.

6 years agoRelease 0.20.1 v0.20.1
Bruno Haible [Sun, 12 May 2019 15:00:23 +0000 (17:00 +0200)] 
Release 0.20.1

6 years agoUpdate translations (from the TP).
Bruno Haible [Sun, 12 May 2019 14:39:24 +0000 (16:39 +0200)] 
Update translations (from the TP).

6 years agoUpdate release steps.
Bruno Haible [Sun, 12 May 2019 14:21:07 +0000 (16:21 +0200)] 
Update release steps.

6 years agointl: Fix wrong libtool versioning information.
Bruno Haible [Sun, 12 May 2019 13:59:24 +0000 (15:59 +0200)] 
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.

6 years agoUpdate bug reporting instructions.
Bruno Haible [Sat, 11 May 2019 22:21:16 +0000 (00:21 +0200)] 
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.

6 years agodoc: Recommend to avoid literal URLs in translatable strings.
Bruno Haible [Sat, 11 May 2019 19:55:33 +0000 (21:55 +0200)] 
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.

6 years agobuild: Fix build failure with parallel make.
Bruno Haible [Sat, 11 May 2019 01:26:56 +0000 (03:26 +0200)] 
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.

6 years agointl: Remove obsolete code.
Bruno Haible [Fri, 10 May 2019 20:08:54 +0000 (22:08 +0200)] 
intl: Remove obsolete code.

* gettext-runtime/intl/plural.y: Assume bison >= 2.0.

6 years agoUpdate after gnulib changed.
Bruno Haible [Fri, 10 May 2019 20:06:52 +0000 (22:06 +0200)] 
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.

6 years agoUpdate to newest gnulib.
Bruno Haible [Fri, 10 May 2019 20:03:59 +0000 (22:03 +0200)] 
Update to newest gnulib.

6 years agoRelease 0.20 v0.20
Bruno Haible [Wed, 8 May 2019 21:49:09 +0000 (23:49 +0200)] 
Release 0.20

6 years agoUpdate release steps.
Bruno Haible [Wed, 8 May 2019 21:48:05 +0000 (23:48 +0200)] 
Update release steps.

6 years agoexamples: Use infrastructure from gettext version 0.20.
Bruno Haible [Wed, 8 May 2019 20:01:33 +0000 (22:01 +0200)] 
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.

6 years agoUpdate translations (from the TP).
Bruno Haible [Wed, 8 May 2019 19:24:38 +0000 (21:24 +0200)] 
Update translations (from the TP).

6 years agoPrepare for 0.20 release.
Bruno Haible [Wed, 8 May 2019 19:22:22 +0000 (21:22 +0200)] 
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.

6 years agolibtextstyle: examples: Enable --color=html, for debuggability.
Bruno Haible [Mon, 6 May 2019 23:27:33 +0000 (01:27 +0200)] 
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.

6 years agoexamples: hello-c++-widgets: Update build infrastructure.
Bruno Haible [Sun, 5 May 2019 20:48:18 +0000 (22:48 +0200)] 
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.

6 years agoAdd unit test for libintl_version.
Bruno Haible [Sun, 5 May 2019 14:59:55 +0000 (16:59 +0200)] 
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.

6 years agomsginit: Avoid error messages when run on mingw.
Bruno Haible [Sun, 5 May 2019 14:03:16 +0000 (16:03 +0200)] 
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.

6 years agolibtextstyle: Document debugging tricks.
Bruno Haible [Sun, 5 May 2019 16:32:33 +0000 (18:32 +0200)] 
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.

6 years agomsginit: Fix invocation of helper programs on Windows.
Bruno Haible [Wed, 1 May 2019 20:58:28 +0000 (22:58 +0200)] 
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.

6 years agomsginit: Improvements for Cygwin and Android.
Bruno Haible [Wed, 1 May 2019 19:30:00 +0000 (21:30 +0200)] 
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.

6 years agolibtextstyle: Document one more terminal emulator.
Bruno Haible [Mon, 29 Apr 2019 07:23:33 +0000 (09:23 +0200)] 
libtextstyle: Document one more terminal emulator.

* libtextstyle/doc/libtextstyle.texi (Terminal emulators): Mention QTerminal.

6 years agoFix msginit-4 test failure on mingw.
Bruno Haible [Sun, 28 Apr 2019 20:39:06 +0000 (22:39 +0200)] 
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".

6 years agoIn the POT files, talk about the "GNU gettext package".
Bruno Haible [Sun, 28 Apr 2019 17:42:43 +0000 (19:42 +0200)] 
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.

6 years agopo: Make it possible to override xgettext options from Makefile.in.in.
Bruno Haible [Sun, 28 Apr 2019 17:24:37 +0000 (19:24 +0200)] 
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.

6 years agolibtextstyle: Fix test-term-ostream-xterm test failure on TrueOS and Trident.
Bruno Haible [Sun, 28 Apr 2019 11:35:04 +0000 (13:35 +0200)] 
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.

6 years agolibxml: Avoid gcc warnings.
Bruno Haible [Sun, 28 Apr 2019 11:49:53 +0000 (13:49 +0200)] 
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.

6 years agolibxml: Avoid build failure due to "implicit declaration of function".
Bruno Haible [Sun, 28 Apr 2019 12:30:05 +0000 (14:30 +0200)] 
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.

6 years agolibxml: Update included libxml2 to version 2.9.9.
Bruno Haible [Sun, 28 Apr 2019 11:13:46 +0000 (13:13 +0200)] 
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.

6 years agoUpdate to newest gnulib.
Bruno Haible [Sun, 28 Apr 2019 09:36:29 +0000 (11:36 +0200)] 
Update to newest gnulib.

6 years agoFix lang-csharp test failure on DragonFly BSD.
Bruno Haible [Sun, 28 Apr 2019 09:13:30 +0000 (11:13 +0200)] 
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.

6 years agoAdd comment about a test that may fail.
Bruno Haible [Sun, 28 Apr 2019 05:41:51 +0000 (07:41 +0200)] 
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.

6 years agoAdd comments about tests that fail on Alpine Linux.
Bruno Haible [Sat, 27 Apr 2019 23:00:42 +0000 (01:00 +0200)] 
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.

6 years agobuild: Remove duplicate copy of test-lock.
Bruno Haible [Sat, 27 Apr 2019 22:14:03 +0000 (00:14 +0200)] 
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.

6 years agobuild: Verify that intl/threadlib.c is in sync with gnulib.
Bruno Haible [Sat, 27 Apr 2019 22:12:31 +0000 (00:12 +0200)] 
build: Verify that intl/threadlib.c is in sync with gnulib.

* Makefile.am (distcheck-hook): Compare also intl/threadlib.c.

6 years agoFix autopoint-3 test failure on many platforms.
Bruno Haible [Sat, 27 Apr 2019 21:52:25 +0000 (23:52 +0200)] 
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".

6 years agoAvoid lang-guile test failure on many platforms.
Bruno Haible [Sat, 27 Apr 2019 21:04:05 +0000 (23:04 +0200)] 
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.

6 years agoUpdate after gnulib changed.
Bruno Haible [Sat, 27 Apr 2019 18:26:43 +0000 (20:26 +0200)] 
Update after gnulib changed.

6 years agoUpdate to newest gnulib.
Bruno Haible [Sat, 27 Apr 2019 18:25:59 +0000 (20:25 +0200)] 
Update to newest gnulib.

6 years agointl: Use the lookup optimization also on platforms without per-thread locales.
Bruno Haible [Sat, 27 Apr 2019 09:43:45 +0000 (11:43 +0200)] 
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.

6 years agopo-mode: Fix warning.
Bruno Haible [Sat, 27 Apr 2019 09:24:38 +0000 (11:24 +0200)] 
po-mode: Fix warning.

* gettext-tools/emacs/po-mode.el (entry-buffer): Declare as variable.

6 years agolibgettextpo: Don't rely on the undocumented variable libgettextpo_program_name.
Bruno Haible [Sat, 27 Apr 2019 09:00:35 +0000 (11:00 +0200)] 
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.

6 years agolibgettextpo: Fix crash when iconv() does not support the PO file's encoding.
Bruno Haible [Sat, 27 Apr 2019 08:04:11 +0000 (10:04 +0200)] 
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.

6 years agolibgettextpo: Fix gcc warnings.
Bruno Haible [Sat, 27 Apr 2019 03:09:59 +0000 (05:09 +0200)] 
libgettextpo: Fix gcc warnings.

* gettext-tools/src/write-po.c (begin_css_class, end_css_class): At least,
evaluate the classname argument.

6 years agoFix a gcc warning.
Bruno Haible [Sat, 27 Apr 2019 03:02:38 +0000 (05:02 +0200)] 
Fix a gcc warning.

* gettext-tools/src/urlget.c (java_exitcode, execute_it): Don't define if
USEJAVA is 0.

6 years agoFix a gcc warning on mingw.
Bruno Haible [Sat, 27 Apr 2019 02:58:24 +0000 (04:58 +0200)] 
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.

6 years agoFix gcc warnings on mingw and IRIX 6.5.
Bruno Haible [Sat, 27 Apr 2019 02:53:07 +0000 (04:53 +0200)] 
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.