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

6 years agoFix gcc warnings on mingw.
Bruno Haible [Sat, 27 Apr 2019 02:48:00 +0000 (04:48 +0200)] 
Fix gcc warnings on mingw.

* gettext-tools/src/msgexec.c (close): Undefine before redefinition.
* gettext-tools/src/msggrep.c (close): Likewise.

6 years agoFix a gcc warning (regression from 2017-05-04).
Bruno Haible [Sat, 27 Apr 2019 02:44:08 +0000 (04:44 +0200)] 
Fix a gcc warning (regression from 2017-05-04).

* gettext-tools/src/read-java.c (msgdomain_read_java): Remove unused variable.

6 years agosearch-path.c: Improve code style.
Bruno Haible [Sat, 27 Apr 2019 02:40:13 +0000 (04:40 +0200)] 
search-path.c: Improve code style.

* gettext-tools/src/search-path.h (get_search_path): Clarify memory allocation.
* gettext-tools/src/search-path.c (struct path_array_ty): Add comment.
(foreach_elements): Fix comment.
(get_search_path): Improve comments. Perform each getenv() only once. Reduce
scope of variables. Fix gcc warning.

6 years agolibxml: Fix width of fprintf argument on native Windows.
Bruno Haible [Sat, 27 Apr 2019 02:08:26 +0000 (04:08 +0200)] 
libxml: Fix width of fprintf argument on native Windows.

* gnulib-local/lib/libxml/timsort.h (TIM_SORT_RESIZE): Cast fprintf argument to
'unsigned long'.

6 years agointl: Fix a gcc warning.
Bruno Haible [Fri, 26 Apr 2019 22:44:10 +0000 (00:44 +0200)] 
intl: Fix a gcc warning.

* gettext-runtime/intl/langprefs.c (_nl_language_preferences_win32_95): Declare
data as BYTE array, not char array.

6 years agobuild: Fix build failure on mingw with --disable-shared --enable-relocatable.
Bruno Haible [Fri, 26 Apr 2019 18:07:26 +0000 (20:07 +0200)] 
build: Fix build failure on mingw with --disable-shared --enable-relocatable.

Reported by Michele Locati <michele@locati.it>
in <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00052.html>.

* gettext-runtime/intl/Makefile.am (AM_CPPFLAGS): Map 'relocate2' to a different
symbol.

6 years agoDocument the OUTPUT_CHARSET environment variable.
Bruno Haible [Thu, 25 Apr 2019 22:49:55 +0000 (00:49 +0200)] 
Document the OUTPUT_CHARSET environment variable.

Reported by Václav Slavík <vaclav@slavik.io>
via Michele Locati <michele@locati.it>.

* gettext-tools/doc/gettext.texi (Working in a Windows console): New section.

6 years agoUpdate translations (from the TP).
Bruno Haible [Sat, 13 Apr 2019 21:14:44 +0000 (23:14 +0200)] 
Update translations (from the TP).

* gettext-runtime/po/*.po: Update.
* gettext-runtime/po/LINGUAS: Add 'ast'.
* gettext-tools/po/*.po: Update.
* gettext-tools/examples/po/*.po: Update.
* gettext-tools/examples/po/LINGUAS: Add 'ta'.
* gettext-tools/examples/hello-*/po/LINGUAS: Likewise.
* gettext-tools/examples/Makefile.am (EXAMPLESPOFILES): Add ta.po.

6 years agoPrepare for 0.20 release.
Bruno Haible [Sat, 13 Apr 2019 20:58:49 +0000 (22:58 +0200)] 
Prepare for 0.20 release.

* gettext-runtime/intl/libgnuintl.in.h (LIBINTL_VERSION): Update.
* gettext-tools/libgettextpo/gettext-po.in.h (LIBGETTEXTPO_VERSION): Update.
* gettext-runtime/m4/gettext.m4: Bump version number in comment.
* gettext-runtime/m4/intl.m4: Likewise.
* gettext-runtime/m4/intlmacosx.m4: Likewise.
* gettext-runtime/m4/po.m4: Likewise.
(GETTEXT_MACRO_VERSION): Bump to 0.20.
* gettext-runtime/po/Makefile.in.in (GETTEXT_MACRO_VERSION): Likewise.
* gettext-runtime/intl/Makefile.am (LTV_*): Bump to 9:6:2.
* gettext-tools/libgettextpo/Makefile.am (LTV_*): Bump to 5:5:5.
* gettext-tools/configure.ac (ARCHIVE_VERSION): Set to 0.20.
* gettext-tools/misc/autopoint.in: Accept version 0.20.
* gettext-runtime/doc/matrix.texi: Update from TP.
* gettext-runtime/doc/nls.texi (STATUS): Update.
* gettext-runtime/src/envsubst.c (main): Update copyright year in --version
output.
* gettext-runtime/src/gettext.c (main): Likewise.
* gettext-runtime/src/ngettext.c (main): Likewise.
* gettext-tools/src/cldr-plurals.c (main): Likewise.
* gettext-tools/src/hostname.c (main): Likewise.
* gettext-tools/src/msgattrib.c (main): Likewise.
* gettext-tools/src/msgcat.c (main): Likewise.
* gettext-tools/src/msgcmp.c (main): Likewise.
* gettext-tools/src/msgcomm.c (main): Likewise.
* gettext-tools/src/msgconv.c (main): Likewise.
* gettext-tools/src/msgen.c (main): Likewise.
* gettext-tools/src/msgexec.c (main): Likewise.
* gettext-tools/src/msgfilter.c (main): Likewise.
* gettext-tools/src/msgfmt.c (main): Likewise.
* gettext-tools/src/msggrep.c (main): Likewise.
* gettext-tools/src/msginit.c (main): Likewise.
* gettext-tools/src/msgmerge.c (main): Likewise.
* gettext-tools/src/msgunfmt.c (main): Likewise.
* gettext-tools/src/msguniq.c (main): Likewise.
* gettext-tools/src/recode-sr-latin.c (main): Likewise.
* gettext-tools/src/urlget.c (main): Likewise.
* gettext-tools/src/xgettext.c (main): Likewise.
* gettext-runtime/src/gettext.sh.in (func_version): Update copyright year.
* gettext-tools/misc/convert-archive.in (func_version): Likewise.
* gettext-tools/misc/gettextize.in (func_version): Likewise.
* libtextstyle/version.sh: Use version number 0.20 here as well.
* gettext-runtime/NEWS: Mention changes (from main NEWS).
* libtextstyle/NEWS: Mention changes.

6 years agoautopoint: Reject AM_GNU_GETTEXT without 'external' for versions >= 0.20.
Bruno Haible [Sun, 14 Apr 2019 01:58:21 +0000 (03:58 +0200)] 
autopoint: Reject AM_GNU_GETTEXT without 'external' for versions >= 0.20.

* gettext-tools/misc/autopoint.in: Fail if AM_GNU_GETTEXT without 'external' is
specified with a gettext version >= 0.20.
* gettext-tools/tests/autopoint-2: Update. Add two more scenarios.
* gettext-tools/tests/autopoint-3: Don't test AM_GNU_GETTEXT([use-libtool]) nor
--with-included-gettext. Don't use libtoolize.

6 years agobuild: Fix Makefile.am formatting.
Bruno Haible [Sun, 14 Apr 2019 01:53:55 +0000 (03:53 +0200)] 
build: Fix Makefile.am formatting.

* gettext-runtime/man/Makefile.am: Start every indented line with a tab.

6 years agobuild: Don't fail copyright header check on archive.dir.tar.
Bruno Haible [Sat, 13 Apr 2019 22:01:57 +0000 (00:01 +0200)] 
build: Don't fail copyright header check on archive.dir.tar.

* check-copyright-headers (func_check_file): Succeed for the archive.dir.tar
file.

6 years agoUpdate to newest gnulib.
Bruno Haible [Sat, 13 Apr 2019 20:42:40 +0000 (22:42 +0200)] 
Update to newest gnulib.

6 years agocldr-plurals: Fix a test failure on IRIX 6.5.
Bruno Haible [Sat, 13 Apr 2019 13:09:17 +0000 (15:09 +0200)] 
cldr-plurals: Fix a test failure on IRIX 6.5.

* gettext-tools/src/cldr-plural-exp.c (cldr_plural_rule_list_print): Don't
assume that fprintf supports %zu.

6 years agobuild: Fix build failure when perl exists but not perl's Locale::gettext module.
Bruno Haible [Sat, 13 Apr 2019 12:48:34 +0000 (14:48 +0200)] 
build: Fix build failure when perl exists but not perl's Locale::gettext module.

* gettext-runtime/man/x-to-1.in: Remove file.
* gettext-tools/man/x-to-1.in: Remove file.
* autogen.sh: Copy x-to-1.in from gnulib.

6 years agobuild: Fix build failure with a preinstalled libxml (regression from 2019-04-02).
Bruno Haible [Sat, 13 Apr 2019 10:30:06 +0000 (12:30 +0200)] 
build: Fix build failure with a preinstalled libxml (regression from 2019-04-02).

* gettext-tools/src/Makefile.am (AM_CPPFLAGS): Remove -I options that point into
libtextstyle/lib.
(textstyle.h): New rule.
(BUILT_SOURCES, MOSTLYCLEANFILES): Add textstyle.h and textstyle/*.h.

6 years agobuild: Don't link libgettextlib and libgettextsrc against libgomp.
Bruno Haible [Sat, 13 Apr 2019 09:08:29 +0000 (11:08 +0200)] 
build: Don't link libgettextlib and libgettextsrc against libgomp.

* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add openmp-init. Remove openmp.
* gettext-tools/configure.ac: Invoke AC_OPENMP.

6 years agoUpdate to newest gnulib.
Bruno Haible [Sat, 13 Apr 2019 09:06:47 +0000 (11:06 +0200)] 
Update to newest gnulib.

6 years agomsgfmt: Fix another buffer overrun.
Bruno Haible [Fri, 12 Apr 2019 19:56:00 +0000 (21:56 +0200)] 
msgfmt: Fix another buffer overrun.

Reported and patch by Joshua Root <jmr@macports.org>
at <https://savannah.gnu.org/bugs/?56126>.

* gettext-tools/src/write-java.c (write_java_msgid): Allocate memory for the
trailing NUL byte as well.
* gettext-tools/src/write-csharp.c (write_csharp_msgid): Likewise.

6 years agobuild: Explicitly request some more gnulib modules.
Bruno Haible [Wed, 10 Apr 2019 22:40:32 +0000 (00:40 +0200)] 
build: Explicitly request some more gnulib modules.

* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add localtime, unsetenv.

6 years agobuild: Fix build failure on mingw (regression from 2019-04-02).
Bruno Haible [Wed, 10 Apr 2019 22:51:44 +0000 (00:51 +0200)] 
build: Fix build failure on mingw (regression from 2019-04-02).

* gettext-tools/woe32dll/gettextlib-exports.c: Remove
gl_array_list_implementation, styled_ostream_typeinfo.
* gettext-tools/woe32dll/gettextsrc-exports.c: Remove color_mode,
color_test_mode, style_file_name.
* autogen.sh: Don't import the gnulib array-list-tests and linkedhash-list-tests
modules.

6 years agobuild: Fix build failure on mingw (regression from 2019-04-02).
Bruno Haible [Wed, 10 Apr 2019 22:49:37 +0000 (00:49 +0200)] 
build: Fix build failure on mingw (regression from 2019-04-02).

* libtextstyle/autogen.sh: Pass a --macro-prefix option to gnulib-tool.
* libtextstyle/configure.ac: Update accordingly.

6 years agolibtextstyle: Fix build failure on mingw (regression from 2019-03-17).
Bruno Haible [Wed, 10 Apr 2019 22:46:51 +0000 (00:46 +0200)] 
libtextstyle: Fix build failure on mingw (regression from 2019-03-17).

* libtextstyle/lib/Makefile.am (config.h): Emit a line that ensures that
isatty.c defines the symbol 'libtextstyle_isatty', not 'isatty'.

6 years agobuild: Fix build failure on mingw.
Bruno Haible [Wed, 10 Apr 2019 22:42:53 +0000 (00:42 +0200)] 
build: Fix build failure on mingw.

For some reason, Automake puts a definition of CXXLD in
gettext-tools/src/Makefile.in but not in
gettext-tools/gnulib-lib/Makefile.in.

* gettext-tools/gnulib-lib/Makefile.am (CXXLD): Define.

6 years agomsgfmt: Fix a buffer overrun.
Bruno Haible [Wed, 10 Apr 2019 21:49:09 +0000 (23:49 +0200)] 
msgfmt: Fix a buffer overrun.

Reported by Tobi Schäfer at <https://trac.macports.org/ticket/58323>,
via Ryan Schmidt <@ryandesign.com> at <https://savannah.gnu.org/bugs/?56112>.
Patch proposed by Joshua Root.

* gettext-tools/src/write-java.c (msgid_hashcode): Allocate memory for the
trailing NUL byte as well.

6 years agoFix test failures on AIX 7.2.
Bruno Haible [Tue, 9 Apr 2019 19:11:00 +0000 (21:11 +0200)] 
Fix test failures on AIX 7.2.

* gettext-tools/tests/intl-thread-1-prg.c: Test HAVE_WORKING_USELOCALE instead
of HAVE_USELOCALE.
* gettext-tools/tests/intl-thread-2-prg.c: Likewise.
* gettext-tools/tests/intl-thread-3-prg.c: Likewise.

6 years agomsgmerge: Fix crash on 32-bit AIX 7.2.
Bruno Haible [Tue, 9 Apr 2019 19:09:38 +0000 (21:09 +0200)] 
msgmerge: Fix crash on 32-bit AIX 7.2.

* gettext-tools/src/msgmerge.c: Include <omp.h>.
(main): Invoke openmp_init().

6 years agoUpdate to newest gnulib.
Bruno Haible [Tue, 9 Apr 2019 19:06:31 +0000 (21:06 +0200)] 
Update to newest gnulib.

6 years agoMake sure that libintl.h declares the *wprintf overrides on Windows.
Bruno Haible [Mon, 8 Apr 2019 17:45:52 +0000 (19:45 +0200)] 
Make sure that libintl.h declares the *wprintf overrides on Windows.

* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Test for wprintf, not fwprintf.

6 years agoUpdate to newest gnulib.
Bruno Haible [Mon, 8 Apr 2019 09:02:18 +0000 (11:02 +0200)] 
Update to newest gnulib.

6 years agoautopoint: Don't risk failing because of user or system git configurations.
Bruno Haible [Mon, 8 Apr 2019 01:07:08 +0000 (03:07 +0200)] 
autopoint: Don't risk failing because of user or system git configurations.

Reported by Jamie Kirkpatrick <jkp@kirkconsulting.co.uk>
in <https://savannah.gnu.org/support/?107689>.

* gettext-tools/misc/autopoint.in: Set/unset environment variables, so that git
does not read the user's git configuration nor the system's git configuration.
* gettext-tools/misc/convert-archive.in: Likewise.

6 years agoxgettext: Recognize ECMAScript-262 6th edition template literals.
Bruno Haible [Sun, 7 Apr 2019 23:54:50 +0000 (01:54 +0200)] 
xgettext: Recognize ECMAScript-262 6th edition template literals.

Reported by Philip Chimento <philip.chimento@gmail.com>
in <https://savannah.gnu.org/bugs/index.php?50920>.

* gettext-tools/src/x-javascript.c (P7_TEMPLATE_START_OF_EXPRESSION): New macro.
(enum token_type_ty): Add token_type_template, token_type_ltemplate,
token_type_mtemplate, token_type_rtemplate.
(free_token): Treat token_type_template like token_type_string.
(phase7_getuc): Add support for backquote quote_char.
(brace_depth, template_literal_depth): New variables.
(phase5_get): Parse template literals.
(x_javascript_lex): Treat token_type_template like token_type_string. Handle the
combination of symbol followed by template.
(extract_balanced): Treat token_type_template like token_type_string, and
token_type_ltemplate, token_type_mtemplate, token_type_rtemplate like
token_type_other.
(extract_javascript): Initialize brace_depth, template_literal_depth.
* gettext-tools/tests/xgettext-javascript-7: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
* gettext-tools/doc/gettext.texi (JavaScript): Mention the template literal
syntax for strings.
* NEWS: Mention the improvement.

6 years agoxgettext: Make JavaScript parser more robust.
Bruno Haible [Sun, 7 Apr 2019 23:52:20 +0000 (01:52 +0200)] 
xgettext: Make JavaScript parser more robust.

* gettext-tools/src/x-javascript.c (extract_javascript): Initialize
inside_embedded_js_in_xml.

6 years agobuild: Verify that newly added files have an appropriate copyright notice.
Bruno Haible [Sun, 7 Apr 2019 16:56:57 +0000 (18:56 +0200)] 
build: Verify that newly added files have an appropriate copyright notice.

* check-copyright-headers: New file.
* Makefile.am (EXTRA_DIST): Add it.
(distcheck-hook): Run check-copyright-headers and fail if it fails.

6 years agodoc: Add copyright notices in several files.
Bruno Haible [Sun, 7 Apr 2019 14:53:38 +0000 (16:53 +0200)] 
doc: Add copyright notices in several files.

Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.

* gettext-runtime/doc/nls.texi: Add delegating copyright notice.
* gettext-runtime/doc/rt-*.texi: Likewise.
* gettext-tools/doc/autopoint.texi: Likewise.
* gettext-tools/doc/gettextize.texi: Likewise.
* gettext-tools/doc/msg*.texi: Likewise.
* gettext-tools/doc/xgettext.texi: Likewise.

6 years agobuild: Unify the three copies of texi2html.
Bruno Haible [Sun, 7 Apr 2019 13:46:28 +0000 (15:46 +0200)] 
build: Unify the three copies of texi2html.

* build-aux/texi2html: Moved to here from libtextstyle/build-aux/texi2html.
* libtextstyle/autogen.sh: Copy texi2html.
* gettext-runtime/libasprintf/texi2html: Remove file.
* gettext-runtime/libasprintf/Makefile.am (TEXI2HTML): Use build-aux/texi2html.
(EXTRA_DIST): Remove texi2html.
* gettext-tools/doc/texi2html: Remove file.
* gettext-tools/doc/Makefile.am (TEXI2HTML): Use build-aux/texi2html.
(EXTRA_DIST): Remove texi2html.
* Makefile.am (EXTRA_DIST): Add build-aux/texi2html.
(distcheck-hook): Update.

6 years agodoc: Use a version of texi2html which is under a good license.
Bruno Haible [Sun, 7 Apr 2019 13:38:54 +0000 (15:38 +0200)] 
doc: Use a version of texi2html which is under a good license.

Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.

* gettext-tools/doc/texi2html: Copied from texi2html-1.78, with changes made in
libunistring/build-aux/texi2html and then in libtextstyle/build-aux/texi2html.
* gettext-tools/doc/gettext.texi: Enable the Top node during texi2html
processing.
* gettext-tools/doc/Makefile.am (gettext.html): Use texi2html options
-no-sec-nav -no-menu -toc-links.
(gettext_toc.html): Likewise. Pull out generated files out of subdirectory.