]> git.ipfire.org Git - thirdparty/gettext.git/log
thirdparty/gettext.git
7 years agoSimplify code. Drop support for Borland C++ on Windows.
Bruno Haible [Sat, 5 May 2018 08:36:24 +0000 (10:36 +0200)] 
Simplify code. Drop support for Borland C++ on Windows.

* gettext-runtime/intl/dcigettext.c: Simplify
'defined _WIN32 || defined __WIN32__' to just 'defined _WIN32'.
* gettext-runtime/intl/l10nflist.c: Likewise.
* gettext-runtime/intl/langprefs.c: Likewise.
* gettext-runtime/intl/libgnuintl.in.h: Likewise.
* gettext-runtime/intl/loadinfo.h: Likewise.
* gettext-runtime/intl/setlocale.c: Likewise.
* gettext-runtime/intl/printf-parse.c: Likewise.
* gettext-runtime/libasprintf/printf-parse.c: Likewise.
* gettext-tools/src/format-c-parse.h: Likewise.
* gettext-tools/src/hostname.c: Likewise.
* gnulib-local/lib/basename.c: Likewise.

7 years agoUpdate after gnulib changed.
Bruno Haible [Sat, 5 May 2018 00:23:08 +0000 (02:23 +0200)] 
Update after gnulib changed.

* Makefile.am (distcheck-hook): Update comparison of flexmember.h.
* gettext-runtime/intl/localcharset.c: Update from gnulib.
* gettext-runtime/intl/localename.c: Likewise.
* gettext-runtime/intl/lock.h: Likewise.
* gettext-runtime/intl/relocatable.c: Likewise.
* gettext-runtime/intl/vasnprintf.c: Likewise.
* gettext-runtime/intl/verify.h: Likewise.
* gettext-runtime/intl/xsize.h: Likewise.
* gettext-runtime/libasprintf/vasnprintf.c: Likewise.
* gettext-runtime/m4/*.m4: Likewise.
* gettext-tools/examples/po/remove-potcdate.sin: Likewise.
* gnulib-local/lib/execute.c.diff: Update.

7 years agoUpdate to newest gnulib.
Bruno Haible [Fri, 4 May 2018 20:38:19 +0000 (22:38 +0200)] 
Update to newest gnulib.

7 years agoAdd support for recent Java versions.
Bruno Haible [Sat, 24 Mar 2018 15:20:03 +0000 (16:20 +0100)] 
Add support for recent Java versions.

Reported by Emmanuel Bourg <ebourg@apache.org>
at <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892733>
via Santiago Vila.

* gettext-runtime/configure.ac: Require a Java compiler that supports
source-version 1.5 and target-version 1.6 (such as Java 6 or newer, or
GCJ 4.3 or newer).
* gettext-tools/src/write-java.c (msgdomain_write_java): Likewise
* gettext-tools/examples/hello-java-qtjambi/configure.ac: Likewise.
* gettext-tools/configure.ac: Require a Java compiler that supports
source-version 1.5 (such as Java 5 or newer, or GCJ 4.3 or newer).
* gettext-tools/examples/hello-java/configure.ac: Likewise.
* gettext-tools/examples/hello-java-awt/configure.ac: Likewise.
* gettext-tools/examples/hello-java-swing/configure.ac: Likewise.
* NEWS: Mention the change.

7 years agoUpdate README-alpha.
Bruno Haible [Sat, 24 Mar 2018 15:07:55 +0000 (16:07 +0100)] 
Update README-alpha.

* README-alpha: Don't suggest private email for bug reports about test releases.

7 years agoComment.
Bruno Haible [Sat, 24 Mar 2018 15:00:50 +0000 (16:00 +0100)] 
Comment.

* .dir-locals.el: Add comment.

7 years agoUpdate after gnulib changed.
Bruno Haible [Sat, 24 Mar 2018 14:04:11 +0000 (15:04 +0100)] 
Update after gnulib changed.

* gnulib-local/lib/unistd.in.h.diff: Update.
* gnulib-local/lib/regexec.c.diff: Remove file.
* gnulib-local/Makefile.am (EXTRA_DIST): Remove it.

7 years agoUpdate to newest gnulib
Bruno Haible [Sat, 24 Mar 2018 13:34:38 +0000 (14:34 +0100)] 
Update to newest gnulib

7 years agoUpdate NEWS file.
Bruno Haible [Sat, 24 Mar 2018 12:52:23 +0000 (13:52 +0100)] 
Update NEWS file.

* NEWS: Add a missing entry (for a change from 2016-12-15).

7 years agodoc: Fix statement about required Bison version.
Bruno Haible [Thu, 15 Mar 2018 15:53:05 +0000 (16:53 +0100)] 
doc: Fix statement about required Bison version.

Reported by Amit Chaudhuri <amit.k.chaudhuri@gmail.com>.

* HACKING: Required minimum Bison version is now 3.0, for cldr-plural.y.

7 years agoRename some files.
Bruno Haible [Sat, 27 Jan 2018 13:20:07 +0000 (14:20 +0100)] 
Rename some files.

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

7 years agoxgettext: Support '_' in number tokens in C++.
Bruno Haible [Sat, 27 Jan 2018 13:09:55 +0000 (14:09 +0100)] 
xgettext: Support '_' in number tokens in C++.

* gettext-tools/src/x-c.c (phase5_get): Recognize '_' in C++.
* NEWS: Update.

7 years agoxgettext: Support 'p'/'P' exponent markers in number tokens also in C.
Bruno Haible [Sun, 7 Jan 2018 02:20:06 +0000 (03:20 +0100)] 
xgettext: Support 'p'/'P' exponent markers in number tokens also in C.

* gettext-tools/src/x-c.c (phase5_get): Recognize sign after 'p' or 'P' also
in C.
* NEWS: Update.

7 years agoAvoid a test failure of lang-gawk.
Bruno Haible [Sun, 7 Jan 2018 01:33:38 +0000 (02:33 +0100)] 
Avoid a test failure of lang-gawk.

It's a bug in gawk 4.2.0, reported at
https://lists.gnu.org/archive/html/bug-gawk/2018-01/msg00026.html .

* gettext-tools/tests/lang-gawk: Skip the test if gawk's version is 4.2.0.

7 years agoAdd support for new C++ preprocessing number tokens.
Bruno Haible [Sat, 6 Jan 2018 17:45:22 +0000 (18:45 +0100)] 
Add support for new C++ preprocessing number tokens.

Reported by Moritz Bunkus <moritz@bunkus.org>
at <https://savannah.gnu.org/bugs/?50117>.

* gettext-tools/src/x-c.c (phase5_get): Recognize C++14 and C++17 extensions of
preprocessing number tokens.
* gettext-tools/tests/xgettext-c-22: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
* NEWS: Mention the change.

7 years agoComment fix.
Bruno Haible [Sat, 6 Jan 2018 17:37:27 +0000 (18:37 +0100)] 
Comment fix.

* gettext-tools/tests/xgettext-c-20: Fix typo in comment.

7 years agodoc: Document the data formats supported by the tools in a central place.
Bruno Haible [Sat, 6 Jan 2018 11:24:41 +0000 (12:24 +0100)] 
doc: Document the data formats supported by the tools in a central place.

* gettext-tools/doc/gettext.texi (Data Formats): New chapter.
(Internationalizable Data): Moved here from chapter "Programming Languages".

7 years agoAvoid a test failure of lang-csharp on Mac OS X.
Bruno Haible [Sat, 6 Jan 2018 04:52:52 +0000 (05:52 +0100)] 
Avoid a test failure of lang-csharp on Mac OS X.

* gettext-tools/tests/lang-csharp: Don't test in $LOCALE_FR on Mac OS X.

7 years agoxgettext: Add support for .properties files in UTF-8 encoding.
Bruno Haible [Sat, 6 Jan 2018 02:10:47 +0000 (03:10 +0100)] 
xgettext: Add support for .properties files in UTF-8 encoding.

* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add read-file, unistr/u8-check.
* gettext-tools/src/read-properties: Read the file into memory, then find out
about its encoding, then start parsing it.
* gettext-tools/tests/xgettext-properties-2: New file.
* gettext-tools/tests/xgettext-properties-3: New file.
* gettext-tools/tests/xgettext-properties-4: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
* NEWS: Mention the change.

7 years agoAdd support for .rsj files.
Bruno Haible [Fri, 5 Jan 2018 22:42:46 +0000 (23:42 +0100)] 
Add support for .rsj files.

* gettext-tools/src/x-rst.h (EXTENSIONS_RST, SCANNERS_RST): Add RSJ scanner.
(extract_rsj): New declaration.
* gettext-tools/src/x-rst.c: Implement extraction from .rsj files.
* gettext-tools/src/xgettext.c (usage): Mention RSJ along with RST.
* gettext-tools/tests/xgettext-rst-1: New file.
* gettext-tools/tests/xgettext-rst-2: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
* gettext-tools/tests/lang-pascal: Extract from .rsj file, if the compiler
generated it.
* gettext-tools/doc/gettext.texi (RST): Mention that .rsj files are supported
as well.
* gettext-tools/doc/xgettext.texi (Choice of input file language): Mention RSJ
along with RST.
* NEWS: Mention the change.

7 years agoFix failure of lang-javascript on Ubuntu 16.04.
Bruno Haible [Fri, 5 Jan 2018 22:14:21 +0000 (23:14 +0100)] 
Fix failure of lang-javascript on Ubuntu 16.04.

pkg-config almost never works. It is best to never use it.

* gettext-tools/tests/lang-javascript: Don't use pkg-config to test whether
the installed gjs is appropriate.

7 years agoFix a comment.
Bruno Haible [Fri, 5 Jan 2018 21:18:53 +0000 (22:18 +0100)] 
Fix a comment.

* gettext-tools/src/x-stringtable.h: Fix typo in comment.

7 years agodoc: More information for maintainers.
Bruno Haible [Thu, 4 Jan 2018 09:53:06 +0000 (10:53 +0100)] 
doc: More information for maintainers.

* HACKING: New section 'Additional requirements for maintainers'.

7 years agoUse locales with the customary names.
Bruno Haible [Thu, 4 Jan 2018 09:52:13 +0000 (10:52 +0100)] 
Use locales with the customary names.

On glibc systems, nowadays, the German and French locales are named
'de_DE.UTF-8' and 'fr_FR.UTF-8', respectively. This change avoids the need
to install similar locales with different names.

* gettext-tools/tests/gettext-3: Use locales with '.UTF-8' suffix.
* gettext-tools/tests/gettext-3-prg.c (lang): Likewise.

7 years agodoc: Add information about lua-gettext package.
Bruno Haible [Thu, 4 Jan 2018 08:32:15 +0000 (09:32 +0100)] 
doc: Add information about lua-gettext package.

* gettext-tools/doc/gettext.texi (Lua): Describe from where to get the
lua-gettext package.

7 years agodoc: Add information about Ubuntu packages.
Bruno Haible [Thu, 4 Jan 2018 08:25:23 +0000 (09:25 +0100)] 
doc: Add information about Ubuntu packages.

* gettext-tools/doc/gettext.texi (List of Programming Languages): Add a
subsection 'Ubuntu packages' for each.

7 years agoFix msgunfmt-3 failure (regression from 2017-09-24).
Bruno Haible [Wed, 3 Jan 2018 11:48:58 +0000 (12:48 +0100)] 
Fix msgunfmt-3 failure (regression from 2017-09-24).

* gettext-tools/tests/Makefile.am (EXTRA_DIST): Add sysdep-without-nul.mo.

7 years agoUpdate dependencies list.
Bruno Haible [Wed, 3 Jan 2018 01:34:33 +0000 (02:34 +0100)] 
Update dependencies list.

* HACKING: Add Lzip (needed for "make dist" since 2014-12-24).

7 years agoFix "make dist" of modified git checkouts.
Bruno Haible [Wed, 3 Jan 2018 01:32:55 +0000 (02:32 +0100)] 
Fix "make dist" of modified git checkouts.

This fixes error messages such as
tar: gettext-0.19.8.1.74-72e49-dirty/gettext-tools/gnulib-tests/test-term-ostream-xterm-linux-mandriva.out: file name is too long (max 99); not dumped
tar: gettext-0.19.8.1.74-72e49-dirty/gettext-runtime/intl-csharp/doc/GNU_Gettext_GettextResourceManager.html: file name is too long (max 99); not dumped

* configure.ac: Pass option 'tar-ustar' to AM_INIT_AUTOMAKE.
(am__tar): Use 'tar' option --format=ustar.

7 years agoClarify required bison version.
Bruno Haible [Tue, 2 Jan 2018 21:17:36 +0000 (22:17 +0100)] 
Clarify required bison version.

Reported by Roger Mc Murtrie <rogermc@grapevine.com.au>
at <https://savannah.gnu.org/bugs/?47484>.

* HACKING: Mention minimum version of bison.

7 years agoAvoid build failures caused by parallel make.
Bruno Haible [Tue, 2 Jan 2018 20:57:12 +0000 (21:57 +0100)] 
Avoid build failures caused by parallel make.

Reported by Andrew Stormont <andyjstormont@gmail.com>
at <https://savannah.gnu.org/bugs/?48412>.

* gettext-tools/doc/Makefile.am (GNUMAKEFLAGS): New variable.
* gettext-tools/src/Makefile.am (cldr-plural.h): Add dependency.

7 years agoFix 'ar' invocation when cross-compiling and in 64-bit mode on AIX.
Bruno Haible [Tue, 2 Jan 2018 18:38:43 +0000 (19:38 +0100)] 
Fix 'ar' invocation when cross-compiling and in 64-bit mode on AIX.

Reported by Benedikt Morbach <bmorbach@redhat.com>
at <https://savannah.gnu.org/bugs/?43037>.

* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Require gl_PROG_AR_RANLIB if
available. Otherwise, use AC_PROG_RANLIB and set AR and ARFLAGS.
* gettext-runtime/intl/Makefile.in (AR): Use the value determined through
autoconf.
(ARFLAGS): New variable.
(libintl.a, libgnuintl.a): Use it.
* gettext-runtime/configure.ac: Invoke gl_PROG_AR_RANLIB.
* gettext-runtime/libasprintf/configure.ac: Likewise.
* gettext-tools/configure.ac: Likewise.

7 years agoDon't use -lc explicitly when linking with libtool.
Bruno Haible [Tue, 2 Jan 2018 17:35:17 +0000 (18:35 +0100)] 
Don't use -lc explicitly when linking with libtool.

libtool has logic that determines whether it should add -lc, and this logic
works fine on all modern platforms.

Reported by Michael Forney <mforney@mforney.org>
at <https://savannah.gnu.org/bugs/?40192>.

* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Don't set LTLIBC.
* gettext-runtime/intl/Makefile.in (libintl.la, libgnuintl.la): Don't use
LTLIBC.

8 years agoClarify copyright and license of some files.
Bruno Haible [Sun, 15 Oct 2017 00:02:05 +0000 (02:02 +0200)] 
Clarify copyright and license of some files.

Reported by Joël Krähemann at <https://savannah.gnu.org/bugs/?52227>.

* gettext-runtime/po/Makefile.in.in: Correct copyright holder.
* gettext-runtime/po/remove-potcdate.sin: Use the same licensing terms as Makefile.in.in.
* gettext-runtime/po/Rules-quot: Use an all-permissive license.
* gettext-tools/po/Makevars.template: Likewise.
* gettext-runtime/po/Makevars: Likewise.
* gettext-tools/po/Makevars: Likewise.
* gettext-runtime/po/POTFILES.in: Use GPLv3+.
* gettext-tools/po/POTFILES.in: Likewise.

8 years agoFix an out-of-bounds memory read.
Bruno Haible [Sat, 30 Sep 2017 11:42:24 +0000 (13:42 +0200)] 
Fix an out-of-bounds memory read.

Reported by Jakub Wilk <jwilk@jwilk.net>.

* gnulib-local/lib/term-ostream.oo.c (term_ostream_create): Pass the correct
length to memcmp().

8 years agoTest of verification of system dependent strings in .mo files.
Daiki Ueno [Sun, 24 Sep 2017 12:28:29 +0000 (14:28 +0200)] 
Test of verification of system dependent strings in .mo files.

* gettext-tools/tests/sysdep-without-nul.mo: New file, from Jakub Wilk.
* gettext-tools/tests/msgunfmt-3: Add test of sysdep-without-nul.mo.

8 years agoVerify that system dependent strings in .mo files are NUL terminated.
Bruno Haible [Sun, 24 Sep 2017 12:25:53 +0000 (14:25 +0200)] 
Verify that system dependent strings in .mo files are NUL terminated.

Reported by Jakub Wilk <jwilk@jwilk.net> in
<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=876498>.

* gettext-runtime/intl/loadmsgcat.c (_nl_load_domain): Bail out if some of the
system-dependent strings has a last static segment that is not NUL terminated.
* gettext-tools/src/read-mo.c (get_sysdep_string): Likewise.

8 years agolibintl: Fix pointer use after free.
Bruno Haible [Sun, 24 Sep 2017 09:30:59 +0000 (11:30 +0200)] 
libintl: Fix pointer use after free.

* gettext-runtime/intl/loadmsgcat.c (_nl_load_domain): Perform the same lock
deallocation outside libc as in libc (patch from 2013-09-06).

8 years agoAppData: Update documentation.
Bruno Haible [Mon, 28 Aug 2017 23:43:45 +0000 (01:43 +0200)] 
AppData: Update documentation.

* gettext-tools/doc/gettext.texi (AppData): Add reference to the specification.
Mention support for file extension .metainfo.xml.

8 years agoExtend the AppData "language" to also support AppStream metainfo files.
Matthias Klumpp [Mon, 28 Aug 2017 23:36:39 +0000 (01:36 +0200)] 
Extend the AppData "language" to also support AppStream metainfo files.

Fixes <https://savannah.gnu.org/bugs/?50414>,
reported by Piotr Drąg <piotrdrag@gmail.com>.

* gettext-tools/its/metainfo.its: Renamed from gettext-tools/its/appdata.its.
* gettext-tools/its/metainfo.loc: Renamed from gettext-tools/its/appdata.loc.
Recognize also suffix ".metainfo.xml".
* gettext-tools/its/Makefile.am (dist_its_DATA): Update.
* gettext-tools/src/x-appdata.h: Update comment.

8 years agoAppData: Simplify code.
Bruno Haible [Mon, 28 Aug 2017 23:25:07 +0000 (01:25 +0200)] 
AppData: Simplify code.

* gettext-tools/src/x-appdata.h (EXTENSIONS_APPDATA): Define to empty, as the
supported extensions are now defined in the *.loc files.

8 years agoTranslate <developer_name> elements in AppData files.
Matthias Klumpp [Mon, 28 Aug 2017 21:57:48 +0000 (23:57 +0200)] 
Translate <developer_name> elements in AppData files.

Fixes <https://savannah.gnu.org/bugs/?50408>,
reported by Piotr Drąg <piotrdrag@gmail.com>.

* gettext-tools/its/appdata.its: Mark <developer_name> elements as translatable.

8 years agoRemove an obsolete configure test.
Bruno Haible [Mon, 7 Aug 2017 15:53:42 +0000 (17:53 +0200)] 
Remove an obsolete configure test.

* gettext-tools/configure.ac: Remove obsolete test that used the obsolete file
<xlocale.h>.

8 years agoAvoid extraneous NUL bytes in .mo files.
Bruno Haible [Tue, 22 Aug 2017 00:26:40 +0000 (02:26 +0200)] 
Avoid extraneous NUL bytes in .mo files.

Reported by Jakub Wilk <jwilk@jwilk.net> via Santiago Vila <sanvila@unex.es>
in <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=872869>.

* gettext-tools/src/msgl-header.c (msgdomain_list_set_header_field,
message_list_delete_header_field): Adjust msgstr_len when modifying msgstr.

8 years agoGet rid of autom4te.cache directories, as far as possible.
Bruno Haible [Sat, 15 Jul 2017 19:12:42 +0000 (21:12 +0200)] 
Get rid of autom4te.cache directories, as far as possible.

* autogen.sh: Remove autom4te.cache directories after running autoconf,
autoheader, automake.

8 years agoFix bug: gettextize does not add intlmacosx.m4 file.
Bruno Haible [Sat, 15 Jul 2017 10:35:57 +0000 (12:35 +0200)] 
Fix bug: gettextize does not add intlmacosx.m4 file.

Reported by Eli Zaretskii via Gavin Smith in
<http://lists.gnu.org/archive/html/bug-texinfo/2017-07/msg00026.html>.

* gettext-tools/misc/gettextize.in (m4filelist): Include intlmacosx.m4 also
when --intl option is not given.
* gettext-tools/doc/gettext.texi (aclocal): Add intlmacosx.m4 to file list.

8 years agogettext.h: Update theoretical condition for use of variable size arrays.
Bruno Haible [Thu, 15 Jun 2017 20:51:11 +0000 (22:51 +0200)] 
gettext.h: Update theoretical condition for use of variable size arrays.

Reported by Paul Eggert.

* gnulib-local/lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend
comment to include the theoretical condition for availability of variable size
arrays, if we could trust the value of __STDC_VERSION__.

8 years agoFix hyperlink to CLHS.
Bruno Haible [Sun, 21 May 2017 22:08:50 +0000 (00:08 +0200)] 
Fix hyperlink to CLHS.

* gettext-tools/doc/gettext.texi (lisp-format): Fix hyperlink.

8 years agoFix memory leaks.
Bruno Haible [Thu, 18 May 2017 23:38:48 +0000 (01:38 +0200)] 
Fix memory leaks.

Found by Coverity.

* gettext-runtime/intl/loadmsgcat.c (_nl_load_domain): Free allocated memory
before returning in out-of-memory case.
* gettext-runtime/intl/localealias.c (relocate2): Define fallback.
(read_alias_file): Invoke relocate2 instead of relocate. Free the allocated
memory.

8 years agoFix missing unlock.
Bruno Haible [Thu, 18 May 2017 23:37:15 +0000 (01:37 +0200)] 
Fix missing unlock.

Found by Coverity.

* gettext-runtime/intl/dcigettext.c (_nl_find_msg): Unlock the lock and
free allocated memory before returning.

8 years agoUpdate gettext-runtime files from gnulib.
Bruno Haible [Thu, 18 May 2017 23:15:33 +0000 (01:15 +0200)] 
Update gettext-runtime files from gnulib.

* Makefile.am (distcheck-hook): Check also flexmember.m4, flexmember.h.
* gettext-runtime/intl/Makefile.in (SOURCES): Add flexmember.h.
* gettext-runtime/intl/flexmember.h: New file, from gnulib.
* gettext-runtime/intl/localcharset.c:
  * localcharset.c (relocate2): Define fallback.
  (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
  allocated memory.
  * localcharset.c (WINDOWS_NATIVE): Don't define on Cygwin.
  * localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
  return value from setlocale if it would lead to a buffer overrun.
* gettext-runtime/intl/localename.c:
  * localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
  where NL_LOCALE_NAME is defined.
  * localename.c (WINDOWS_NATIVE): Don't define on Cygwin.
  * localename.c (gl_locale_name_thread_unsafe): Add clause for
  Cygwin.
  * localename.c (struct hash_node): Use FLEXIBLE_ARRAY_MEMBER.
* gettext-runtime/intl/lock.c:
  * lock.c: On glibc systems without
  PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
  implementation of rwlocks.
  * lock.c [USE_POSIX_THREADS]
  (glthread_rwlock_init_for_glibc): New function.
  [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
  comment.
  [USE_PTH_THREADS]: New implementation of rwlocks.
  [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
  readers.
* gettext-runtime/intl/lock.h:
  * lock.h (pthread_rwlockattr_setkind_np): Don't declare
  weak on non-glibc platforms.
  * lock.h: On glibc systems without
  PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
  implementation of rwlocks.
  * lock.h [USE_POSIX_THREADS_WEAK]: Declare also
  pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
  pthread_rwlockattr_destroy weak.
  * lock.h [USE_POSIX_THREADS]: Test
  HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
  of rwlock initialization on glibc systems without
  HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
  of rwlocks altogether on non-glibc systems without
  HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
  [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
* gettext-runtime/intl/relocatable.c:
  * relocatable.c (relocate2): New function.
  * relocatable.c (relocate): Assume pathname is non-NULL. Use
  ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
* gettext-runtime/intl/relocatable.h:
  * relocatable.h (relocate2): New declaration/macro.
* gettext-runtime/intl/vasnprintf.c, gettext-runtime/libasprintf/vasnprintf.c:
  * vasnprintf.c (FALLTHROUGH): New macro.
  Use it whenever one switch case falls through into the next.
  * vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
  Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
  of !HAVE_SNPRINTF_RETVAL_C99.
  * vasnprintf.c (VASNPRINTF): Move comment down past two cpp
  directives, so that it takes effect once again.  This is clearly
  not a proper change, and I will revert it once this bug is fixed:
  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
  * vasnprintf.c (IF_LINT): Treat GCC_LINT like lint.
* gettext-runtime/intl/verify.h:
  * verify.h (verify) [!__GNUC__]:
  Use shorter albeit meaningless string to bypass silly compiler limits.
  * verify.h (assume): Treat GCC_LINT like lint.
* gettext-runtime/intl/xsize.h: Update.
* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Add flexmember.m4.
* gettext-runtime/m4/extern-inline.m4: Update.
* gettext-runtime/m4/fcntl-o.m4: Update.
* gettext-runtime/m4/flexmember.m4: New file, from gnulib.
* gettext-runtime/m4/glibc2.m4: Update.
* gettext-runtime/m4/glibc21.m4: Update.
* gettext-runtime/m4/intdiv0.m4: Update.
* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
* gettext-runtime/m4/intmax.m4: Update.
* gettext-runtime/m4/inttypes-pri.m4: Update.
* gettext-runtime/m4/inttypes_h.m4: Update.
* gettext-runtime/m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
* gettext-runtime/m4/longlong.m4: Update.
* gettext-runtime/m4/printf-posix.m4: Update.
* gettext-runtime/m4/progtest.m4: Update.
* gettext-runtime/m4/size_max.m4: Update.
* gettext-runtime/m4/stdint_h.m4: Update.
* gettext-runtime/m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
* gettext-runtime/m4/uintmax_t.m4: Update.
* gettext-runtime/m4/visibility.m4: Update.
* gettext-runtime/m4/wchar_t.m4: Update.
* gettext-runtime/m4/xsize.m4: Update.
* gettext-runtime/tests/test-lock.c:
  * test-lock.c: On Mac OS X, use named semaphores, not unnamed
  semaphores.
  (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
  (atomic_int_semaphore): New macro.
  * test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
  exist.
  * test-lock.c (USE_SEMAPHORE): New constant.
  (struct atomic_int, init_atomic_int, get_atomic_int_value,
  set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
  Suggested by Torvald Riegel <triegel@redhat.com>.

8 years agoUpdate after gnulib changed.
Bruno Haible [Thu, 18 May 2017 21:19:32 +0000 (23:19 +0200)] 
Update after gnulib changed.

* gnulib-local/lib/fnmatch_loop.c.diff: Update.

8 years agoUpdate gnulib
Bruno Haible [Thu, 18 May 2017 21:07:07 +0000 (23:07 +0200)] 
Update gnulib

8 years agoUpdate after gnulib changed.
Bruno Haible [Mon, 15 May 2017 22:27:57 +0000 (00:27 +0200)] 
Update after gnulib changed.

* gnulib-local/lib/getopt-core.h.diff: New file.
* gnulib-local/lib/getopt.in.h.diff: Remove file.
* gnulib-local/lib/unistd.in.h.diff: Update.
* gnulib-local/modules/fnmatch.diff: Update.
* gnulib-local/Makefile.am (EXTRA_DIST): Add lib/getopt-core.h.diff. Remove
lib/getopt.in.h.diff.
* gettext-runtime/m4/wint_t.m4: Update from gnulib.
* autogen.sh: In the gnulib-tool invocations, avoid gnulib test modules that
depend on 'hash' (because we use a different 'hash' module).
* .gitignore: Update.

8 years agoUpdate gnulib
Bruno Haible [Mon, 15 May 2017 17:06:02 +0000 (19:06 +0200)] 
Update gnulib

8 years agodoc: Fix statement about Bulgarian.
Bruno Haible [Mon, 15 May 2017 20:07:46 +0000 (22:07 +0200)] 
doc: Fix statement about Bulgarian.

Reported by Domingo Bernardo <domingopbernardo@gmail.com>.

* gettext-tools/doc/gettext.texi (Plural forms): Fix classification of
Bulgarian.

8 years agoRespect the configure option --localedir.
Bruno Haible [Mon, 15 May 2017 16:22:29 +0000 (18:22 +0200)] 
Respect the configure option --localedir.

Reported by Markus Gothe at https://savannah.gnu.org/bugs/index.php?49862 .

The AC_SUBSTed variable @localedir@ is supported since Autoconf 2.60.

* gettext-runtime/intl/Makefile.in (localedir): Set to @localedir@. Suggested
by Markus Gothe <nietzsche@lysator.liu.se>.
* gettext-runtime/m4/intldir.m4: Require Autoconf 2.60 or newer.
* gettext-tools/doc/gettext.texi (src/Makefile): Assume Autoconf 2.60 or newer.

8 years agoRemove the ability to compile the Java programs to native executables.
Bruno Haible [Thu, 4 May 2017 16:01:18 +0000 (18:01 +0200)] 
Remove the ability to compile the Java programs to native executables.

This ability relied on GCJ, and GCJ was removed from GCC in version 7.1.

* gnulib-local/modules/gcj: Remove file.
* gnulib-local/m4/gcj.m4: Remove file.
* gnulib-local/Makefile.am (EXTRA_DIST): Remove both.
* gnulib-local/m4/java.m4 (gt_JAVA_CHOICE): Map value 'bytecode' to 'yes'.

* autogen.sh (GNULIB_MODULES_TOOLS_OTHER): Remove 'gcj'.
* gettext-tools/configure.ac: Don't invoke gt_GCJ. Don't set BUILDJAVAEXE.
* gettext-tools/src/Makefile.am (DEFS): Remove USEJEXE, GETTEXTJEXEDIR defines.
(GCJ, GCJFLAGS): Remove variables.
(USEJAVA, USEJEXE): Assume BUILDJAVAEXE is false.
(all-java-*, install-data-java-*, installdirs-java-*, uninstall-java-*): Remove
targets that assume BUILDJAVAEXE = true. Rename remaining targets.
(install-exec-java-*): Remove targets.
* gettext-tools/src/read-java.c (msgdomain_read_java: Assume USEJEXE is false.
* gettext-tools/src/urlget.c (fetch): Likewise.
* gettext-tools/tests/msgunfmt-java-1: Don't set GETTEXTJEXEDIR.
* PACKAGING (Java support): Drop text about native executables.

* gettext-tools/m4/Makefile.am (examplesbuildaux_DATA): Remove gcj.m4.
* gettext-tools/examples/hello-java*/autogen.sh: Don't copy gcj.m4.
* gettext-tools/examples/hello-java*/autoclean.sh: Don't remove m4/gcj.m4.
* gettext-tools/examples/hello-java*/m4/Makefile.am (EXTRA_DIST): Remove
gcj.m4.
* gettext-tools/examples/hello-java*/configure.ac: Don't invoke gt_GCJ,
AC_PROG_RANLIB. Remove option --enable-java-exe. Don't set BUILDJAVAEXE. Don't
set USEJEXE.
* gettext-tools/examples/hello-java*/Makefile.am (GCJ, GCJFLAGS, AR, RANLIB):
Remove variables.
[USEJEXE]: Remove section.

8 years agoAvoid -Wundef warning in gettext.h.
Bruno Haible [Fri, 21 Apr 2017 23:40:18 +0000 (01:40 +0200)] 
Avoid -Wundef warning in gettext.h.

* gnulib-local/lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
<https://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00022.html>.

8 years agoPO mode: Fix typo.
Bruno Haible [Wed, 19 Apr 2017 10:03:53 +0000 (12:03 +0200)] 
PO mode: Fix typo.

* gettext-tools/misc/po-mode.el (po-select-mark-and-mark): Fix typo in message.

8 years agoPO mode: Fix recognition of C and C++ modes.
Bruno Haible [Wed, 19 Apr 2017 10:01:45 +0000 (12:01 +0200)] 
PO mode: Fix recognition of C and C++ modes.

The variable 'mode-name' can contain a suffix, see
https://www.gnu.org/software/emacs/manual/html_node/ccmode/Minor-Modes.html
https://www.gnu.org/software/emacs/manual/html_node/emacs/Electric-C.html
Therefore use 'major-mode' instead of 'mode-name'.

* gettext-tools/misc/po-mode.el (po-preset-string-functions): Test major-mode,
not mode-name.
(po-mode-version-string): Bump to 2.25.

Reported at <https://savannah.gnu.org/bugs/index.php?50830>
by Peter Hull <peterhull90@gmail.com>.

8 years agoFix compilation error in <libintl.h> on Cygwin.
Bruno Haible [Mon, 20 Mar 2017 21:36:36 +0000 (22:36 +0100)] 
Fix compilation error in <libintl.h> on Cygwin.

Reported by Michael Haubenwallner at https://savannah.gnu.org/bugs/?50595 .

* gettext-runtime/intl/libgnuintl.in.h (newlocale): Hide declaration if
  locale_t type is not visible on Cygwin.

8 years agoSupport for Automake targets install-{dvi,ps,pdf,html}.
Bruno Haible [Thu, 16 Feb 2017 14:20:35 +0000 (15:20 +0100)] 
Support for Automake targets install-{dvi,ps,pdf,html}.

Reported by Eric Blake at https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25690
via Assaf Gordon.

* gettext-runtime/po/Makefile.in.in (install-dvi, install-ps, install-pdf,
install-html): New empty targets.

8 years agoUpdate URLs in READMEs.
Bruno Haible [Tue, 10 Jan 2017 21:21:29 +0000 (22:21 +0100)] 
Update URLs in READMEs.

* README: Prefer https protocol over http or ftp protocol.
* DEPENDENCIES: Likewise. Point to OpenJDK instead of gcj. Point to Mono instead
of pnet.

8 years agolock test: Fix performance problem on multi-core machines.
Bruno Haible [Mon, 2 Jan 2017 00:00:00 +0000 (01:00 +0100)] 
lock test: Fix performance problem on multi-core machines.

* gettext-runtime/tests/test-lock.c (USE_VOLATILE): New macro.
(struct atomic_int): New type.
(init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
functions.
(lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
as 'struct atomic_int'.
(lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
reclock_checker_thread, test_recursive_lock): Use the new functions.
Reported by Eric Blake in
https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
and by Pádraig Brady in
http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00117.html.

8 years agoAdd comments about test failures with --disable-nls.
Bruno Haible [Thu, 15 Dec 2016 23:25:18 +0000 (00:25 +0100)] 
Add comments about test failures with --disable-nls.

* gettext-tools/tests/lang-bash: Add comment.
* gettext-tools/tests/lang-sh: Likewise.
* gettext-tools/tests/lang-c: Likewise.
* gettext-tools/tests/lang-c++: Likewise.
* gettext-tools/tests/lang-objc: Likewise.

8 years agoPolish the last commit.
Bruno Haible [Thu, 15 Dec 2016 21:51:00 +0000 (22:51 +0100)] 
Polish the last commit.

8 years agomsgfmt: Remove POT-Creation-Date field from the header in the output.
John Darrington [Thu, 15 Dec 2016 20:56:44 +0000 (21:56 +0100)] 
msgfmt: Remove POT-Creation-Date field from the header in the output.

This helps reproducible builds.
Reported at <https://savannah.gnu.org/bugs/?49654>.
* gettext-tools/src/msgl-header.h (message_list_delete_header_field): New
declaration.
* gettext-tools/src/msgl-header.c (known_fields): New variable, extracted from
msgdomain_list_set_header_field.
(message_list_delete_header_field): New function.
* gettext-tools/src/write-mo.c: Include msgl-header.h.
(msgdomain_write_mo): Delete the POT-Creation-Date field.
* gettext-tools/src/write-java.c: Include msgl-header.h.
(msgdomain_write_java): Delete the POT-Creation-Date field.
* gettext-tools/src/write-csharp.c: Include msgl-header.h.
(msgdomain_write_csharp): Delete the POT-Creation-Date field.
* gettext-tools/src/write-resources.c: Include msgl-header.h.
(msgdomain_write_csharp_resources): Delete the POT-Creation-Date field.
* gettext-tools/src/write-tcl.c: Include msgl-header.h.
(msgdomain_write_tcl): Delete the POT-Creation-Date field.
* gettext-tools/src/write-qt.c: Include msgl-header.h.
(msgdomain_write_qt): Delete the POT-Creation-Date field.
* gettext-tools/src/write-desktop.c: Include msgl-header.h.
(msgdomain_write_desktop): Delete the POT-Creation-Date field.
* gettext-tools/src/write-xml.c: Include msgl-header.h.
(msgdomain_write_xml): Delete the POT-Creation-Date field.
* gettext-tools/tests/msgfmt-19: New file, based on
gettext-tools/tests/msgfmt-18.
* gettext-tools/tests/Makefile.am (TESTS): Add it.

8 years agoFix typo in comment.
Bruno Haible [Thu, 15 Dec 2016 03:13:03 +0000 (04:13 +0100)] 
Fix typo in comment.

8 years agoFix error handling in autogen.sh.
Bruno Haible [Mon, 12 Dec 2016 02:08:49 +0000 (03:08 +0100)] 
Fix error handling in autogen.sh.

* autogen.sh: Don't invoke automake if aclocal, autoconf, or autoheader failed.

8 years agoSimplify .gitignore.
Bruno Haible [Sun, 11 Dec 2016 18:26:34 +0000 (19:26 +0100)] 
Simplify .gitignore.

8 years agoRemove files deleted by "make maintainer-clean" from version control.
Bruno Haible [Sun, 11 Dec 2016 18:12:53 +0000 (19:12 +0100)] 
Remove files deleted by "make maintainer-clean" from version control.

8 years agoMerge all .gitignore files into a single .gitignore file.
Bruno Haible [Sun, 11 Dec 2016 17:16:30 +0000 (18:16 +0100)] 
Merge all .gitignore files into a single .gitignore file.

8 years agoUpdate and organize the .gitignore files.
Bruno Haible [Sun, 11 Dec 2016 14:44:56 +0000 (15:44 +0100)] 
Update and organize the .gitignore files.

8 years agoUpdate to newest gnulib.
Bruno Haible [Sat, 10 Dec 2016 15:02:21 +0000 (16:02 +0100)] 
Update to newest gnulib.

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.