]> git.ipfire.org Git - thirdparty/gettext.git/log
thirdparty/gettext.git
8 years agoFix crash of xgettext with --its option.
Bruno Haible [Fri, 9 Dec 2016 20:04:31 +0000 (21:04 +0100)] 
Fix crash of xgettext with --its option.

* gettext-tools/src/xgettext.c (main): Free contents of its_dirs only when it
was initialized. Fixes bug introduced on 2016-05-16.

8 years agointl: Fix that /@unixroot prefix is not working on OS/2 kLIBC
KO Myung-Hun [Thu, 1 Dec 2016 09:19:56 +0000 (18:19 +0900)] 
intl: Fix that /@unixroot prefix is not working on OS/2 kLIBC

OS/2 kLIBC has a feature to rewrite some path components. For example,
'/@unixroot' is replaced with a value of $UNIXROOT if it is.

So prepending a drive letter to the path starting with '/' makes the
path starting with '/@unixroot' to 'x:/@unixroot' which is unexpected.

This will breaks the behavior of some programs depending on /@unixroot
prefix.

* gettext-runtime/intl/bindtextdom.c (BINDTEXTDOMAIN): Do not touch
dirname if it is started with '/@unixroot'.
* gettext-runtime/intl/relocatable.c (relocate): Do not touch pathname
if it is started with '/@unixroot'.

8 years agoFix the last commit.
Bruno Haible [Mon, 5 Dec 2016 00:39:32 +0000 (01:39 +0100)] 
Fix the last commit.

* autogen.sh: Enable the code of the last commit. Force an update of
build-aux/ylwrap.

8 years agoAlways use the newest released copies of files brought in from Automake.
Bruno Haible [Sun, 4 Dec 2016 16:12:24 +0000 (17:12 +0100)] 
Always use the newest released copies of files brought in from Automake.

* autogen.sh: Make sure to get new versions of files brought in by automake.

8 years agoMake xgettext-its-2 test stronger.
Bruno Haible [Sun, 4 Dec 2016 13:02:14 +0000 (14:02 +0100)] 
Make xgettext-its-2 test stronger.

* gettext-tools/tests/xgettext-its-2: Set each environment variable only for
the scope of a single xgettext invocation.

8 years agoAvoid test failure in non-English locale.
Bruno Haible [Sun, 4 Dec 2016 12:52:46 +0000 (13:52 +0100)] 
Avoid test failure in non-English locale.

* gettext-tools/tests/xgettext-its-2: Set the environment variable LC_MESSAGES
when we want to check for an error message in English.

8 years agoFix an error message when gettextize if run with option -n.
Bruno Haible [Sun, 4 Dec 2016 12:17:59 +0000 (13:17 +0100)] 
Fix an error message when gettextize if run with option -n.

* gettext-tools/misc/gettextize.in: Consider the Makevars.template file at the
location where it is installed, not in $srcdir.

8 years agoTweak installation instructions for Windows.
Bruno Haible [Sun, 4 Dec 2016 12:22:45 +0000 (13:22 +0100)] 
Tweak installation instructions for Windows.

* README.windows: Fix the mingw32 PATH.

8 years agodoc: corrected argument numbers
Guido Flohr [Sat, 26 Nov 2016 09:36:17 +0000 (11:36 +0200)] 
doc: corrected argument numbers

8 years agoPerl supports pgettext() and similar functions
Guido Flohr [Fri, 25 Nov 2016 07:39:43 +0000 (09:39 +0200)] 
Perl supports pgettext() and similar functions

8 years agoxgettext-perl: detect question mark as operator
Guido Flohr [Thu, 24 Nov 2016 14:30:11 +0000 (16:30 +0200)] 
xgettext-perl: detect question mark as operator

After an explicit function call like "somefunc()" a question mark or
slash cannot be regex delimiters.

8 years agoUpdate installation instructions for Windows.
Bruno Haible [Wed, 23 Nov 2016 19:45:20 +0000 (20:45 +0100)] 
Update installation instructions for Windows.

* README.windows: Assume a 64-bit Windows. Explain both 32-bit and 64-bit
builds. Add instructions for the MS Visual C/C++ tool chain. Revamp instructions
for Cygwin.
* gettext-runtime/README.windows: Generic reference to top-level file.
* gettext-runtime/intl/README.windows: Likewise.
* gettext-runtime/libasprintf/README.windows: Likewise.
* gettext-tools/README.windows: Likewise.

8 years agoDrop the nickname "woe32".
Bruno Haible [Wed, 23 Nov 2016 19:33:14 +0000 (20:33 +0100)] 
Drop the nickname "woe32".

* README.windows: Renamed from README.woe32.
* Makefile.am (EXTRA_DIST): Update.
* gettext-runtime/README.windows: Renamed from gettext-runtime/README.woe32.
* gettext-runtime/Makefile.am (EXTRA_DIST): Update.
* gettext-runtime/intl/README.windows: Renamed from gettext-runtime/intl/README.woe32.
* gettext-runtime/intl/Makefile.in (DISTFILES.gettext): Update.
* gettext-runtime/libasprintf/README.windows: Renamed from gettext-runtime/libasprintf/README.woe32.
* gettext-runtime/libasprintf/Makefile.am (EXTRA_DIST): Update.
* gettext-tools/README.windows: Renamed from gettext-tools/README.woe32.
* gettext-tools/Makefile.am (EXTRA_DIST): Update.

8 years agointl: Fix compilation on a system without alloca
Daiki Ueno [Mon, 14 Nov 2016 12:27:58 +0000 (13:27 +0100)] 
intl: Fix compilation on a system without alloca

* gettext-runtime/intl/dcigettext.c (DCIGETTEXT): Fix typo 'tmp_dirname'
-> 'resolved_dirname'.  Reported by Egor Pugin in:
http://lists.gnu.org/archive/html/bug-gettext/2016-09/msg00008.html

9 years agodoc: Mention new bootstrap requirements
Daiki Ueno [Wed, 2 Nov 2016 04:24:34 +0000 (05:24 +0100)] 
doc: Mention new bootstrap requirements

* autogen.sh: Require automake >= 1.13.
* HACKING: Require automake >= 1.13, wget, and xz.
Reported by Karl-P. Richter and Bruno Haible in:
https://savannah.gnu.org/bugs/?49497

9 years agoUpdate iconv.m4 from Gnulib.
Bruno Haible [Mon, 24 Oct 2016 22:21:19 +0000 (00:21 +0200)] 
Update iconv.m4 from Gnulib.

* gettext-runtime/m4/iconv.m4: Update from Gnulib.

9 years agoAdd comments about the implementation of 'autosprintf::operator='.
Bruno Haible [Sun, 27 Dec 2015 00:03:56 +0000 (01:03 +0100)] 
Add comments about the implementation of 'autosprintf::operator='.

* gettext-runtime/libasprintf/autosprintf.in.h (autosprintf::operator=): Add
comments. Rename parameter.
* gettext-runtime/libasprintf/autosprintf.cc (autosprintf::operator=): Likewise.

9 years agoxgettext: Fix crash with *.po file input
Daiki Ueno [Thu, 15 Sep 2016 11:57:24 +0000 (13:57 +0200)] 
xgettext: Fix crash with *.po file input

When xgettext was given two *.po files with the same msgid_plural, it
crashed with double-free.  Problem reported by Davlet Panech in:
http://lists.gnu.org/archive/html/bug-gettext/2016-09/msg00001.html
* gettext-tools/src/po-gram-gen.y: Don't free msgid_pluralform after
calling do_callback_message, assuming that it takes ownership.
* gettext-tools/src/read-catalog.c (default_add_message): Free
msgid_plural after calling message_alloc.
* gettext-tools/tests/xgettext-po-2: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add new test.

9 years agoAdd autoload magic comments
Akinori MUSHA [Sat, 27 Aug 2016 14:59:36 +0000 (23:59 +0900)] 
Add autoload magic comments

9 years agoFix elisp package headers
Akinori MUSHA [Sat, 27 Aug 2016 14:56:29 +0000 (23:56 +0900)] 
Fix elisp package headers

9 years agogettextize: Don't add config.rpath to EXTRA_DIST
Daiki Ueno [Tue, 9 Aug 2016 07:32:00 +0000 (09:32 +0200)] 
gettextize: Don't add config.rpath to EXTRA_DIST

The file is automatically included in the distribution by Automake,
because of an AC_REQUIRE_AUX_FILE invocation.  Reported in:
http://savannah.gnu.org/bugs/?48729
* gettext-tools/misc/gettextize.in: Don't add config.rpath to
added_extradist.

9 years agopo-mode: Fix po-send-mail behaviour on Emacs 25
Daiki Ueno [Wed, 3 Aug 2016 12:10:13 +0000 (14:10 +0200)] 
po-mode: Fix po-send-mail behaviour on Emacs 25

* gettext-tools/misc/po-mode.el (po-send-mail): Don't rely on
region markers.
Reported by Göran Uddeborg in:
http://lists.gnu.org/archive/html/bug-gettext/2016-07/msg00027.html

9 years agoUpdate after gnulib changed
Daiki Ueno [Tue, 12 Jul 2016 03:15:25 +0000 (12:15 +0900)] 
Update after gnulib changed

9 years agoUpdate gnulib
Daiki Ueno [Tue, 12 Jul 2016 03:06:42 +0000 (12:06 +0900)] 
Update gnulib

9 years agoBetter description of GETTEXTCLDRDIR for msginit
Michele Locati [Mon, 11 Jul 2016 07:27:58 +0000 (09:27 +0200)] 
Better description of GETTEXTCLDRDIR for msginit

Let's explain better where the GETTEXTCLDRDIR should point to and where the
CLDR data could be retrieved.

9 years agoAdd support for msgmerge --previous
Stanislav Brabec [Fri, 1 Jul 2016 18:21:54 +0000 (20:21 +0200)] 
Add support for msgmerge --previous

msgmerge --previous is a very useful feature that makes adjusting of
translation much easier when small changes in the source code are done.
msgmerge supports it for 10 years, but it is not used by most projects,
as Makefile.in.in never added support for it.

Use msgmerge --previous as default on all systems with gettext >= 0.16.

9 years agognulib-local: Fix the last change
Daiki Ueno [Tue, 28 Jun 2016 09:18:21 +0000 (18:18 +0900)] 
gnulib-local: Fix the last change

* gnulib-local/Makefile.am (EXTRA_DIST): Remove generated files.

9 years agognulib-local: Add more files to distribution
Daiki Ueno [Tue, 28 Jun 2016 08:37:49 +0000 (17:37 +0900)] 
gnulib-local: Add more files to distribution

Problem reported by Xen.
* gnulib-local/Makefile.am (EXTRA_DIST): Regenerate.

9 years agobuild: Fix unintentional soname bump v0.19.8.1
Daiki Ueno [Sat, 11 Jun 2016 12:46:53 +0000 (21:46 +0900)] 
build: Fix unintentional soname bump

* gettext-runtime/intl/Makefile.in: Revert LTV_CURRENT and increment
LTV_REVISION.
* gettext-tools/libgettextpo/Makefile.am: Likewise.

9 years agoRelease 0.19.8 v0.19.8
Daiki Ueno [Thu, 9 Jun 2016 05:50:45 +0000 (14:50 +0900)] 
Release 0.19.8

9 years agoUpdate translations
Daiki Ueno [Tue, 7 Jun 2016 07:58:44 +0000 (16:58 +0900)] 
Update translations

* gettext-runtime/po/eo.po: Update from Felipe Castro <fefcas@gmail.com>
* gettext-runtime/po/hr.po: Update from Božidar Putanec <bozidarp@yahoo.com>
* gettext-runtime/po/sv.po: Update from Göran Uddeborg <goeran@uddeborg.se>
* gettext-tools/examples/po/eo.po: Update from Felipe Castro <fefcas@gmail.com>
* gettext-tools/examples/po/hr.po: Update from Božidar Putanec <bozidarp@yahoo.com>
* gettext-tools/examples/po/sv.po: Update from Göran Uddeborg <goeran@uddeborg.se>
* gettext-tools/po/bg.po: Update from Roumen Petrov <transl@roumenpetrov.info>
* gettext-tools/po/es.po: Update from Antonio Ceballos <aceballos@gmail.com>
* gettext-tools/po/fr.po: Update from Stéphane Aulery <lkppo@free.fr>
* gettext-tools/po/ja.po: Update from Masahito Yamaga <ma@yama-ga.com>
* gettext-tools/po/ko.po: Update from Changwoo Ryu <cwryu@debian.org>
* gettext-tools/po/nl.po: Update from Benno Schulenberg <benno@vertaalt.nl>
* gettext-tools/po/pl.po: Update from Rafał Maszkowski <rzm@icm.edu.pl>
* gettext-tools/po/sk.po: Update from Marcel Telka <marcel@telka.sk>
* gettext-tools/po/sr.po: Update from Мирослав Николић <miroslavnikolic@rocketmail.com>
* gettext-tools/po/sv.po: Update from Göran Uddeborg <goeran@uddeborg.se>
* gettext-tools/po/tr.po: Update from Nilgün Belma Bugüner <nilgun@buguner.name.tr>
* gettext-tools/po/uk.po: Update from Yuri Chornoivan <yurchor@ukr.net>
* gettext-tools/po/vi.po: Update from Trần Ngọc Quân <vnwildman@gmail.com>

9 years agoUpdate matrix
Daiki Ueno [Tue, 7 Jun 2016 07:44:23 +0000 (16:44 +0900)] 
Update matrix

9 years agoNEWS: Fix release date of 0.19.8
Daiki Ueno [Mon, 30 May 2016 03:13:03 +0000 (12:13 +0900)] 
NEWS: Fix release date of 0.19.8

9 years agoPrepare for 0.19.8
Daiki Ueno [Mon, 30 May 2016 03:10:54 +0000 (12:10 +0900)] 
Prepare for 0.19.8

9 years agoTHANKS: Update
Daiki Ueno [Thu, 9 Jun 2016 05:49:41 +0000 (14:49 +0900)] 
THANKS: Update

9 years agognulib-local: Work around regcomp.c compile error
Daiki Ueno [Wed, 8 Jun 2016 08:15:26 +0000 (17:15 +0900)] 
gnulib-local: Work around regcomp.c compile error

* gnulib-local/Makefile.am (EXTRA_DIST): Add lib/regcomp.c.diff.
* gnulib-local/lib/regcomp.c.diff: New file, partially revert Gnulib
commit f97745b0.

9 years agotests: Use Exit instead of exit if init.sh is used
Daiki Ueno [Wed, 8 Jun 2016 06:27:59 +0000 (15:27 +0900)] 
tests: Use Exit instead of exit if init.sh is used

* gettext-tools/tests/*: Use Exit instead of exit, as suggested by
init.sh.

9 years agobuild: Create intl/ChangeLog
Daiki Ueno [Tue, 7 Jun 2016 09:23:22 +0000 (18:23 +0900)] 
build: Create intl/ChangeLog

* autogen.sh: Create an empty ChangeLog for gettext-runtime/intl, which
is necessary when running "make dist" from the top level directory.

9 years agobuild: Simplify placeholder ChangeLog creation
Daiki Ueno [Thu, 2 Jun 2016 07:27:46 +0000 (16:27 +0900)] 
build: Simplify placeholder ChangeLog creation

* autogen.sh: Use empty ChangeLog for placeholder.  Bail out if any
error occurs in autoreconf phase.

9 years agomaint: Update release steps
Daiki Ueno [Thu, 2 Jun 2016 03:19:20 +0000 (12:19 +0900)] 
maint: Update release steps

9 years agotests: Check invalid input in sentence-1-prg
Daiki Ueno [Wed, 1 Jun 2016 06:54:42 +0000 (15:54 +0900)] 
tests: Check invalid input in sentence-1-prg

* gettext-tools/tests/sentence-1-prg.c (main): Check input buffer
overflow, while it is not possible with the current test case.

9 years agotests: Fix test data for sentence-1
Daiki Ueno [Wed, 1 Jun 2016 02:44:33 +0000 (11:44 +0900)] 
tests: Fix test data for sentence-1

* gettext-tools/tests/sentence-1: Use NO-BREAK SPACE instead of
IDEOGRAPHIC SPACE.

9 years agotests: Fix location of valgrind suppression file
Daiki Ueno [Tue, 31 May 2016 10:12:03 +0000 (19:12 +0900)] 
tests: Fix location of valgrind suppression file

* gettext-tools/tests/Makefile.am (CHECKER): Use $(abs_srcdir) instead
of $(srcdir).

9 years agotests: Turn sentence test into a shell script
Daiki Ueno [Tue, 31 May 2016 07:05:24 +0000 (16:05 +0900)] 
tests: Turn sentence test into a shell script

For consistency with other tests.  Also it fixes a test failure when
built with --disable-shared, since LOG_COMPILER set to $(SHELL) doesn't
recognize binary executable.
* gettext-tools/tests/Makefile.am (TESTS): Rename 'sentence' to
'sentence-1'.
(check_PROGRAMS): Rename 'sentence' to 'sentence-1-prg'.
(sentence_1_prg_SOURCES): Rename from 'sentence_SOURCES'.
(sentence_1_prg_CPPFLAGS): Rename from 'sentence_CPPFLAGS'.
(sentence_1_prg_LDADD): Rename from 'sentence_LDADD'.
* gettext-tools/tests/sentence-1: New file.
* gettext-tools/tests/sentence-1-prg.c: Rename from sentence.c, move the
test data to sentence-1.
* gettext-tools/tests/.gitignore: Ignore sentence-1-prg.

9 years agomaint: Update copyright year
Daiki Ueno [Mon, 30 May 2016 06:20:41 +0000 (15:20 +0900)] 
maint: Update copyright year

9 years agoxgettext: Update usage documentation
Daiki Ueno [Mon, 30 May 2016 04:47:18 +0000 (13:47 +0900)] 
xgettext: Update usage documentation

* gettext-tools/src/xgettext.c (usage): Mention 'bullet-unicode' check.

9 years agobuild: Make libxml2 check tighter
Daniel Burr [Sat, 28 May 2016 00:30:00 +0000 (09:30 +0900)] 
build: Make libxml2 check tighter

* gnulib-local/m4/libxml.m4 (gl_LIBXML): Try to check
xmlXPathSetContextNode, which is available in libxml2 2.9.1 or later.
Problem reported by Dominyk in:
http://savannah.gnu.org/bugs/?46844

Copyright-paperwork-exempt: yes

9 years agodesktop: Add missing "extern" in header
Daiki Ueno [Fri, 27 May 2016 09:01:32 +0000 (18:01 +0900)] 
desktop: Add missing "extern" in header

* gettext-tools/src/read-desktop.h: Add "extern" to each function
declaration.
Possibly related to: https://savannah.gnu.org/bugs/?45896

9 years agoNEWS: Mention gettext.m4 change
Daiki Ueno [Fri, 27 May 2016 08:42:13 +0000 (17:42 +0900)] 
NEWS: Mention gettext.m4 change

9 years agom4: Rely less on internal symbols
Daiki Ueno [Thu, 26 May 2016 04:38:57 +0000 (13:38 +0900)] 
m4: Rely less on internal symbols

* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): Skip checks for the
internal symbols _nl_msg_cat_cntr, _nl_domain_bindings, and
_nl_expand_alias, if __GNU_GETTEXT_SUPPORTED_REVISION is defined.
Problem reported and fix suggested by Masanori Ogino in:
https://lists.gnu.org/archive/html/bug-gettext/2016-04/msg00000.html
The rationale behind this is: (1) those symbol checks are for detecting
certain broken implementations, namely NetBSD and Solaris 7, and
(2) __GNU_GETTEXT_SUPPORTED_REVISION is not defined in those
implementations, while it is defined on compatible implementations, such
as musl-libc which doesn't have those internal symbols.

9 years agoNEWS: Add 0.19.8 changes
Daiki Ueno [Wed, 25 May 2016 08:08:49 +0000 (17:08 +0900)] 
NEWS: Add 0.19.8 changes

9 years agointl: Pacify pre-C99 compilers
Daiki Ueno [Tue, 24 May 2016 03:18:07 +0000 (12:18 +0900)] 
intl: Pacify pre-C99 compilers

* gettext-runtime/intl/plural-exp.h (HAVE_STRUCT_INITIALIZER): New
macro, based on the check previously in plural-exp.c.  Also add check
for __SUNPRO_C for Solaris Studio C compiler.
(GERMANIC_PLURAL): Define as 'struct expression' not 'const struct
expression' if struct/union initializers are not supported by the
compiler.
* gettext-runtime/intl/plural-exp.c: Use HAVE_STRUCT_INITIALIZER.
Reported by Dagobert Michelsen and investigated by pan7 in:
https://savannah.gnu.org/support/?108743

9 years agodesktop: Fix invalid memory access
David Shea [Tue, 24 May 2016 02:08:32 +0000 (11:08 +0900)] 
desktop: Fix invalid memory access

* gettext-tools/src/read-desktop.c (desktop_lex): Don't access memory
deallocated with realloc().  Reported in:
http://savannah.gnu.org/bugs/?47991

9 years agotests: Add more tests for JavaScript format string
Daiki Ueno [Mon, 23 May 2016 03:04:23 +0000 (12:04 +0900)] 
tests: Add more tests for JavaScript format string

* gettext-tools/tests/format-javascript-1: Add test for multiple uses of
same argument.
* gettext-tools/tests/format-javascript-2: Use proper flag to activate
javascript format checker.

9 years agojavascript: Fix format type compatibility check
Daiki Ueno [Mon, 23 May 2016 03:02:31 +0000 (12:02 +0900)] 
javascript: Fix format type compatibility check

* gettext-tools/src/format-javascript.c (format_check): Check if the two
argument types are the same.

9 years agotests: Add test for ITS search path
Daiki Ueno [Fri, 20 May 2016 10:03:40 +0000 (19:03 +0900)] 
tests: Add test for ITS search path

* gettext-tools/tests/Makefile.am (TESTS): Add new test.
* gettext-tools/tests/xgettext-its-2: New file.

9 years agosearch-path: Fix XDG_DATA_DIRS traversal
Daiki Ueno [Fri, 20 May 2016 08:34:25 +0000 (17:34 +0900)] 
search-path: Fix XDG_DATA_DIRS traversal

* gettext-tools/src/search-path.c (foreach_elements): Append "gettext"
suffix to each element from XDG_DATA_DIRS.

9 years agosearch-path: Don't relocate dirs given as envvar
Daiki Ueno [Fri, 20 May 2016 06:47:58 +0000 (15:47 +0900)] 
search-path: Don't relocate dirs given as envvar

* gettext-tools/src/search-path.c (foreach_function_ty): New typedef.
(path_array_ty): New struct.
(foreach_components, increment, fill): New functions.
(get_search_path): Rewrite using those functions.  Relocate
GETTEXTDATADIR here.
* gettext-tools/src/search-path.h (get_search_path): Update documentation.
* gettext-tools/src/msgfmt.c (main): Don't relocate directories in ITS
search path.
* gettext-tools/src/xgettext.c (main): Likewise.

9 years agoUpdate after Gnulib changed
Daiki Ueno [Thu, 19 May 2016 02:05:42 +0000 (11:05 +0900)] 
Update after Gnulib changed

* gnulib-local/lib/gettext.h: Update from gnulib.
* gettext-runtime/m4/extern-inline.m4: Likewise.
* gettext-runtime/m4/intdiv0.m4: Likewise.

9 years agoUpdate gnulib
Daiki Ueno [Thu, 19 May 2016 02:02:14 +0000 (11:02 +0900)] 
Update gnulib

* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Explicitly pull 'gettext',
as the module is now marked as obsolete.
* gnulib-local/Makefile.am (EXTRA_DIST): Remove m4/hard-locale.m4.diff.
* gnulib-local/m4/hard-locale.m4.diff: Remove, as it is no longer
needed.
* gettext-tools/gnulib-lib/.gitignore: Ignore files brought by gnulib-tool.
* gettext-tools/gnulib-tests/.gitignore: Likewise.
* gettext-tools/libgettextpo/.gitignore: Likewise.

9 years agomaint: Add --no-git option to autogen.sh
Daiki Ueno [Wed, 18 May 2016 09:21:07 +0000 (18:21 +0900)] 
maint: Add --no-git option to autogen.sh

* autogen.sh: Port --no-git option from Gnulib's bootstrap.

9 years agomsgfmt, xgettext: Respect XDG_DATA_DIRS
Daiki Ueno [Mon, 16 May 2016 08:08:09 +0000 (17:08 +0900)] 
msgfmt, xgettext: Respect XDG_DATA_DIRS

Suggested in https://savannah.gnu.org/bugs/?47123
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add 'xmemdup0'.
* gettext-tools/gnulib-lib/.gitignore: Ignore files brought by gnulib-tool.
* gettext-tools/gnulib-tests/.gitignore: Likewise.
* gettext-tools/src/search-path.c: New file.
* gettext-tools/src/search-path.h: New file.
* gettext-tools/src/Makefile.am (noinst_HEADERS): Add search-path.h.
(libgettextsrc_la_SOURCES): Add search-path.c.
* gettext-tools/src/msgfmt.c: Include "search-path.h".
(main): Use get_search_path to locate ITS directories.
* gettext-tools/src/xgettext.c: Include "search-path.h".
(main): Use get_search_path to locate ITS directories.

9 years agojavascript: Avoid uninitialized variable
Daiki Ueno [Mon, 16 May 2016 08:35:13 +0000 (17:35 +0900)] 
javascript: Avoid uninitialized variable

* gettext-tools/src/format-javascript.c (format_check): Fix
loop initialization.  Spotted by clang-analyzer.

9 years agolua: Avoid heap buffer overflow
Hanno Boeck [Fri, 25 Mar 2016 19:10:15 +0000 (04:10 +0900)] 
lua: Avoid heap buffer overflow

* gettext-tools/src/x-lua.c (string_end): Allocate a room for
terminating NUL.  Reported in: http://savannah.gnu.org/bugs/?4753

Copyright-paperwork-exempt: yes

9 years agoformat-python-brace: Support chained expression
Daiki Ueno [Wed, 23 Mar 2016 06:17:21 +0000 (15:17 +0900)] 
format-python-brace: Support chained expression

* gettext-tools/src/format-python-brace.c (parse_directive): Recognize
chained getattr/getitem expressions.
* gettext-tools/tests/format-python-brace-1: Add test for the case where
both getattr and getitem are used.
Reported by Paul Franklin in:
https://lists.gnu.org/archive/html/bug-gettext/2016-03/msg00017.html

9 years agodoc: Fix ngettext usage example
Daiki Ueno [Wed, 23 Mar 2016 01:20:12 +0000 (10:20 +0900)] 
doc: Fix ngettext usage example

* gettext-tools/doc/gettext.texi (Plural forms): Fix positional argument
syntax in the C example.  Reported by Jonathan Leffler in:
http://lists.gnu.org/archive/html/bug-gettext/2016-03/msg00002.html

9 years agojavascript: Fix invalid memory access
Daiki Ueno [Tue, 22 Mar 2016 09:38:15 +0000 (18:38 +0900)] 
javascript: Fix invalid memory access

* gettext-tools/src/format-javascript.c (format_parse): Fix numbered_arg
allocation for the unnumbered case.

Reported by Roger Mc Murtrie in: <http://savannah.gnu.org/bugs/?47492>.

9 years agomaint: Clean up .gitignore
Daiki Ueno [Tue, 22 Mar 2016 06:09:20 +0000 (15:09 +0900)] 
maint: Clean up .gitignore

* gettext-tools/gnulib-lib/.gitignore: Sort lines.

9 years agoxgettext: Put --its help in the right section
Daiki Ueno [Wed, 2 Mar 2016 09:10:12 +0000 (18:10 +0900)] 
xgettext: Put --its help in the right section

* gettext-tools/src/xgettext.c (usage): Move --its=FILE option under
"Language specific options" from "Output details".

9 years agoxgettext: Add new check bullet-unicode
Daiki Ueno [Mon, 22 Feb 2016 07:43:16 +0000 (16:43 +0900)] 
xgettext: Add new check bullet-unicode

* gettext-tools/src/xgettext.c (main): Generalize --check option
handling.
* gettext-tools/src/message.h (enum syntax_check_type): New enum value
sc_bullet_unicode.
(NSYNTAXCHECKS): Increment.
* gettext-tools/src/message.c (syntax_check_name): Add name for
sc_bullet_unicode.
* gettext-tools/src/msgl-check.c (struct bullet_ty, struct
bullet_stack_ty): New struct.
(bullet_stack): New variable.
(syntax_check_bullet_unicode): New function.
(sc_funcs): Register syntax_check_bullet_unicode as a check function for
sc_bullet_unicode.
* gettext-tools/tests/xgettext-14: Add tests for --check=bullet-unicode

9 years agodoc: Mention the behavior stripping *.in
Daiki Ueno [Wed, 10 Feb 2016 06:50:39 +0000 (15:50 +0900)] 
doc: Mention the behavior stripping *.in

* gettext-tools/doc/gettext.texi (Preparing ITS Rules): Add footnote
explaining the matching behavior if the input file name has the .in
suffix.  Suggested by Jan Synacek.

9 years agojavascript: Support '%m$' in format strings
Daiki Ueno [Mon, 8 Feb 2016 03:30:03 +0000 (12:30 +0900)] 
javascript: Support '%m$' in format strings

Gjs has had support for numbered arguments in format strings since 1.40.
Recognize it as well in format-javascript, so msgfmt -c doesn't fail
when numbered arguments are in msgstr.  Reported by Sean Burke in:
https://lists.gnu.org/archive/html/bug-gettext/2015-10/msg00002.html
* gettext-tools/src/format-javascript.c (struct numbered_arg): New
struct.
(struct spec): Rename format_args_count to numbered_arg_count.  Add
NUMBERED field in place of FORMAT_ARGS.  All callers changed.
(numbered_arg_compare): New function.
(format_parse): Handle numbered arguments.  Based on format-awk.c.
(format_check): Add check for numbered arguments.
* gettext-tools/tests/format-javascript-1: Add tests for numbered
arguments.
* gettext-tools/tests/lang-javascript: Use numbered argument in format
strings.  Add check for Gjs version >= 1.40.

9 years agomoopp: Revert file modes accidentally set
Daiki Ueno [Mon, 8 Feb 2016 02:59:56 +0000 (11:59 +0900)] 
moopp: Revert file modes accidentally set

9 years agogettext-tools: Use a short name for DLLs on OS/2
KO Myung-Hun [Tue, 12 Jan 2016 02:35:50 +0000 (11:35 +0900)] 
gettext-tools: Use a short name for DLLs on OS/2

OS/2 does not support a DLL name longer than 8 characters.

* gettext-tools/configure.ac (OS2): Define on OS/2.
* gettext-tools/gnulib-lib/Makefile.am (libgettextlib_la_LDFLAGS):
Set a DLL name to gtlib on OS/2.
* gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_LDFLAGS):
Set a DLL name to gtpo on OS/2.
* gettext-tools/src/Makefile.am (libgettextsrc_la_LDFLAGS): Set a DLL
name to gtsrc on OS/2.

9 years agolibasprintf: Build a shared library on OS/2
KO Myung-Hun [Tue, 12 Jan 2016 02:35:49 +0000 (11:35 +0900)] 
libasprintf: Build a shared library on OS/2

* gettext-runtime/libasprintf/configure.ac (LTNOUNDEF): Set to
-no-undefined on OS/2.

9 years agointl: Support UNIXROOT in BINDTEXTDOMAIN () on EMX
KO Myung-Hun [Tue, 12 Jan 2016 02:35:48 +0000 (11:35 +0900)] 
intl: Support UNIXROOT in BINDTEXTDOMAIN () on EMX

$UNIXROOT is a drive on which a root of FHS is.

* gettext-runtime/intl/bindtextdom.c (BINDTEXTDOMAIN): Prepend
$UNIXROOT to dirname if it is started '/' or it is an empty string.

9 years agomoop: Replace CR as well as LF with a space
KO Myung-Hun [Tue, 12 Jan 2016 02:35:47 +0000 (11:35 +0900)] 
moop: Replace CR as well as LF with a space

On OS/2, EOL marker is CR+LF.

* gnulib-local/bulid-aux/moopp (func_check_header_syntax):
Replace CR as well as LF with a space.

9 years agoChange msgfmt to produce little-endian .mo files by default.
Bruno Haible [Wed, 13 Jan 2016 08:31:48 +0000 (09:31 +0100)] 
Change msgfmt to produce little-endian .mo files by default.

* gettext-tools/src/msgfmt.c (main): Initialize 'byteswap' so as to
produce little-endian .mo files by default.
* gettext-tools/doc/gettext.texi: Update documentation.
* gettext-tools/doc/msgfmt.texi (--endianness): Likewise.

9 years agomaint: Revert copyright year changes in test data
Daiki Ueno [Wed, 13 Jan 2016 09:42:22 +0000 (18:42 +0900)] 
maint: Revert copyright year changes in test data

Some test programs started failing after mass update of copyright notice
for year 2016 (commit 7fa0c277), because of embedded test data with
fixed copyright dates.  Revert the commit for those files.
Reported by Bruno Haible.
* .x-update-copyright: Exclude test programs embedding copyright date.
* gettext-tools/tests/msgcomm-22: Revert the last change.
* gettext-tools/tests/msgfilter-sr-latin-1: Likewise.
* gettext-tools/tests/msggrep-1: Likewise.
* gettext-tools/tests/msggrep-2: Likewise.
* gettext-tools/tests/msggrep-3: Likewise.
* gettext-tools/tests/msggrep-4: Likewise.
* gettext-tools/tests/msggrep-5: Likewise.
* gettext-tools/tests/msggrep-9: Likewise.
* gettext-tools/tests/msggrep-11: Likewise.
* gettext-tools/tests/msgmerge-14: Likewise.

9 years agoits: Recognize *.glade as a GtkBuilder file too
Daiki Ueno [Thu, 7 Jan 2016 03:00:43 +0000 (12:00 +0900)] 
its: Recognize *.glade as a GtkBuilder file too

9 years ago* PACKAGING: List version specific files
Santiago Vila [Tue, 5 Jan 2016 01:04:39 +0000 (10:04 +0900)] 
* PACKAGING: List version specific files

Copyright-paperwork-exempt: yes

9 years agomaint: Update copyright year
Daiki Ueno [Sat, 2 Jan 2016 09:58:05 +0000 (18:58 +0900)] 
maint: Update copyright year

9 years agoUpdate gnulib
Daiki Ueno [Sat, 2 Jan 2016 09:42:56 +0000 (18:42 +0900)] 
Update gnulib

9 years agomaint: Use maintainer-makefile from gnulib
Daiki Ueno [Sat, 2 Jan 2016 09:35:51 +0000 (18:35 +0900)] 
maint: Use maintainer-makefile from gnulib

* autogen.sh: Pull GNUmakefile, maint.mk, and dependency scripts in
build-aux.
* cfg.mk (update-copyright-env): Adjust for gettext.
* .x-update-copyright: New file.
* .gitignore: Ignore files brought in by gnulib-tool.

9 years agomaint: Update release-steps to current practice
Daiki Ueno [Mon, 28 Dec 2015 07:22:41 +0000 (16:22 +0900)] 
maint: Update release-steps to current practice

* Admin/release-steps: Split document into two sections ('Making a
snapshot release' and 'Making an official release'), reorder some steps,
and remove mention of manual generation of PO/POT files.

9 years agoRelease 0.19.7 v0.19.7
Daiki Ueno [Sun, 27 Dec 2015 22:58:27 +0000 (07:58 +0900)] 
Release 0.19.7

9 years agoUpdate translations
Daiki Ueno [Sun, 27 Dec 2015 20:06:00 +0000 (05:06 +0900)] 
Update translations

* gettext-runtime/po/fr.po: Update from Stéphane Aulery <lkppo@free.fr>.
* gettext-runtime/po/nb.po: Update from Johnny A. Solbu <johnny@solbu.net>.
* gettext-runtime/po/pt_BR.po: Update from Rafael Ferreira <rffontenelle@gmail.com>.
* gettext-runtime/po/sr.po: Update from Мирослав Николић <miroslavnikolic@rocketmail.com>.
* gettext-runtime/po/zh_TW.po: Update from Wei-Lun Chao <bluebat@member.fsf.org>.
* gettext-tools/examples/po/fr.po: Update from Stéphane Aulery <lkppo@free.fr>.
* gettext-tools/examples/po/nb.po: Update from Johnny A. Solbu <johnny@solbu.net>.
* gettext-tools/examples/po/pt_BR.po: Update from Rafael Ferreira <rffontenelle@gmail.com>.
* gettext-tools/examples/po/sr.po: Update from Мирослав Николић <miroslavnikolic@rocketmail.com>.
* gettext-tools/examples/po/zh_TW.po: Update from Wei-Lun Chao <bluebat@member.fsf.org>.
* gettext-tools/po/bg.po: Update from Roumen Petrov <transl@roumenpetrov.info>.
* gettext-tools/po/es.po: Update from Antonio Ceballos <aceballos@gmail.com>.
* gettext-tools/po/fr.po: Update from Stéphane Aulery <lkppo@free.fr>.
* gettext-tools/po/ja.po: Update from Masahito Yamaga <ma@yama-ga.com>.
* gettext-tools/po/nl.po: Update from Benno Schulenberg <benno@vertaalt.nl>.
* gettext-tools/po/pt_BR.po: Update from Rafael Fontenelle <rffontenelle@gmail.com>.
* gettext-tools/po/sk.po: Update from Marcel Telka <marcel@telka.sk>.
* gettext-tools/po/sl.po: Update from Primoz PETERLIN <primozz.peterlin@gmail.com>.
* gettext-tools/po/sr.po: Update from Мирослав Николић <miroslavnikolic@rocketmail.com>.
* gettext-tools/po/uk.po: Update from Yuri Chornoivan <yurchor@ukr.net>.
* gettext-tools/po/vi.po: Update from Trần Ngọc Quân <vnwildman@gmail.com>.

9 years agoPrepare for 0.19.7
Daiki Ueno [Tue, 22 Dec 2015 08:15:01 +0000 (17:15 +0900)] 
Prepare for 0.19.7

9 years agodoc: Regenerate translation matrix
Daiki Ueno [Tue, 22 Dec 2015 08:10:41 +0000 (17:10 +0900)] 
doc: Regenerate translation matrix

* gettext-runtime/ABOUT-NLS: Regenerate for 0.19.7.
* gettext-runtime/doc/matrix.texi: Regenerate for 0.19.7.

9 years agoNEWS: Add 0.19.7 changes
Daiki Ueno [Mon, 21 Dec 2015 03:24:40 +0000 (12:24 +0900)] 
NEWS: Add 0.19.7 changes

9 years agoUpdate gnulib
Daiki Ueno [Sun, 27 Dec 2015 22:57:35 +0000 (07:57 +0900)] 
Update gnulib

9 years agoIgnore file brought by gnulib-tool
Daiki Ueno [Sun, 27 Dec 2015 20:38:53 +0000 (05:38 +0900)] 
Ignore file brought by gnulib-tool

* gettext-tools/gnulib-tests/.gitignore: Ignore file brought by
gnulib-tool.

9 years agoterm-ostream-tests: Add test data for FreeBSD 10.1
Daiki Ueno [Wed, 23 Dec 2015 07:10:15 +0000 (16:10 +0900)] 
term-ostream-tests: Add test data for FreeBSD 10.1

* gnulib-local/modules/term-ostream-tests: Add
test-term-ostream-xterm-freebsd101.out.
* gnulib-local/tests/test-term-ostream-xterm: Use new test data.
* gnulib-local/tests/test-term-ostream-xterm-freebsd101.out: New file.

9 years agocldr-plurals: Fix errors from clang-analyzer
Daiki Ueno [Mon, 21 Dec 2015 03:06:04 +0000 (12:06 +0900)] 
cldr-plurals: Fix errors from clang-analyzer

* gettext-tools/src/cldr-plurals.c (extract_rules): Add extra null
checks for NODE and BUFFER.  Don't add NUL byte to the end of buffer
manually.

9 years agopo: Prefer to use host tools when cross compiling
Daiki Ueno [Thu, 17 Dec 2015 08:11:25 +0000 (17:11 +0900)] 
po: Prefer to use host tools when cross compiling

* gettext-runtime/po/Makefile.in.in (CROSS_COMPILING): New substitute
variable.
(.nop.po-update): Don't prepend ../src to $PATH when cross compiling.
* gettext-runtime/po/Rules-quot (.insert-header.po-update-en): Likewise.

9 years agoits: Allow CDATA and comments in translatable node
Daiki Ueno [Thu, 17 Dec 2015 07:21:58 +0000 (16:21 +0900)] 
its: Allow CDATA and comments in translatable node

* gettext-tools/src/its.c (its_rule_list_is_translatable): Don't return
false on CDATA and comments.

9 years agoits: Fix typo in GSettings rule
Daiki Ueno [Thu, 17 Dec 2015 07:20:41 +0000 (16:20 +0900)] 
its: Fix typo in GSettings rule

* gettext-tools/its/gsettings.its: Fix typo in escape rule.

9 years agognulib-local: Fix link error due to symbol dupes
Daiki Ueno [Tue, 15 Dec 2015 03:20:46 +0000 (12:20 +0900)] 
gnulib-local: Fix link error due to symbol dupes

* gnulib-local/lib/libxml/trionan.c (minus_zerod): Mark as static.

9 years agognulib-local: Pull more functions for libxml
Daiki Ueno [Tue, 15 Dec 2015 03:12:37 +0000 (12:12 +0900)] 
gnulib-local: Pull more functions for libxml

* gettext-tools/gnulib-lib/.gitignore: Ignore files brought by
gnulib-tool.
* gettext-tools/gnulib-tests/.gitignore: Likewise.
* gnulib-local/modules/libxml (Depends-on): Add 'pow', 'log10', and
'fabs'.

9 years agognulib-local: Replace libxml2 trio with Gnulib
Daiki Ueno [Tue, 15 Dec 2015 02:58:53 +0000 (11:58 +0900)] 
gnulib-local: Replace libxml2 trio with Gnulib

* gettext-tools/gnulib-lib/.gitignore: Ignore files brought by
gnulib-tool.
* gettext-tools/gnulib-tests/.gitignore: Likewise.
* gnulib-local/lib/libxml/triodef.h: Remove.
* gnulib-local/lib/libxml/trionan.c: Replace it with Gnulib functions.
* gnulib-local/lib/libxml/trionan.h: Remove.
* gnulib-local/modules/libxml (Depends-on): Add 'isinf', 'isnan', and
'signbit'.