]>
git.ipfire.org Git - thirdparty/gettext.git/log
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Bruno Haible [Mon, 13 Apr 2020 10:43:45 +0000 (12:43 +0200)]
libtextstyle: Update gitignore list.
* libtextstyle/.gitignore: Update.
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.
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.
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.
Bruno Haible [Sun, 5 Jan 2020 19:11:22 +0000 (20:11 +0100)]
Update 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Bruno Haible [Mon, 13 Apr 2020 08:00:22 +0000 (10:00 +0200)]
Update to the newest gnulib.
Bruno Haible [Sun, 12 May 2019 15:00:23 +0000 (17:00 +0200)]
Release 0.20.1
Bruno Haible [Sun, 12 May 2019 14:39:24 +0000 (16:39 +0200)]
Update translations (from the TP).
Bruno Haible [Sun, 12 May 2019 14:21:07 +0000 (16:21 +0200)]
Update release steps.
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.
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.
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.
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.
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.
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.
Bruno Haible [Fri, 10 May 2019 20:03:59 +0000 (22:03 +0200)]
Update to newest gnulib.
Bruno Haible [Wed, 8 May 2019 21:49:09 +0000 (23:49 +0200)]
Release 0.20
Bruno Haible [Wed, 8 May 2019 21:48:05 +0000 (23:48 +0200)]
Update release steps.
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.
Bruno Haible [Wed, 8 May 2019 19:24:38 +0000 (21:24 +0200)]
Update translations (from the TP).
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.
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.
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.
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.
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.
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.
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.
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.
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.
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".
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.
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.
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.
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.
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.
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.
Bruno Haible [Sun, 28 Apr 2019 09:36:29 +0000 (11:36 +0200)]
Update to newest gnulib.
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.
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.
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.
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.
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.
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".
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.
Bruno Haible [Sat, 27 Apr 2019 18:26:43 +0000 (20:26 +0200)]
Update after gnulib changed.
Bruno Haible [Sat, 27 Apr 2019 18:25:59 +0000 (20:25 +0200)]
Update to newest gnulib.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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'.
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.
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.
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.
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.
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.
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.
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.
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.
Bruno Haible [Sat, 13 Apr 2019 20:42:40 +0000 (22:42 +0200)]
Update to newest gnulib.
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.
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.
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.
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.
Bruno Haible [Sat, 13 Apr 2019 09:06:47 +0000 (11:06 +0200)]
Update to newest gnulib.
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.
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.
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.