]> git.ipfire.org Git - thirdparty/gettext.git/log
thirdparty/gettext.git
10 years agoFix C++ compiler check to auto-disable building libasprintf
Daiki Ueno [Thu, 2 Oct 2014 08:44:41 +0000 (17:44 +0900)] 
Fix C++ compiler check to auto-disable building libasprintf

* gettext-runtime/configure.ac: To automatically disable building
libasprintf when no C++ is found, check if CXX is "no", not ":".  This
seems to be a left over of commit 09963c23.  Reported by Assaf Gordon in:
<https://lists.gnu.org/archive/html/bug-gettext/2014-10/msg00003.html>.

10 years agotests: Fix autopoint-3 tests with older Automake
Daiki Ueno [Thu, 2 Oct 2014 08:21:30 +0000 (17:21 +0900)] 
tests: Fix autopoint-3 tests with older Automake

* autopoint-3: Invoke AC_CONFIG_MACRO_DIR after AC_INIT, not
before.

10 years agoNEWS: Add 0.19.3 entries
Daiki Ueno [Wed, 1 Oct 2014 08:44:15 +0000 (17:44 +0900)] 
NEWS: Add 0.19.3 entries

10 years agotests: Adjust textdomain directory for Solaris 11 v0.19.2.1
Daiki Ueno [Wed, 1 Oct 2014 05:40:08 +0000 (14:40 +0900)] 
tests: Adjust textdomain directory for Solaris 11

Solaris 11 doesn't strip the CODESET part from the locale name,
when looking for a message catalog.  Create a directory link with
CODESET, to work around this.

10 years agotests: Stop redundant textdomain directory creation
Daiki Ueno [Wed, 1 Oct 2014 04:25:03 +0000 (13:25 +0900)] 
tests: Stop redundant textdomain directory creation

This was introduced by commit 3533f6cc when we didn't use separate
test directory for each test.  Now that we switched to init.sh, we
don't need to worry about filename conflicts.

10 years agoUpdate after Gnulib changed
Daiki Ueno [Tue, 30 Sep 2014 10:09:38 +0000 (19:09 +0900)] 
Update after Gnulib changed

10 years agoUpdate gnulib
Daiki Ueno [Tue, 30 Sep 2014 09:44:47 +0000 (18:44 +0900)] 
Update gnulib

10 years agoFix gettext-runtime compilation error on Solaris 10
Paul Eggert [Tue, 30 Sep 2014 09:24:06 +0000 (18:24 +0900)] 
Fix gettext-runtime compilation error on Solaris 10

* gettext-runtime/configure.ac: Invoke AM_PROG_CC_C_O so that the
system stdbool.h will be used on Solaris.  Suggested by Paul Eggert in:
<https://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00053.html>.

10 years agotests: Don't use non-portable "grep -q"
Daiki Ueno [Tue, 30 Sep 2014 09:18:31 +0000 (18:18 +0900)] 
tests: Don't use non-portable "grep -q"

10 years agotests: Test octal character escape in xgettext C tests
Daiki Ueno [Mon, 29 Sep 2014 23:27:22 +0000 (08:27 +0900)] 
tests: Test octal character escape in xgettext C tests

10 years agoc: Fix octal character escape handling
Daiki Ueno [Mon, 29 Sep 2014 23:25:44 +0000 (08:25 +0900)] 
c: Fix octal character escape handling

* gettext-tools/src/x-c.c (literalstring_parse): Fix octal character
escape handling.
Reported by Kjartan Maraas at:
<https://bugzilla.redhat.com/show_bug.cgi?id=1147535>.

10 years agopython: Fix invalid memory access when concatenating strings with +
Daiki Ueno [Wed, 24 Sep 2014 09:04:17 +0000 (18:04 +0900)] 
python: Fix invalid memory access when concatenating strings with +

* gettext-tools/src/x-python.c (x_python_lex): Move 'token3' variable
declaration out of the internal block.

10 years agotests: Make iconv invocation more portable
Daiki Ueno [Wed, 24 Sep 2014 08:49:46 +0000 (17:49 +0900)] 
tests: Make iconv invocation more portable

* gettext-tools/tests/xgettext-c-19: Use iconv -f/-t instead of
non-portable --from/--to.

10 years agomsgfilter: Don't use non-portable character escape
Daiki Ueno [Wed, 24 Sep 2014 08:43:41 +0000 (17:43 +0900)] 
msgfilter: Don't use non-portable character escape

* gettext-tools/src/filter-quote.c (BOLD_START, BOLD_END): Don't use
non-portable character escape "\e".

10 years agotests: Use libtool in autopoint-3 test
Daiki Ueno [Fri, 5 Sep 2014 06:36:25 +0000 (15:36 +0900)] 
tests: Use libtool in autopoint-3 test

10 years agotests: Improve error handling in autopoint tests
Daiki Ueno [Fri, 5 Sep 2014 06:14:04 +0000 (15:14 +0900)] 
tests: Improve error handling in autopoint tests

10 years agogettext-tools: Make convert-archive more portable
Daiki Ueno [Sun, 31 Aug 2014 22:34:54 +0000 (07:34 +0900)] 
gettext-tools: Make convert-archive more portable

* convert-archive.in: Don't use non-portable 'if ! COMMAND'.
Reported by Stefano Lattarini in:
<https://lists.gnu.org/archive/html/bug-gettext/2011-07/msg00002.html>.

10 years agoPrint a uid_t value portably
Jonas 'Sortie' Termansen [Wed, 27 Aug 2014 10:07:29 +0000 (12:07 +0200)] 
Print a uid_t value portably

10 years agoFix printing of size_t values
Jonas 'Sortie' Termansen [Tue, 26 Aug 2014 14:41:12 +0000 (16:41 +0200)] 
Fix printing of size_t values

10 years agoAdd missing #if HAVE_SYS_PARAM_H
Jonas 'Sortie' Termansen [Tue, 26 Aug 2014 14:41:11 +0000 (16:41 +0200)] 
Add missing #if HAVE_SYS_PARAM_H

11 years agoUpdate Gnulib
Daiki Ueno [Wed, 16 Jul 2014 06:52:32 +0000 (15:52 +0900)] 
Update Gnulib

11 years agointl: Consolidate fallback _GL_* macro definitions into intl.m4
Daiki Ueno [Wed, 16 Jul 2014 06:19:30 +0000 (15:19 +0900)] 
intl: Consolidate fallback _GL_* macro definitions into intl.m4

We had defined _GL_* macros used by libintl itself in the corresponding
C files.  However, it will increase divergence between Gnulib and gettext.
This patch moves the fallback macro definitions into M4 and emit them only
when the project is not using Gnulib.

* gettext-runtime/m4/intl.m4 (gt_GL_ATTRIBUTE): New macro.
(AM_INTL_SUBDIR): Require gt_GL_ATTRIBUTE.
* gettext-runtime/intl/localename.c: Update from Gnulib.
2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
    localename: avoid -Wsuggest-attribute={const,pure} warnings
    * lib/localename.c (string_hash): Tag internal function as pure.
* gettext-runtime/intl/xsize.c (XSIZE_INLINE): Remove _GL_UNUSED definition.
It will be set through intl.m4.
* Makefile.am (distcheck-hook): Add back localename.c check.

11 years agoAdd missing gettext-tools/src/Makefile.am change in commit c3e1f8e3
Daiki Ueno [Tue, 15 Jul 2014 04:16:18 +0000 (13:16 +0900)] 
Add missing gettext-tools/src/Makefile.am change in commit c3e1f8e3

11 years agoRelease 0.19.2 v0.19.2
Daiki Ueno [Mon, 14 Jul 2014 03:08:37 +0000 (12:08 +0900)] 
Release 0.19.2

11 years agoPrepare for 0.19.2
Daiki Ueno [Mon, 14 Jul 2014 03:27:32 +0000 (12:27 +0900)] 
Prepare for 0.19.2

11 years agointl: Remove intl/VERSION for gettext packages
Daiki Ueno [Mon, 14 Jul 2014 05:27:06 +0000 (14:27 +0900)] 
intl: Remove intl/VERSION for gettext packages

* Makefile.in (distclean): Remove intl/VERSION for gettext-runtime
and gettext-tools packages.

11 years agobuild: Work around undefined _GL_ATTRIBUTE_PURE in libintl
Daiki Ueno [Mon, 14 Jul 2014 04:23:07 +0000 (13:23 +0900)] 
build: Work around undefined _GL_ATTRIBUTE_PURE in libintl

* Makefile.am (distcheck-hook): Ignore the difference between our
localename.c and the latest Gnulib's, which utilizes
_GL_ATTRIBUTE_PURE not available from libintl.  This is a
temporary fix for the 0.19.2 release and should be reverted once
it is fixed either in gettext or Gnulib.

11 years agoUpdate after Gnulib changed
Daiki Ueno [Mon, 14 Jul 2014 03:56:48 +0000 (12:56 +0900)] 
Update after Gnulib changed

11 years agoUpdate Gnulib
Daiki Ueno [Mon, 14 Jul 2014 03:42:54 +0000 (12:42 +0900)] 
Update Gnulib

11 years agoUpdate translations from Translation Project
Daiki Ueno [Mon, 14 Jul 2014 03:34:53 +0000 (12:34 +0900)] 
Update translations from Translation Project

11 years agotests: Test empty literals in Vala test
Daiki Ueno [Mon, 14 Jul 2014 02:57:34 +0000 (11:57 +0900)] 
tests: Test empty literals in Vala test

* xgettext-vala-1: Test empty literals that do not affect the
following lines.

11 years agovala: Fix empty string literal handling
Daiki Ueno [Mon, 14 Jul 2014 02:55:01 +0000 (11:55 +0900)] 
vala: Fix empty string literal handling

Similar to the commit 7b2d8d61 on July 11.
* x-vala.c (phase3_get): Add missing memory allocation for empty
string literal.

11 years agoNEWS: Add 0.19.2 entries
Daiki Ueno [Mon, 14 Jul 2014 02:39:28 +0000 (11:39 +0900)] 
NEWS: Add 0.19.2 entries

11 years agobuild: Fix race in post-install removal of *.a
Daiki Ueno [Mon, 14 Jul 2014 02:24:30 +0000 (11:24 +0900)] 
build: Fix race in post-install removal of *.a

There was an implicit dependency between the prerequisites of
install-exec-local, which may have caused error with make -jN.
Use install-exec-hook to remove the dependency.
Reported by Christian Weisgerber in:
<https://lists.gnu.org/archive/html/bug-gettext/2014-07/msg00008.html>.
* Makefile.am (install-exec-local): Remove.
(install-exec-hook): New rule, depend on install-exec-clean.

11 years agomaint: Update Admin/plans
Daiki Ueno [Sun, 13 Jul 2014 21:44:41 +0000 (06:44 +0900)] 
maint: Update Admin/plans

11 years agoautopoint: Fix the last change
Daiki Ueno [Sun, 13 Jul 2014 21:13:40 +0000 (06:13 +0900)] 
autopoint: Fix the last change

* autopoint.in: Use func_trace_sed for AM_GNU_GETTEXT and
AM_GNU_GETTEXT_VERSION, as they are not an Autoconf trace.

11 years agoautopoint: Fix the last change
Daiki Ueno [Sun, 13 Jul 2014 21:13:12 +0000 (06:13 +0900)] 
autopoint: Fix the last change

* autopoint.in: Use func_trace_sed for AM_GNU_GETTEXT and
AM_GNU_GETTEXT_VERSION, as they are not an Autoconf trace.

11 years agotests: Test for AC_CONFIG_AUX_DIR usage in autopoint test
Daiki Ueno [Sun, 13 Jul 2014 20:40:18 +0000 (05:40 +0900)] 
tests: Test for AC_CONFIG_AUX_DIR usage in autopoint test

* autopoint-2: Check if build-aux/config.rpath is created if
AC_CONFIG_AUX_DIR([build-aux]) is called.

11 years agoautopoint: Select macro tracing method by Autoconf version
Daiki Ueno [Sun, 13 Jul 2014 20:37:57 +0000 (05:37 +0900)] 
autopoint: Select macro tracing method by Autoconf version
Reported and analyzed by Pádraig Brady in:
<http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00071.html>.

* autopoint.in (func_trace_autoconf): Rename from func_trace.
($func_trace): Set to func_trace_autoconf if Autoconf >= 2.69 is
availabl, otherwise to func_trace_sed.
* gettextize.in: Likewise.

11 years agotests: Test empty literals in C test
Daiki Ueno [Sun, 13 Jul 2014 20:36:44 +0000 (05:36 +0900)] 
tests: Test empty literals in C test

* xgettext-c-2: Test empty literals that do not affect the
following lines.

11 years agoc: Fix empty string literal handling
Daiki Ueno [Fri, 11 Jul 2014 14:30:52 +0000 (23:30 +0900)] 
c: Fix empty string literal handling

Problem reported by Bernhard Voelker in:
<http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00059.html>.
* x-c.c (phase5_get): Add missing memory allocation for empty
string literal.

11 years agointl: Sync up loadmsgcat.c with glibc
Siddhesh Poyarekar [Thu, 3 Jul 2014 08:43:09 +0000 (17:43 +0900)] 
intl: Sync up loadmsgcat.c with glibc

* loadmsgcat.c [_LIBC]: Define PRI_MACROS_BROKEN unconditionally.

11 years agointl: Sync up loadmsgcat.c with glibc
Siddhesh Poyarekar [Thu, 3 Jul 2014 08:14:40 +0000 (17:14 +0900)] 
intl: Sync up loadmsgcat.c with glibc

* loadmsgcat.c: Include assert.h.
(_nl_load_domain): Add semicolon to end of line.
(_nl_load_domain)[HAVE_MMAP]: Use MAP_FAILED and assert that
it is (void *) -1.
(_nl_load_domain)[_LIBC]: Call __libc_rwlock_init instead of
gl_rwlock_init.
(_nl_unload_domain): Cast convd->encoding to non-const.

11 years agointl: Add back ChangeLog to gettext-runtime distribution
Daiki Ueno [Tue, 17 Jun 2014 02:42:23 +0000 (11:42 +0900)] 
intl: Add back ChangeLog to gettext-runtime distribution

* Makefile.in (DISTFILES.gettext): Add ChangeLog.

11 years agotests: Test "make dist" in autopoint test
Daiki Ueno [Mon, 16 Jun 2014 08:42:25 +0000 (17:42 +0900)] 
tests: Test "make dist" in autopoint test

* autopoint-3: Run "make dist" after "make"; add a workaround for
a bug in 0.19 and 0.19.1, where intl/ChangeLog is required but
missing in the archive.

11 years agointl: Stop installing ChangeLog.inst
Daiki Ueno [Mon, 16 Jun 2014 07:48:33 +0000 (16:48 +0900)] 
intl: Stop installing ChangeLog.inst

After the git-version-gen migration (commit fbf4e276), the
creation of gettext-tools/intl/ChangeLog.inst in configure.ac was
removed because we lost access to $RELEASE_DATE.  Given that
intl/VERSION provides enough information, simply drop the
ChangeLog file.
Problem reported by Bruce Korb in
<https://lists.gnu.org/archive/html/bug-gettext/2014-06/msg00022.html>.
* Makefile.in (install-data): Don't install ChangeLog.inst.
(distclean): Don't remove ChangeLog.inst.
(uninstall): Don't remove ChangeLog under $(gettextsrcdir)/intl.
(dist): Don't include ChangeLog in the distribution.

11 years agodoc: Update licenses from GNU
Daiki Ueno [Thu, 12 Jun 2014 08:56:23 +0000 (17:56 +0900)] 
doc: Update licenses from GNU

* gpl.texi, lgpl.texi, fdl.texi: Update from GNU.
* gettext.texi (GNU GPL, GNU LGPL, GNU LGPL): Define nodes here,
instead of in those license documents.

11 years agoRelease 0.19.1 v0.19.1
Daiki Ueno [Tue, 10 Jun 2014 02:14:43 +0000 (11:14 +0900)] 
Release 0.19.1

11 years agoPrepare for 0.19.1
Daiki Ueno [Tue, 10 Jun 2014 02:16:23 +0000 (11:16 +0900)] 
Prepare for 0.19.1

11 years agomaint: Mention updating autopoint tests in Admin/release-steps
Daiki Ueno [Tue, 10 Jun 2014 03:13:25 +0000 (12:13 +0900)] 
maint: Mention updating autopoint tests in Admin/release-steps

11 years agoTemporarily add Language: field to all PO file headers
Daiki Ueno [Tue, 10 Jun 2014 01:57:05 +0000 (10:57 +0900)] 
Temporarily add Language: field to all PO file headers

Due to a bug in 0.19, the Language: field is considered mandatory.
This was fixed in commit 31744906, but better avoid error when
building with 0.19 at the moment.  This should be overwritten with the
next translations update.

11 years agomaint: Mention how to update translations from Translation Project
Daiki Ueno [Mon, 9 Jun 2014 07:42:19 +0000 (16:42 +0900)] 
maint: Mention how to update translations from Translation Project

11 years agoUpdate translations from Translation Project
Daiki Ueno [Mon, 9 Jun 2014 07:20:07 +0000 (16:20 +0900)] 
Update translations from Translation Project

11 years agomsgmerge: Disable --color option in --update mode
Daiki Ueno [Mon, 9 Jun 2014 04:36:18 +0000 (13:36 +0900)] 
msgmerge: Disable --color option in --update mode

Suggested by 林V字龍 at:
<https://lists.gnu.org/archive/html/bug-gettext/2014-06/msg00017.html>.
* msgmerge.c (main): Error out when --color and --update are
specified at the same time.

11 years agoxgettext: Fix misrecognition of character literals in C and Vala
Daiki Ueno [Sat, 7 Jun 2014 01:35:14 +0000 (10:35 +0900)] 
xgettext: Fix misrecognition of character literals in C and Vala

Problem reported by Paul Eggert at
<http://lists.gnu.org/archive/html/bug-gettext/2014-06/msg00015.html>.
* x-c.c (phase5_get): Make sure to skip contents of character constant.
* x-vala.c (phase3_get): Likewise.

11 years agodoc: Update the matrix
Daiki Ueno [Fri, 6 Jun 2014 08:25:25 +0000 (17:25 +0900)] 
doc: Update the matrix

* matrix.texi: Update.
* nls.texi (STATUS): Likewise.

11 years agomaint: Mention xz-compressed tarball in Admin/release-steps
Daiki Ueno [Fri, 6 Jun 2014 02:58:03 +0000 (11:58 +0900)] 
maint: Mention xz-compressed tarball in Admin/release-steps

11 years agoautogen.sh: Use xz-compressed archive tarball
Daiki Ueno [Fri, 6 Jun 2014 02:53:41 +0000 (11:53 +0900)] 
autogen.sh: Use xz-compressed archive tarball

* autogen.sh: Fetch archive.dir-latest.tar.xz instead of .tar.gz.

11 years agoconfigure: also distribute xz-compressed tarballs
Jim Meyering [Thu, 5 Jun 2014 04:17:40 +0000 (21:17 -0700)] 
configure: also distribute xz-compressed tarballs

* configure.ac (AM_INIT_AUTOMAKE): Add dist-xz, so that xz-compressed
.tar.xz tarballs will be distributed alongside .tar.gz ones.

11 years agotests: Prevent autopoint tests from creating temp files in /tmp
Daiki Ueno [Wed, 4 Jun 2014 07:18:09 +0000 (16:18 +0900)] 
tests: Prevent autopoint tests from creating temp files in /tmp

11 years agotests: Remove debug code from msgattrib-19
Daiki Ueno [Wed, 4 Jun 2014 07:00:29 +0000 (16:00 +0900)] 
tests: Remove debug code from msgattrib-19

11 years agoexamples: Don't require msgfmt when compiling hello-c-gnome3
Daiki Ueno [Tue, 3 Jun 2014 07:57:34 +0000 (16:57 +0900)] 
examples: Don't require msgfmt when compiling hello-c-gnome3

* hello-c-gnome3/Makefile.am (CLEANFILES): Clean hello.desktop.
(EXTRA_DIST): Add hello.desktop.in.
(MAINTAINERCLEANFILES): Add hello.desktop.in.
(hello.desktop): Move msgfmt invocation to...
(hello.desktop.in): ...here.

11 years agoNEWS: Mention 0.19.1 changes
Daiki Ueno [Tue, 3 Jun 2014 05:59:01 +0000 (14:59 +0900)] 
NEWS: Mention 0.19.1 changes

11 years agomaint: Mention how to use the included gettext-tools to regeneate files
Daiki Ueno [Tue, 3 Jun 2014 04:19:02 +0000 (13:19 +0900)] 
maint: Mention how to use the included gettext-tools to regeneate files

11 years agodesktop: Use logical filename as msgid location
Daiki Ueno [Tue, 3 Jun 2014 02:33:04 +0000 (11:33 +0900)] 
desktop: Use logical filename as msgid location

* read-desktop.c (desktop_parse): Pass logical filename instead of
real filename to desktop_reader_handle_pair.

11 years agodesktop: Read LINGUAS file even if LINGUAS envvar is set
Daiki Ueno [Tue, 3 Jun 2014 02:05:50 +0000 (11:05 +0900)] 
desktop: Read LINGUAS file even if LINGUAS envvar is set

* msgfmt.c (get_languages): If the LINGUAS envvar is set, use it
to restrict the languages list read from the LINGUAS file, not to
extend the list.
(add_languages): Take an optional DESIRED_LANGUAGES argument.

11 years agotests: Ignore the LINGUAS envvar in msgfmt-desktop-2
Daiki Ueno [Mon, 2 Jun 2014 21:22:42 +0000 (06:22 +0900)] 
tests: Ignore the LINGUAS envvar in msgfmt-desktop-2

Reported by Lars Wendler at:
<http://lists.gnu.org/archive/html/bug-gettext/2014-06/msg00002.html>.
* msgfmt-desktop-2: Unset the LINGUAS envvar.

11 years agoFix the last commit
Daiki Ueno [Mon, 2 Jun 2014 21:20:30 +0000 (06:20 +0900)] 
Fix the last commit

11 years agobuild: Handle 'environ' global variable differently on cygwin x86_64
Daiki Ueno [Mon, 2 Jun 2014 21:13:21 +0000 (06:13 +0900)] 
build: Handle 'environ' global variable differently on cygwin x86_64

Amendment to commit c97dafde.
* tests/test-environ.c.diff: New file.
* Makefile.am (EXTRA_DIST): Add new patch.

11 years agovala: Don't elide comments while parsing string literal
Daiki Ueno [Mon, 2 Jun 2014 21:04:28 +0000 (06:04 +0900)] 
vala: Don't elide comments while parsing string literal

* x-vala.c (phase3_get): Use phase1_getc to read characters inside
a string literal.

11 years agomsgl-check: Treat missing header errors as warnings
Daiki Ueno [Mon, 2 Jun 2014 09:04:41 +0000 (18:04 +0900)] 
msgl-check: Treat missing header errors as warnings

Problem reported by Richard Hughes at
<https://lists.fedoraproject.org/pipermail/devel/2014-June/199539.html>.
After <https://savannah.gnu.org/bugs/?40262>, "msgfmt -c" reports
error on missing PO headers.  However, it turned out to be too strict
for the projects using Launchpad Translations.  Let's relax the check
for the moment and wait for one or two release cycles.
* gettext-tools/src/msgl-check.c (check_header_entry): Report missing
required headers as warning, instead of error.

11 years agopo: Sync gettext-tools/po/Makevars with gettext-runtime/po/Makevars
Daiki Ueno [Mon, 2 Jun 2014 08:20:04 +0000 (17:20 +0900)] 
po: Sync gettext-tools/po/Makevars with gettext-runtime/po/Makevars

* Makevars (PACKAGE_GNU, PO_DEPENDS_ON_POT)
(DIST_DEPENDS_ON_UPDATE_PO): New variables.
* Makevars.template (PACKAGE_GNU, PO_DEPENDS_ON_POT)
(DIST_DEPENDS_ON_UPDATE_PO): New variables.

11 years agoRelease 0.19 v0.19
Daiki Ueno [Sun, 1 Jun 2014 23:07:47 +0000 (08:07 +0900)] 
Release 0.19

11 years agoRegenerate files for 0.19
Daiki Ueno [Sun, 1 Jun 2014 02:22:52 +0000 (11:22 +0900)] 
Regenerate files for 0.19

11 years agoPrepare for 0.19.
Daiki Ueno [Sun, 11 May 2014 00:01:37 +0000 (09:01 +0900)] 
Prepare for 0.19.

11 years agobuild: Handle 'environ' global variable differently on cygwin x86_64
Daiki Ueno [Sun, 1 Jun 2014 23:05:19 +0000 (08:05 +0900)] 
build: Handle 'environ' global variable differently on cygwin x86_64

Problem reported by Vasyl Khalak in:
<https://cygwin.com/ml/cygwin/2013-06/msg00228.html>.
* lib/execute.c.diff: New file.
* lib/spawn-pipe.c.diff: Likewise.
* Makefile.am (EXTRA_DIST): Add new patches.

11 years agobuild: Fix make distcheck
Daiki Ueno [Sun, 1 Jun 2014 09:52:29 +0000 (18:52 +0900)] 
build: Fix make distcheck

* gettext-runtime/man/Makefile.am (EXTRA_DIST): Add $(man_HTML3) so not to
regenerate them on make distcheck.

11 years agodoc: Update from ISO languages database
Daiki Ueno [Sun, 1 Jun 2014 00:28:22 +0000 (09:28 +0900)] 
doc: Update from ISO languages database

* ISO_639: Remove Moldavian. Update Bihari, Bengali, Catalan,
Church Slavic, Divehi, Dzongkha, Ewe, Greek, Spanish, Fijian,
Gaelic, Hebrew, Interlingua, Indonesian, Inupiak, Central Khmer,
Kirghiz, Luxembourgish, Limburgan, Lao, Latvian, Norwegian Bokmal,
North Ndebele, Dutch, Norwegian Nynorsk, South Ndebele, Occitan,
Oromo, Pushto, Rundi, Romanian, Sango, Swati, South Sotho, Tswana,
Tonga, Uighur, Volapuk, Yiddish, and Zhuang.

11 years agomsgexec: Pass previous msgid to the child process
Daiki Ueno [Sat, 31 May 2014 06:44:17 +0000 (15:44 +0900)] 
msgexec: Pass previous msgid to the child process

Suggested by Pavel Kharitonov in:
<http://lists.gnu.org/archive/html/bug-gettext/2014-05/msg00022.html>.
* msgexec.c (process_string): Set MSGEXEC_PREV_* envvar.

11 years agomsgfilter: Pass previous msgid to the child process
Daiki Ueno [Sat, 31 May 2014 02:28:39 +0000 (11:28 +0900)] 
msgfilter: Pass previous msgid to the child process

Suggested by Pavel Kharitonov in:
<http://lists.gnu.org/archive/html/bug-gettext/2014-05/msg00022.html>.
* msgfilter.c (process_message): Set MSGFILTER_PREV_* envvar.

11 years agobuild: Fix VPATH build for po-gram-gen2.h
Daiki Ueno [Mon, 19 May 2014 08:51:17 +0000 (17:51 +0900)] 
build: Fix VPATH build for po-gram-gen2.h

11 years agobuild: Simplify man and HTML documentation generation
Daiki Ueno [Mon, 19 May 2014 03:17:39 +0000 (12:17 +0900)] 
build: Simplify man and HTML documentation generation

Problem reported by Santiago Vila in:
<https://lists.gnu.org/archive/html/bug-gettext/2014-05/msg00024.html>.

11 years agoNEWS: Mention msgexec/msgfilter plural handling
Daiki Ueno [Thu, 15 May 2014 06:46:43 +0000 (15:46 +0900)] 
NEWS: Mention msgexec/msgfilter plural handling

11 years agotests: Add test for msgfilter plural handling
Daiki Ueno [Thu, 15 May 2014 06:37:49 +0000 (15:37 +0900)] 
tests: Add test for msgfilter plural handling

11 years agotests: Add test for msgexec plural handling
Daiki Ueno [Thu, 15 May 2014 06:18:35 +0000 (15:18 +0900)] 
tests: Add test for msgexec plural handling

11 years agomsgexec, msgfilter: Fix typo in comments
Stanislav Brabec [Wed, 14 May 2014 21:34:48 +0000 (23:34 +0200)] 
msgexec, msgfilter: Fix typo in comments

Refere to the correct environment variables MSG{EXEC,FILTER}_MSGCTXT
and MSG{EXEC,FILTER}_MSGCTXT in comments.

Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
11 years agomsgfilter: Implement plural support
Stanislav Brabec [Thu, 15 May 2014 03:00:53 +0000 (12:00 +0900)] 
msgfilter: Implement plural support

* msgfilter.c (process_message): Set or unset
MSGFILTER_MSGID_PLURAL and MSGFILTER_PLURAL_FORM.

11 years agomsgexec: Implement plural support
Stanislav Brabec [Thu, 15 May 2014 03:00:01 +0000 (12:00 +0900)] 
msgexec: Implement plural support

* msgexec.c (process_string): Set or unset MSGEXEC_MSGID_PLURAL.
(process_message): Set or unset MSGEXEC_PLURAL_FORM.

11 years agotests: Don't assume ga_IE locale is present
Daiki Ueno [Thu, 15 May 2014 02:57:54 +0000 (11:57 +0900)] 
tests: Don't assume ga_IE locale is present

* msginit-3: Fix charset value after msginit invocation.

11 years agoFix typo in commit 2a644d7a
Daiki Ueno [Wed, 14 May 2014 09:48:40 +0000 (18:48 +0900)] 
Fix typo in commit 2a644d7a

11 years agoRemove non-existing regex.diff from distribution
Daiki Ueno [Wed, 14 May 2014 08:59:16 +0000 (17:59 +0900)] 
Remove non-existing regex.diff from distribution

11 years agoUpdate after gnulib changed.
Daiki Ueno [Wed, 14 May 2014 08:42:09 +0000 (17:42 +0900)] 
Update after gnulib changed.

11 years agoUpdate Gnulib
Daiki Ueno [Wed, 14 May 2014 08:35:35 +0000 (17:35 +0900)] 
Update Gnulib

11 years agotests: Fix errors when CFLAGS contains --coverage
Daiki Ueno [Wed, 14 May 2014 08:10:05 +0000 (17:10 +0900)] 
tests: Fix errors when CFLAGS contains --coverage

* lang-c: Supply $CFLAGS to the libtool link command.
* lang-objc: Likewise.

11 years agoUpdate .gitignore
Daiki Ueno [Wed, 14 May 2014 07:53:17 +0000 (16:53 +0900)] 
Update .gitignore

11 years agomsgfmt: Report error on accelerator mismatch
Daiki Ueno [Wed, 14 May 2014 07:44:31 +0000 (16:44 +0900)] 
msgfmt: Report error on accelerator mismatch

* msgl-check.c (check_pair): Increment error count on missing
accelerator character or too many accelerators.

11 years agofilter-quote: Minor refactoring of string copy
Daiki Ueno [Wed, 14 May 2014 02:42:34 +0000 (11:42 +0900)] 
filter-quote: Minor refactoring of string copy

11 years agotests: Improve test coverage
Daiki Ueno [Wed, 14 May 2014 02:42:19 +0000 (11:42 +0900)] 
tests: Improve test coverage

11 years agobuild: Fallback $docdir to $datarootdir/doc/gettext
Daiki Ueno [Tue, 13 May 2014 23:09:41 +0000 (08:09 +0900)] 
build: Fallback $docdir to $datarootdir/doc/gettext

Problem reported by Santiago Vila in
<http://lists.gnu.org/archive/html/bug-gettext/2014-05/msg00014.html>.
* gettext-runtime/configure.ac: Adjust $docdir assuming that
AC_PACKAGE_TARNAME is set.
* gettext-tools/configure.ac: Likewise.
* gettext-tools/examples/configure.ac: Likewise.

11 years agotests: Adjust the error message check after commit 4aaaccd2
Daiki Ueno [Tue, 13 May 2014 06:26:08 +0000 (15:26 +0900)] 
tests: Adjust the error message check after commit 4aaaccd2

* msgfmt-10: Increment expected error count.