Commit Graph

1326 Commits

Author SHA1 Message Date
Mike Frysinger afe42f6d0b intl/localename: control langinfo.h inclusion
This header is only used to work around buggy behavior in old versions
of glibc, so do not include it all the time.  Otherwise we get build
failures on systems that do not provide langinfo.h.

* gettext-runtime/intl/localename.c: Wrap langinfo.h include with same
ifdefs used in the source later on.
2015-10-14 15:03:32 +09:00
Daiki Ueno 614ff78da5 build: Remove ChangeLogs
Generate ChangeLog files at "make dist" time, using
gitlog-to-changelog.  We still keep ChangeLog files under "po" and
"intl" directories, since those files are copied as part of gettext
infrastructure and it is still meaningful to have them there.
* .gitignore: Add ChangeLog files.
* Admin/release-steps: Remove mention of running update-changelog
script.
* Admin/update-changelog: Remove.
* Makefile.am (gen-ChangeLog): New rule.
* autogen.sh: Copy gitlog-to-changelog from gnulib.  Create empty
ChangeLog files to suppress Automake errors.
* gettext-tools/doc/Makefile.am (EXTRA_DIST): Remove ChangeLog.0.
* gettext-tools/man/Makefile.am (EXTRA_DIST): Remove ChangeLog.0.
* gettext-tools/src/Makefile.am (EXTRA_DIST): Remove ChangeLog.0.
* gettext-tools/tests/Makefile.am (EXTRA_DIST): Remove ChangeLog.0.
* gnulib-local/Makefile.am (EXTRA_DIST): Remove ChangeLog files.
* */ChangeLog: Rename to ChangeLog.0 or ChangeLog.1.
* HACKING: Add brief guideline to submit patches.
2015-10-14 15:00:09 +09:00
Daiki Ueno 20eb508d5a build: Fix the last commit 2015-10-01 18:08:45 +09:00
Daiki Ueno 5b49354cc5 build: Fix the last commit 2015-09-30 18:10:03 +09:00
Daiki Ueno 813429f64d build: Avoid file name length limitation of tar
"csharpdoc" is a bit too long to accommodate long file names with
the version returned from git-version-gen:
  tar: gettext-0.19.6.4-1e74e4/.../csharpdoc/...: file name is too
    long (max 99); not dumped
* gettext-runtime/intl-csharp/doc: Rename from csharpdoc.
* gettext-runtime/intl-cshap/Makefile.am (doc, DOC_FILES): Adjust to the
directory name change.
2015-09-30 17:34:08 +09:00
Daiki Ueno b0df895fb5 build: Regenerate ABOUT-NLS 2015-09-30 15:36:48 +09:00
Daiki Ueno 3297b0f236 build: Fix ABOUT-NLS generation with newer Texinfo 2015-09-30 15:35:46 +09:00
Daiki Ueno c00302c3b2 Release 0.19.6 2015-09-11 12:03:07 +09:00
Daiki Ueno 14df6a2c35 Update translations 2015-09-11 12:01:48 +09:00
Daiki Ueno 2a8f15846f Prepare for 0.19.6 2015-09-11 11:49:14 +09:00
Daiki Ueno 827cf93296 doc: Regenerate translation matrix
* gettext-runtime/ABOUT-NLS: Regenerate for 0.19.6.
* gettext-runtime/doc/matrix.texi: Regenerate for 0.19.6.
2015-09-11 10:43:14 +09:00
Daiki Ueno e4ec2e69c5 po: Support reading header comments from file
* Makefile.in.in ($(DOMAIN).pot-update): Replace header comment
with the content of $(DOMAIN).pot-header, if exists.
2015-09-01 11:18:17 +09:00
Paul Eggert 26dd339d2c intl: fix memory leak in _nl_load_domain
* loadmsgcat.c (_nl_load_domain):
Free data after a read failure.  See:
https://sourceware.org/bugzilla/show_bug.cgi?id=18871
2015-08-27 11:22:12 +09:00
Daiki Ueno 50eae3f047 autopoint: Respect AM_GNU_GETTEXT_REQUIRE_VERSION
* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT_REQUIRE_VERSION): New macro.
Bump serial to 67.
* gettext-tools/doc/autopoint.texi: Mention AM_GNU_GETTEXT_REQUIRE_VERSION.
* gettext-tools/misc/gettextize.in: Check if AM_GNU_GETTEXT_VERSION is
used.
* gettext-tools/misc/autopoint.in: Respect AM_GNU_GETTEXT_REQUIRE_VERSION.
* gettext-tools/tests/autopoint-2: Check AM_GNU_GETTEXT_REQUIRE_VERSION.
2015-08-21 15:42:48 +09:00
Daiki Ueno 2929cd21f3 intl: Pacify compilation with pre-C99 compilers
* loadmsgcat.c (_nl_load_domain): Move the call to
__libc_lock_define_initialized_recursive to the end of local
variable declarations to avoid extra ';' being expanded to an
empty statement.
Reported by pan7 in:
<http://savannah.gnu.org/support/?108864>.
2015-08-21 10:22:01 +09:00
Daiki Ueno 1ec1eb9e73 Release 0.19.5 2015-07-10 15:04:12 +09:00
Daiki Ueno 9a4dfca3d5 Update translations 2015-07-10 15:03:12 +09:00
Daiki Ueno fce5fdcbc5 intl: Check for getlocalename_l
* intl.m4 (gt_INTL_SUBDIR_CORE): Check also for getlocalename_l.
Bump serial to 29.
2015-07-10 10:55:31 +09:00
Daiki Ueno 43775d2095 intl: Update from gnulib
* localename.c: Update from gnulib.
2015-07-10 10:35:50 +09:00
Daiki Ueno edcb137ca2 maint: Add more files to .gitignore 2015-06-25 13:01:05 +09:00
Daiki Ueno f4563a292c m4, help2man: Update from gnulib
* gettext-runtime/m4/codeset.m4: Update copyright year.
* gettext-runtime/m4/gettext.m4: Likewise.
* gettext-runtime/m4/iconv.m4: Likewise.
* gettext-runtime/m4/intl.m4: Likewise.
* gettext-runtime/m4/intldir.m4: Likewise.
* gettext-runtime/m4/intlmacosx.m4: Likewise.
* gettext-runtime/m4/lcmessage.m4: Likewise.
* gettext-runtime/m4/nls.m4: Likewise.
* gettext-runtime/m4/po.m4: Likewise.
* gettext-runtime/m4/extern-inline.m4: Likewise.  Port the following
change:
  2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
    extern-inline: no need for workaround in GCC 5.1
    * doc/extern-inline.texi (extern inline):
    * m4/extern-inline.m4 (gl_EXTERN_INLINE):
    GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
    around these bugs in GCC 5.1 and later.  Maybe in a decade or
    two we can remove these workarounds.
* gettext-tools/man/help2man: Update copyright year.
2015-06-23 13:08:50 +09:00
Daiki Ueno 7afc7f7c19 Prepare for 0.19.5 2015-06-23 12:32:37 +09:00
Daiki Ueno 03ed1fb83b intl: Update locale.alias
* locale.alias: Update from glibc:
2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
  Remove obsolete aliases that broke 'locale -a'
  [BZ #18412]
  * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
  which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
  breaking some applications that use 'locale -a' output.
  Change the encoding of this file from Latin-1 to ASCII to avoid
  other potential problems with people grepping this file.
2015-06-23 12:29:11 +09:00
Daiki Ueno 4c0c9292f4 doc: Regenerate translation matrix
* gettext-runtime/ABOUT-NLS: Regenerate for 0.19.5.
* gettext-runtime/doc/matrix.texi: Regenerate for 0.19.5.
2015-06-23 12:20:25 +09:00
Daiki Ueno 685db98ea9 maint: Make Matrix.java more flexible
* gettext-runtime/doc/Admin/Matrix.java (Matrix): Group teams
considering the actual table width, instead of using a hard-coded rule.
2015-06-23 12:08:38 +09:00
Daiki Ueno 4a22b2df2b maint: Update copyright year 2015-06-05 16:11:39 +09:00
Benno Schulenberg 501d166b9c po: When doing msgmerge --version, no other options are needed.
* gettext-runtime/po/Makefile.in.in: Do not use --update when simply
checking for the version, as this might fail when msgmerge is very old.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-06-02 11:50:59 +09:00
Daiki Ueno 6e9a7a6fc4 intl: Update from gnulib
* gettext-runtime/intl/localename.c, gettext-runtime/intl/vasnprintf.c:
Update from gnulib.
* gettext-runtime/libasprintf/vasnprintf.c: Update from gnulib.
2015-03-12 13:13:02 +09:00
Daiki Ueno 9e117619d8 po: Clarify license notice
* gettext-runtime/po/Makefile.in.in: Replace our own wording of
licensing with GNU All-Permissive License.  Reported by Riley Baird in:
<https://lists.debian.org/debian-legal/2015/01/msg00048.html>.
2015-02-18 11:17:38 +09:00
Daiki Ueno fe642a4949 intl: Update from gnulib
* config.charset, localcharset.c, relocatable.c, vasnprintf.c:
Update from gnulib.
* codeset.m4, extern-inline.m4, fcntl-o.m4, gettext.m4, glibc2.m4:
* glibc21.m4, iconv.m4, intdiv0.m4, intldir.m4, intlmacosx.m4:
* intmax.m4, inttypes-pri.m4, inttypes_h.m4, lcmessage.m4, lock.m4:
* longlong.m4, nls.m4, printf-posix.m4, progtest.m4:
* size_max.m4, stdint_h.m4, threadlib.m4, uintmax_t.m4:
* visibility.m4, wchar_t.m4, wint_t.m4, xsize.m4: Update copyright
year.
2015-01-22 17:55:36 +09:00
Will Newton d5c2a5163b intl: Merge from glibc
* bindtextdom.c: Update copyright to use year ranges.
* dcgettext.c: Update copyright to use year ranges.
[_LIBC]: Use libc_hidden_def instead of INTDEF.
* dcigettext.c: Update copyright to use year ranges.
Test HAVE_TSEARCH with #ifdef rather than #if.
(DCIGETTEXT) [_LIBC]: Use __current_locale_name instead of
_current_locale_name.
* dcngettext.c: Update copyright to use year ranges.
* dgettext.c: Update copyright to use year ranges.
[_LIBC]: Remove use of INTUSE macro.
* dngettext.c: Update copyright to use year ranges.
* explodename.c: Likewise.
* finddomain.c: Update copyright to use year ranges.
(_nl_finddomain_subfreeres): Use void in no-arguments function
definition.
* gettext.c: Update copyright to use year ranges.
[_LIBC]: Remove use of INTUSE macro.
* gettextP.h: Update copyright to use year ranges.
[_LIBC]: Forward declaration of struct loaded_domain.
* gmo.h: Update copyright to use year ranges.
* hash-string.c: Likewise.
* hash-string.h: Likewise.
* l10nflist.c: Update copyright to use year ranges.
[_LIBC]: Remove use of INTUSE macro.
Wrap pop function in [!ARCH_POP].
* loadinfo.h: Update copyright to use year ranges.
* loadmsgcat.c: Likewise.
* localealias.c: Update copyright to use year ranges.
Test ENABLE_RELOCATABLE with #ifdef rather than #if.
[_LIBC]: Use __strcasecmp_l for strcasecmp.
[_LIBC]: Use __fgets_unlocked for FGETS.
Test HAVE_DECL_FGETS_UNLOCKED with #ifdef rather than #if.
Test HAVE_DECL_FEOF_UNLOCKED with #ifdef rather than #if.
(read_alias_file) [_LIBC]: Open file with O_CLOEXEC.
(extend_alias_table): Use void in no-arguments function
definition.
* ngettext.c: Update copyright to use year ranges.
* plural-exp.c: Update copyright to use year ranges.
Test __APPLE_CC__ with #ifdef rather than #if.
(GERMANIC_PLURAL): Make const.
(init_germanic_plural): Use void in no-arguments function
definition.
* plural-exp.h: Update copyright to use year ranges.
(GERMANIC_PLURAL): Make const.
* plural.y: Update copyright to use year ranges.
* textdomain.c: Likewise.
2015-01-21 12:01:15 +09:00
Václav Slavík cb29e273b0 intl: Add missing libintl.h dependency from pluralx.$lo
plural(x).c depends on libintl.h if ENABLE_NLS, but the makefile
didn't have corresponding dependency for pluralx.c, because
d2d04ba forgot to add it.  Fix by using $(PLURAL_OBJECT) for the
dependency rule too.
* Makefile.in ($(PLURAL_OBJECT)): Depend on libintl.h.
2015-01-04 08:46:24 +09:00
Daiki Ueno 92097b86a1 Release 0.19.4 2014-12-24 15:33:18 +09:00
Daiki Ueno bae5495f84 Prepare for 0.19.4 2014-12-24 15:32:05 +09:00
Daiki Ueno d91696cf9c Update translations 2014-12-24 15:32:02 +09:00
Daiki Ueno c6bce7fbea intl: Bump m4 serial
* intl.m4, po.m4: Bump serial to avoid any conflict with Gnulib's
version after Gnulib commit 71be4c87.
2014-12-10 13:05:20 +09:00
Daiki Ueno d2d04ba907 intl: Make the LCOV workaround non-intrusive
* gettext-runtime/intl/Makefile.in (PLURAL_OBJECT): New variable.
(OBJECTS): Refer to $(PLURAL_OBJECT) instead of plural.$lo.
(pluralx.c, pluralx.lo): New rule.
(mostlyclean): Remove pluralx.c.
* gettext-tools/configure.ac: Replace PLURAL_OBJECT in intl/Makefile.
2014-12-04 12:00:36 +09:00
Daiki Ueno f31999248a Update after Gnulib changed
* extern-inline.m4, iconv.m4: Update from Gnulib.
2014-12-03 16:42:35 +09:00
Daiki Ueno 540bce16ab intl: Work around LCOV relative base directory resolution
* gettext-runtime/intl/Makefile.in (plural.lo): Resolve relative
source file name given with '#line' directive, when $(srcdir) !=
$(builddir).
(mostlyclean): Remove plural.c generated in the 'plural.lo' rule.
* gettext-tools/src/plural-exp.c: Include "../intl/plural.c" instead
of "../../gettext-runtime/intl/plural.c".
2014-12-03 15:15:44 +09:00
Daiki Ueno f4b41ad3a5 Release 0.19.3 2014-10-15 18:37:28 +09:00
Daiki Ueno b4b34c7204 Prepare for 0.19.3 2014-10-15 18:37:28 +09:00
Daiki Ueno 5fd79b0faa po: Make it possible to pass custom options to msginit
* Makevars (MSGINIT_OPTIONS): New variable.
* Rules-quot: Use it when invoking msginit.
If one wants to use '--no-wrap' in MSGMERGE_OPTIONS and
XGETTEXT_OPTIONS, there should be a way to pass the option to
msginit.  Reported by Ludovic Courtès in:
<https://lists.gnu.org/archive/html/bug-gettext/2014-08/msg00004.html>.
2014-10-08 15:24:02 +09:00
Daiki Ueno e854d2c7f6 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>.
2014-10-02 17:48:34 +09:00
Daiki Ueno ce70d92b4b Update after Gnulib changed 2014-09-30 19:09:57 +09:00
Paul Eggert 5fefead0e4 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>.
2014-09-30 18:24:50 +09:00
Daiki Ueno 0f8e2ccaa8 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.
2014-07-16 15:34:56 +09:00
Daiki Ueno 29a9384c6a Release 0.19.2 2014-07-14 14:29:05 +09:00
Daiki Ueno fea08dbb8c Prepare for 0.19.2 2014-07-14 14:28:48 +09:00
Daiki Ueno d4774d2aba intl: Remove intl/VERSION for gettext packages
* Makefile.in (distclean): Remove intl/VERSION for gettext-runtime
and gettext-tools packages.
2014-07-14 14:28:46 +09:00
Siddhesh Poyarekar b1ded6a922 intl: Sync up loadmsgcat.c with glibc
* loadmsgcat.c [_LIBC]: Define PRI_MACROS_BROKEN unconditionally.
2014-07-03 17:43:32 +09:00