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

6 years agolibasprintf: Use a version of texi2html which is under a good license.
Bruno Haible [Sun, 7 Apr 2019 13:33:24 +0000 (15:33 +0200)] 
libasprintf: Use a version of texi2html which is under a good license.

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

* gettext-runtime/libasprintf/texi2html: Copied from texi2html-1.78, with
changes made in libunistring/build-aux/texi2html and then in
libtextstyle/build-aux/texi2html.
* gettext-runtime/libasprintf/fdl.texi: New file, copied from
gettext-tools/doc/fdl.texi.
* gettext-runtime/libasprintf/gpl.texi: New file, copied from
gnulib/doc/gpl-2.0.texi.
* gettext-runtime/libasprintf/lgpl.texi: New file, copied from
gnulib/doc/lgpl-2.1.texi.
* gettext-runtime/libasprintf/autosprintf.texi: Invoke @contents. Enable the
Top node during texi2html processing.
(Licenses): New appendix.
* gettext-runtime/libasprintf/Makefile.am (TEXINCLUDES): New variable.
(MAKEINFOFLAGS): Use it.
(autosprintf_TEXINFOS): New variable.
(autosprintf_all.html): Depend on it. Use texi2html options -no-sec-nav -no-menu
-toc-links.

6 years agolibtextstyle: Tweak style of HTML documentation.
Bruno Haible [Sun, 7 Apr 2019 13:19:20 +0000 (15:19 +0200)] 
libtextstyle: Tweak style of HTML documentation.

* libtextstyle/build-aux/texi2html (BIG_RULE): Set to empty.

6 years agoAdd copyright notices in several files.
Bruno Haible [Sun, 7 Apr 2019 11:48:11 +0000 (13:48 +0200)] 
Add copyright notices in several files.

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

* gettext-tools/doc/FAQ.html: Fix copyright notice added on 2019-04-04.
* gettext-tools/doc/tutorial.html: Add GFDL copyright notice. Permission given
by Gora Mohanty <gora_mohanty@yahoo.co.in> through private email on 2004-11-13.
* gettext-tools/po/Makevars.template: Don't mention the file name, since this
file is meant to be copied and renamed to 'Makevars'.
* gettext-tools/examples/hello-*/po/Makevars: Add all-permissive copyright
notice.
* gettext-tools/examples/hello-c-gnome3/hello.ui: Add public-domain notice.
* gettext-tools/examples/hello-c-gnome3/hello.gresource.xml: Likewise.
* gettext-tools/examples/hello-c-gnome3/hello.gschema.xml: Likewise.
* gettext-tools/examples/hello-java-awt/m4/TestAWT.java: Likewise.
* gettext-tools/examples/hello-java-swing/m4/TestAWT.java: Likewise.
* gettext-tools/examples/hello-java-qtjambi/m4/Test15.java: Likewise.
* gettext-tools/examples/check-examples: Add GPLv3+ copyright notice.
* gettext-tools/examples/installpaths.in: Likewise.
* gettext-tools/examples/po/mmsmallpo.sh: Likewise.
* gettext-tools/examples/po/xsmallpot.sh: Likewise.
* gettext-tools/its/glade.loc: Likewise.
* gettext-tools/its/gsettings.loc: Likewise.
* gettext-tools/its/metainfo.its: Likewise.
* gettext-tools/its/metainfo.loc: Likewise.
* gettext-tools/src/filters.h: Add missing copyright line.

6 years agoReduce ABOUT-NLS to just a hyperlink.
Bruno Haible [Thu, 4 Apr 2019 02:20:32 +0000 (04:20 +0200)] 
Reduce ABOUT-NLS to just a hyperlink.

The common way to distribute information, nowadays, is through the web,
not by including files in tarballs of packages.  Also, the current
contents of ABOUT-NLS is outdated.

Reported by Samuel Thibault in <https://savannah.gnu.org/bugs/?54809>.

* gettext-runtime/ABOUT-NLS: Replace text with a reference to the online
documentation.
* gettext-runtime/Makefile.am (MAKEINFO): Remove variable.
(all-local, ABOUT-NLS): Remove rules.
* gettext-tools/src/msginit.c (main): Point the user to the online documentation
instead of the ABOUT-NLS file.
* gettext-tools/doc/gettext.texi (Installing Localizations, Prerequisites,
Makefile): Don't mention ABOUT-NLS any more.
* gettext-tools/doc/gettextize.texi: Update description of ABOUT-NLS.
* gettext-tools/doc/FAQ.html: Refer to the online documentation instead of the
ABOUT-NLS file.
* README: Don't mention ABOUT-NLS any more.

6 years agodoc: Include the contents of ABOUT-NLS in the documentation.
Bruno Haible [Wed, 3 Apr 2019 23:52:58 +0000 (01:52 +0200)] 
doc: Include the contents of ABOUT-NLS in the documentation.

* gettext-runtime/doc/nls.texi (The original ABOUT-NLS): Renamed from
'Translation Intro'. Turn into a section. Mark section as historical.
* gettext-tools/doc/gettext.texi: Include nls.texi.
* gettext-tools/doc/Makefile.am (gettext_TEXINFOS): Add nls.texi and
matrix.texi.

6 years agodoc: Update ISO 639 list.
Bruno Haible [Wed, 3 Apr 2019 23:49:54 +0000 (01:49 +0200)] 
doc: Update ISO 639 list.

* gettext-tools/doc/iso-639.texi: Regenerated.

6 years agoAdd copyright notices in several files.
Bruno Haible [Wed, 3 Apr 2019 23:17:33 +0000 (01:17 +0200)] 
Add copyright notices in several files.

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

* gettext-runtime/m4/Makefile.am: Add GPL copyright notice.
* gettext-tools/m4/Makefile.am: Likewise.
* gettext-tools/doc/iso-639.sed: Likewise.
* gettext-tools/doc/iso-639-2.sed: Likewise.
* gettext-tools/doc/iso-3166.sed: Likewise.
* gettext-tools/its/glade1.its: Likewise.
* gettext-tools/its/glade2.its: Likewise.
* gettext-tools/its/gsettings.its: Likewise.
* gettext-tools/its/gtkbuilder.its: Likewise.
* gettext-tools/misc/cvsuser.c: Likewise.
* gettext-tools/projects/team-address: Likewise.
* gettext-tools/projects/GNOME/team-address: Likewise.
* gettext-tools/projects/GNOME/trigger: Likewise.
* gettext-tools/projects/KDE/team-address: Likewise.
* gettext-tools/projects/KDE/trigger: Likewise.
* gettext-tools/projects/TP/team-address: Likewise.
* windows/windres-options: Likewise.
* gettext-runtime/po/insert-header.sin: Add copyright notice, based on the one
in Rules-quot.
* gettext-tools/doc/FAQ.html: Add copyright notice, suitable for documentation.

6 years agoMention the support for Java 11.
Bruno Haible [Wed, 3 Apr 2019 02:04:06 +0000 (04:04 +0200)] 
Mention the support for Java 11.

This support was added in gnulib on 2018-09-26.

* NEWS: Mention the support for Java 11.

6 years agolibtextstyle: Clean up old TODO item.
Bruno Haible [Tue, 2 Apr 2019 22:02:47 +0000 (00:02 +0200)] 
libtextstyle: Clean up old TODO item.

* libtextstyle/Makefile.am: Remove obsolete comment.

6 years agolibtextstyle: Distribute two more files.
Bruno Haible [Tue, 2 Apr 2019 20:04:25 +0000 (22:04 +0200)] 
libtextstyle: Distribute two more files.

* libtextstyle/Makefile.am (EXTRA_DIST): Add
gnulib-local/lib/libxml/xmlversion.in.h.diff, gnulib-local/modules/libxml.diff.

6 years agobuild: Move local gnulib modules that are only needed in libtextstyle.
Bruno Haible [Tue, 2 Apr 2019 16:33:26 +0000 (18:33 +0200)] 
build: Move local gnulib modules that are only needed in libtextstyle.

* libtextstyle/gnulib-local/*: Many files moved to here from gnulib-local/*.
* libtextstyle/gnulib-local/modules/libglib: Apply diff.
* libtextstyle/gnulib-local/modules/libglib.diff: Remove file.
* libtextstyle/gnulib-local/modules/libcroco: Apply diff.
* libtextstyle/gnulib-local/modules/libcroco.diff: Remove file.
* libtextstyle/gnulib-local/modules/term-styled-ostream: Apply diff.
* libtextstyle/gnulib-local/modules/term-styled-ostream.diff: Remove file.
* libtextstyle/gnulib-local/modules/html-styled-ostream: Apply diff.
* libtextstyle/gnulib-local/modules/html-styled-ostream.diff: Remove file.
* libtextstyle/gnulib-local/modules/noop-styled-ostream: Apply diff.
* libtextstyle/gnulib-local/modules/noop-styled-ostream.diff: Remove file.
* libtextstyle/woe32dll/c++term-styled-ostream.cc: Remove file.
* libtextstyle/woe32dll/c++html-styled-ostream.cc: Remove file.
* libtextstyle/woe32dll/c++noop-styled-ostream.cc: Remove file.
* gettext-tools/woe32dll/c++term-styled-ostream.cc: Remove file.
* gettext-tools/woe32dll/c++html-styled-ostream.cc: Remove file.
* gnulib-local/Makefile.am (EXTRA_DIST): Remove the files that were moved away.
* libtextstyle/Makefile.am (EXTRA_DIST): Add the files that were moved to
libtextstyle/gnulib-local/. Add build-aux/moopp.
* Makefile.am (EXTRA_DIST): Remove build-aux/moopp.

6 years agolibgettextpo: Avoid closing a FILE stream when it will still be used.
Bruno Haible [Tue, 2 Apr 2019 19:14:32 +0000 (21:14 +0200)] 
libgettextpo: Avoid closing a FILE stream when it will still be used.

* gettext-tools/src/write-catalog.c (msgdomain_list_print): Don't call
ostream_free if we're using the dummy <textstyle.h>.

6 years agolibgettextpo: Use a dummy replacement for libtextstyle.
Bruno Haible [Tue, 2 Apr 2019 15:53:08 +0000 (17:53 +0200)] 
libgettextpo: Use a dummy replacement for libtextstyle.

* gnulib-local/modules/libtextstyle-dummy: New file, based on gnulib's
modules/libtextstyle-optional.
* gnulib-local/Makefile.am (EXTRA_DIST): Add it.
* autogen.sh (GNULIB_MODULES_LIBGETTEXTPO): Add libtextstyle-dummy. Remove
file-ostream, ostream.
* gettext-tools/src/write-catalog.h: Include <textstyle.h> always.
* gettext-tools/src/write-catalog.c: Likewise.
* gettext-tools/src/write-po.h: Likewise.
* gettext-tools/src/write-po.c: Likewise.

6 years agoLink the msg* and xgettext programs against libtextstyle.
Bruno Haible [Tue, 2 Apr 2019 15:53:00 +0000 (17:53 +0200)] 
Link the msg* and xgettext programs against libtextstyle.

* libtextstyle/autogen.sh: Don't generate lib/color.h and lib/color.c.
* libtextstyle/lib/color.h: Moved to here from gettext-tools/src/color.h.
* libtextstyle/lib/color.c: Moved to here from gettext-tools/src/color.c.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Remove fd-ostream, file-ostream,
html-styled-ostream, ostream, styled-ostream, term-styled-ostream. Add libxml.
* gettext-tools/gnulib-lib/Makefile.am (MOOPPFLAGS): Remove customization.
* gettext-tools/gnulib-tests/Makefile.am (test_term_ostream_LDADD): Remove
customization.
* gettext-tools/src/Makefile.am (noinst_HEADERS): Remove color.h.
(AM_CPPFLAGS): Add -I directives to the libtextstyle/lib directory.
(libgettextsrc_la_SOURCES): Remove color.c.
(libgettextsrc_la_LDFLAGS): Link with libtextstyle.la.
* gettext-tools/src/FILES: Update.
* gettext-tools/src/write-catalog.h: Include <textstyle.h> instead of ostream.h.
* gettext-tools/src/write-catalog.c: Include <textstyle.h> instead of color.h
and *-ostream.h.
(msgdomain_list_print): Use styled_ostream_create and
noop_styled_ostream_create.
* gettext-tools/src/write-po.h: Include <textstyle.h> instead of ostream.h.
* gettext-tools/src/write-po.c: Include <textstyle.h> instead of *-ostream.h.
(is_stylable): Remove function.
(begin_css_class, end_css_class): Update. Mark as inline.
* gettext-tools/src/write-properties.c: Include <textstyle.h> instead of
ostream.h.
* gettext-tools/src/write-stringtable.c: Likewise.
* gettext-tools/src/msgattrib.c: Include <textstyle.h> instead of color.h.
* gettext-tools/src/msgcat.c: Likewise.
* gettext-tools/src/msgcomm.c: Likewise.
* gettext-tools/src/msgconv.c: Likewise.
* gettext-tools/src/msgen.c: Likewise.
* gettext-tools/src/msgfilter.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/xgettext.c: Likewise.

6 years agolibtextstyle: Generalize fd-styled-ostream to noop-styled-ostream.
Bruno Haible [Tue, 2 Apr 2019 15:52:29 +0000 (17:52 +0200)] 
libtextstyle: Generalize fd-styled-ostream to noop-styled-ostream.

* gnulib-local/lib/noop-styled-ostream.oo.h: New file, based on
gnulib-local/lib/fd-styled-ostream.oo.h.
* gnulib-local/lib/noop-styled-ostream.oo.c: New file, based on
gnulib-local/lib/fd-styled-ostream.oo.c.
* gnulib-local/modules/noop-styled-ostream: New file, based on
gnulib-local/modules/fd-styled-ostream.
* gnulib-local/Makefile.am (EXTRA_DIST): Remove lib/fd-styled-ostream.oo.[hc]
and modules/fd-styled-ostream. Add lib/noop-styled-ostream.oo.[hc] and
modules/noop-styled-ostream.
* libtextstyle/woe32dll/c++noop-styled-ostream.cc: New file, based on
libtextstyle/woe32dll/c++fd-styled-ostream.cc.
* libtextstyle/gnulib-local/modules/noop-styled-ostream.diff: New file, based
on libtextstyle/gnulib-local/modules/fd-styled-ostream.diff.
* gnulib-local/lib/fd-styled-ostream.oo.h: Remove file.
* gnulib-local/lib/fd-styled-ostream.oo.c: Remove file.
* gnulib-local/modules/fd-styled-ostream: Remove file.
* libtextstyle/woe32dll/c++fd-styled-ostream.cc: Remove file.
* libtextstyle/gnulib-local/modules/fd-styled-ostream.diff: Remove file.
* libtextstyle/autogen.sh (GNULIB_MODULES): Add noop-styled-ostream. Remove
fd-styled-ostream.
* libtextstyle/lib/misc.c: Include noop-styled-ostream.h, fd-ostream.h.
(styled_ostream_create): Call fd_ostream_create and noop_styled_ostream_create
instead of fd_styled_ostream_create.
* libtextstyle/lib/textstyle.h (noop_styled_ostream_t): New type.
(noop_styled_ostream_*): New declarations.
* libtextstyle/doc/libtextstyle.texi (The noop_styled_ostream class): New
subsection.

6 years agobuild: Build and install libtextstyle.
Bruno Haible [Tue, 2 Apr 2019 15:52:20 +0000 (17:52 +0200)] 
build: Build and install libtextstyle.

* autogen.sh: Recurse into libtextstyle directory.
* configure.ac: Likewise.
* Makefile.am (SUBDIRS): Add libtextstyle.
* DEPENDENCIES: Mention that libiconv and ncurses are also used by libtextstyle.
* PACKAGING: Recommend to ship libtextstyle as a third binary package.
* NEWS: Mention that libtextstyle is installed.

6 years agobuild: Separate git operations from build operations.
Bruno Haible [Tue, 2 Apr 2019 15:51:13 +0000 (17:51 +0200)] 
build: Separate git operations from build operations.

* gitsub.sh: New file, from gnulib.
* autogen.sh: Remove all git operations and the --no-git option. Look at the
GNULIB_SRCDIR environment variable. Ignore the GNULIB_TOOL environment variable.
* HACKING: Explain when to use gitsub.sh.

6 years agolibtextstyle: Bump version number.
Bruno Haible [Tue, 2 Apr 2019 13:54:24 +0000 (15:54 +0200)] 
libtextstyle: Bump version number.

6 years agodesktop: Fix whitespace handling around '='
Daiki Ueno [Mon, 1 Apr 2019 05:17:19 +0000 (07:17 +0200)] 
desktop: Fix whitespace handling around '='

While the spec only allows spaces before and after '=',
xgettext/msgfmt previously accepted all whitespaces including '\n'.
That was causing unwanted concatenation of desktop lines.

Reported by Bastien Nocera in:
https://lists.gnu.org/archive/html/bug-gettext/2019-03/msg00017.html

* gettext-tools/src/read-desktop.c (desktop_lex): Properly handle
space characters before and after '='.
* gettext-tools/tests/msgfmt-desktop-1: Add a test case.

6 years agolibtextstyle: Bump version number.
Bruno Haible [Mon, 1 Apr 2019 00:53:36 +0000 (02:53 +0200)] 
libtextstyle: Bump version number.

6 years agolibtextstyle: Add support for true-color terminals.
Bruno Haible [Sun, 31 Mar 2019 20:05:16 +0000 (22:05 +0200)] 
libtextstyle: Add support for true-color terminals.

* gnulib-local/lib/term-ostream.oo.c (colormodel_t): Add cm_xtermrgb.
(rgb_to_color_xtermrgb): New function.
(attributes_t): Extend the color fields to 25 bits.
(struct term_ostream): New fields active_attr_color, active_attr_bgcolor.
(out_color_change, out_bgcolor_change, term_ostream::rgb_to_color): Handle
cm_xtermrgb.
(out_attr_change): Set also active_attr_color, active_attr_bgcolor.
(async_set_attributes_from_default): Fetch also active_attr_color,
active_attr_bgcolor.
(term_ostream_create): Accept all $TERM values that end in -direct.
* libtextstyle/doc/libtextstyle.texi (Terminal emulators): Document the
prerequisites for true-color support.
* libtextstyle/NEWS: Mention the change.

6 years agomaint: Make code more "git diff"-friendly.
Bruno Haible [Sun, 31 Mar 2019 16:57:58 +0000 (18:57 +0200)] 
maint: Make code more "git diff"-friendly.

* gettext-runtime/src/envsubst.c: Prefer long lines to lines that start with a
non-whitespace character.
* gettext-tools/src/cldr-plurals.c: Likewise.
* gettext-tools/src/format.c: Likewise.
* gettext-tools/src/msgcmp.c: Likewise.
* gettext-tools/src/msgfmt.c: Likewise.
* gettext-tools/src/msggrep.c: Likewise.
* gettext-tools/src/msgl-cat.c: Likewise.
* gettext-tools/src/msgl-charset.c: Likewise.
* gettext-tools/src/msgl-check.c: Likewise.
* gettext-tools/src/msgl-iconv.c: Likewise.
* gettext-tools/src/msgmerge.c: Likewise.
* gettext-tools/src/po-lex.c: Likewise.
* gettext-tools/src/read-stringtable.c: Likewise.
* gettext-tools/src/recode-sr-latin.c: Likewise.
* gettext-tools/src/write-catalog.c: Likewise.
* gettext-tools/src/write-java.c: Likewise.
* gettext-tools/src/write-po.c: Likewise.
* gettext-tools/src/x-csharp.c: Likewise.
* gettext-tools/src/x-elisp.c: Likewise.
* gettext-tools/src/x-java.c: Likewise.
* gettext-tools/src/x-javascript.c: Likewise.
* gettext-tools/src/x-librep.c: Likewise.
* gettext-tools/src/x-lisp.c: Likewise.
* gettext-tools/src/x-perl.c: Likewise.
* gettext-tools/src/x-python.c: Likewise.
* gettext-tools/src/x-scheme.c: Likewise.
* gettext-tools/src/x-sh.c: Likewise.
* gettext-tools/src/x-tcl.c: Likewise.
* gettext-tools/src/x-vala.c: Likewise.
* gettext-tools/src/xg-encoding.c: Likewise.
* gettext-tools/src/xgettext.c: Likewise.

6 years agolibtextstyle: Improve documentation regarding the TERM value.
Bruno Haible [Sun, 31 Mar 2019 14:55:38 +0000 (16:55 +0200)] 
libtextstyle: Improve documentation regarding the TERM value.

* libtextstyle/doc/libtextstyle.texi (The TERM variable): Many more details.
(Terminal emulators, Consoles): New subsections.

6 years agolibtextstyle: Support for terminal types with 256 colors.
Bruno Haible [Sun, 31 Mar 2019 14:50:40 +0000 (16:50 +0200)] 
libtextstyle: Support for terminal types with 256 colors.

* gnulib-local/lib/term-ostream.oo.c (term_ostream_create): Accept all $TERM
values that end in -16color or -256 color (such as Eterm-256color,
mlterm-256color, or putty-256color).
* libtextstyle/NEWS: Mention the change.

6 years agopo-mode: Enable highlighting of #, lines.
Takesi Ayanokoji [Sat, 30 Mar 2019 13:30:13 +0000 (14:30 +0100)] 
po-mode: Enable highlighting of #, lines.

* gettext-tools/emacs/po-mode.el (po-font-lock-keywords): Add rule for #, lines.

6 years agopo-mode: Remove support for Emacs versions < 22.
Bruno Haible [Sat, 30 Mar 2019 13:23:41 +0000 (14:23 +0100)] 
po-mode: Remove support for Emacs versions < 22.

Emacs 22 is the oldest version still in use, see
<https://repology.org/project/emacs/versions>.

* gettext-tools/emacs/po-compat.el: Remove conditional code for Emacs < 22.
* gettext-tools/emacs/po-mode.el: Likewise.
(po-rehighlight): Remove function.
(po-check-all-pending-edits, po-check-for-pending-edit): Update.
* gettext-tools/emacs/start-po.el: Update comment.

6 years agopo-mode: Remove support for XEmacs.
Bruno Haible [Sat, 30 Mar 2019 12:00:11 +0000 (13:00 +0100)] 
po-mode: Remove support for XEmacs.

* gettext-tools/emacs/po-mode.el: Remove conditional code for XEmacs.
* gettext-tools/emacs/po-compat.el: Likwise.

6 years agobuild: Move the Emacs package sources to subdirectory gettext-tools/emacs/.
Bruno Haible [Sat, 30 Mar 2019 10:45:00 +0000 (11:45 +0100)] 
build: Move the Emacs package sources to subdirectory gettext-tools/emacs/.

* gettext-tools/emacs/*.el: Moved here from gettext-tools/misc/.
* gettext-tools/emacs/Makefile.am: New file, based on
gettext-tools/misc/Makefile.am.
* gettext-tools/misc/Makefile.am (lisp_LISP): Remove variable.
* gettext-tools/configure.ac (AC_CONFIG_FILES): Add emacs/Makefile.
* gettext-tools/Makefile.am (SUBDIRS): Add 'emacs'.

6 years agoUpdate after gnulib changed.
Bruno Haible [Sat, 30 Mar 2019 11:05:10 +0000 (12:05 +0100)] 
Update after gnulib changed.

6 years agolibtextstyle: Add support for Windows consoles.
Bruno Haible [Wed, 27 Mar 2019 20:38:20 +0000 (21:38 +0100)] 
libtextstyle: Add support for Windows consoles.

* gnulib-local/lib/term-ostream.oo.c: Include <windows.h>, msvc-nothrow.h,
<io.h>.
(struct term_ostream): Add fields handle, is_windows_console,
default_console_attributes, current_console_attributes.
(out_color_change, out_bgcolor_change, out_underline_change, out_attr_change,
restore, async_restore, async_set_attributes_from_default, term_ostream::flush):
Add separate code path for Windows consoles.
(term_ostream_create): On Windows, test whether the handle refers to a console,
and initialize the new fields.
* gnulib-local/modules/term-ostream (Depends-on): Add msvc-nothrow.
* libtextstyle/NEWS: Mention it.

6 years agolibtextstyle: Make the SIGCONT handler work more reliably.
Bruno Haible [Wed, 27 Mar 2019 20:38:14 +0000 (21:38 +0100)] 
libtextstyle: Make the SIGCONT handler work more reliably.

* gnulib-local/lib/term-ostream.oo.c (out_attr_change): Modify active_attr
before emitting the escape sequences, not afterwards.
* libtextstyle/NEWS: Mention the fix.

6 years agolibtextstyle: Mention fixes.
Bruno Haible [Wed, 27 Mar 2019 20:38:08 +0000 (21:38 +0100)] 
libtextstyle: Mention fixes.

* libtextstyle/NEWS: Mention two fixes done in the gnulib module
'term-style-control'.

6 years agolibtextstyle: Small fix for last commit.
Bruno Haible [Wed, 27 Mar 2019 20:38:02 +0000 (21:38 +0100)] 
libtextstyle: Small fix for last commit.

* gnulib-local/lib/term-ostream.oo.c (struct term_ostream): Mark fd volatile.

6 years agoUpdate to newest gnulib.
Bruno Haible [Wed, 27 Mar 2019 20:23:15 +0000 (21:23 +0100)] 
Update to newest gnulib.

6 years agoits: Simplify code.
Bruno Haible [Wed, 27 Mar 2019 20:36:14 +0000 (21:36 +0100)] 
its: Simplify code.

Suggested by Daiki Ueno.

* gettext-tools/src/its.c (normalize_whitespace): Remove local variable.