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

11 years agomsgfmt: Accumulate errors when parsing the PO header
Daiki Ueno [Tue, 13 May 2014 06:16:39 +0000 (15:16 +0900)] 
msgfmt: Accumulate errors when parsing the PO header

Problem reported by Peter Eisentraut at
<https://savannah.gnu.org/bugs/?40262>.
* msgl-check.c (check_header_entry): Return the number of errors.
(check_message): Check the return value of check_header_entry.

11 years agoproject-id: Add missing quotes around `pwd` for basename
Daiki Ueno [Mon, 12 May 2014 20:46:25 +0000 (05:46 +0900)] 
project-id: Add missing quotes around `pwd` for basename

Problem reported at <http://bugs.debian.org/654779>.
* project-id: Quote argument of the basename command.

11 years agopo: Set PACKAGE_GNU to empty by default, to preserve the old behavior
Daiki Ueno [Sat, 10 May 2014 20:56:44 +0000 (05:56 +0900)] 
po: Set PACKAGE_GNU to empty by default, to preserve the old behavior

11 years agotests: Improve test coverage
Daiki Ueno [Mon, 12 May 2014 09:20:59 +0000 (18:20 +0900)] 
tests: Improve test coverage

11 years agomsgfilter: Fix quote handling of doubled grave charaters
Daiki Ueno [Mon, 12 May 2014 09:14:54 +0000 (18:14 +0900)] 
msgfilter: Fix quote handling of doubled grave charaters

* filter-quote.c (convert_ascii_quote_to_unicode): Fix handling of
doubled grave characters.

11 years agobuild: Remove unused variables
Daiki Ueno [Mon, 12 May 2014 08:16:11 +0000 (17:16 +0900)] 
build: Remove unused variables

11 years agobuild: Don't regenerate man.1 if man.1.in does not exist
Daiki Ueno [Mon, 12 May 2014 07:17:03 +0000 (16:17 +0900)] 
build: Don't regenerate man.1 if man.1.in does not exist

* Makefile.am (gettext.1 ngettext.1): Don't try to replace
@localedir@ in .1.in if x-to-1 fails; rewrite the target using the
snippet in the Autoconf manual.

11 years agobuild: Fix Woe32 cross build
Daiki Ueno [Mon, 12 May 2014 06:18:38 +0000 (15:18 +0900)] 
build: Fix Woe32 cross build

* msgfmt.c (add_languages): New function split from get_languages.
(get_languages): Use add_languages instead of manually parsing
LINGUAS envvar with strtok_r possibly provided by libgettextlib.

* x-c.h (literalstring_c): Remove unnecessary DLL_VARIABLE.
* xgettext.c (arglist_parser_alloc): Use LET_NONE instead of 0.
(arglist_parser_remember): Likewise.
* xgettext.h (enum literalstring_escape_type): New enum value
LET_NONE.

* woe32dll/gettextsrc-exports.c: Don't export line_comment and
po_lex_iconv if undefined.

11 years agointl: Define possibly undefined _GL_UNUSED in xsize.c
Daiki Ueno [Sat, 10 May 2014 20:44:35 +0000 (05:44 +0900)] 
intl: Define possibly undefined _GL_UNUSED in xsize.c

11 years agodoc: Fix wording
Daiki Ueno [Sat, 10 May 2014 07:17:56 +0000 (16:17 +0900)] 
doc: Fix wording

11 years agotests: Fix file modes
Daiki Ueno [Sat, 10 May 2014 07:15:55 +0000 (16:15 +0900)] 
tests: Fix file modes

11 years agoUpdate after Gnulib changed.
Daiki Ueno [Sat, 10 May 2014 03:42:25 +0000 (12:42 +0900)] 
Update after Gnulib changed.

11 years agoman: Don't depend on the binary executable
Daiki Ueno [Sat, 10 May 2014 03:40:57 +0000 (12:40 +0900)] 
man: Don't depend on the binary executable

11 years agoNEWS: Mention msgattrib --empty
Daiki Ueno [Sat, 10 May 2014 00:48:30 +0000 (09:48 +0900)] 
NEWS: Mention msgattrib --empty

11 years agomsgattrib: Add --empty option
Guido Flohr [Thu, 10 Apr 2014 08:40:52 +0000 (17:40 +0900)] 
msgattrib: Add --empty option

11 years agovala: Interpret string literals lazily
Daiki Ueno [Fri, 9 May 2014 08:00:48 +0000 (17:00 +0900)] 
vala: Interpret string literals lazily

* x-vala.c (P7_EOF, P7_STRING_END, P7_QUOTES, P7_QUOTE, P7_NEWLINE)
(UNICODE, IS_UNICODE, UNICODE_VALUE): Remove.
(phase7_getc): Remove.
(phase7_ungetc): Remove.
(phase3_get): Use 'phase2_get' directly to extract string
literals; use 'arglist_parser_remember_literal' instead of
'arglist_parser_remember'.
(literalstring_c): Declare external variable.
(extract_balanced): Remove the
'xgettext_current_source_encoding' setting to prevent encoding
conversion around 'arglist_parser_done'.
(token_ty): New field 'escape'.
* x-vala.h (SCANNERS_VALA): Register 'literalstring_c' as a
literalstring_parser.

11 years agoc: Interpret string literals lazily
Daiki Ueno [Wed, 7 May 2014 09:51:14 +0000 (18:51 +0900)] 
c: Interpret string literals lazily

* x-c.c (P7_EOF, P7_STRING_END, P7_QUOTES, P7_QUOTE, P7_NEWLINE)
(UNICODE, IS_UNICODE, UNICODE_VALUE): Remove.
(phase7_get): Remove.
(phase7_ungetc): Remove.
(phase5_get): Use 'phase3_get' directly to extract string
literals; use 'arglist_parser_remember_literal' instead of
'arglist_parser_remember'.
(literalstring_parse): New function.
(literalstring_c): New variable.
(extract_parenthesized): Remove the
'xgettext_current_source_encoding' setting to prevent encoding
conversion around 'arglist_parser_done'.
* x-c.h (SCANNERS_C): Register 'literalstring_c' as a
literalstring_parser.
(literalstring_c): New variable declaration.

11 years agoxgettext: Provide a way to interpret string literals lazily
Daiki Ueno [Wed, 7 May 2014 09:48:25 +0000 (18:48 +0900)] 
xgettext: Provide a way to interpret string literals lazily

* xgettext.c (extract_ty): New field 'literalstring_parser'.
(current_literalstring_parser): New variable.
(extract_from_file): Set 'current_literalstring_parser'.
(savable_comment_convert_encoding): New function.
(arglist_parser_remember_literal): New function.
(arglist_parser_remember): Call 'arglist_parser_remember_literal'.
(arglist_parser_done): Call literalstring_parser on msgctxt,
msgid, and msgid_plural before calling 'remember_a_message';
convert encoding of msgid_comment.
* x-*.h: Register 'literalstring_parser' through SCANNER_*.
* xgettext.h (enum literalstring_escape_type): New enum.
(struct literalstring_parser): New struct.
(struct partial_call): New fields 'msgctxt_escape',
'msgid_escape', and 'msgid_plural_escape'.
(arglist_parser_remember_literal): New function declaration.
(savable_comment_convert_encoding): New function declaration.

11 years agoxgettext: Make mixed_string_buffer_done always return UTF-8 string
Daiki Ueno [Wed, 7 May 2014 03:32:27 +0000 (12:32 +0900)] 
xgettext: Make mixed_string_buffer_done always return UTF-8 string

11 years agoexamples: Don't fail on "make install" when a PO file is missing
Daiki Ueno [Tue, 6 May 2014 00:54:33 +0000 (09:54 +0900)] 
examples: Don't fail on "make install" when a PO file is missing

* Makefile.am (install-data-local): Don't fail if a PO file does
not exist, but warn user to do "make dist".

11 years agodoc: Add tips to maintain PO files in the repository
Daiki Ueno [Mon, 5 May 2014 06:21:59 +0000 (15:21 +0900)] 
doc: Add tips to maintain PO files in the repository

* gettext.texi (Translations under Version Control): New section.

11 years agodoc: Talk about generic VCS, not CVS
Daiki Ueno [Mon, 5 May 2014 02:33:23 +0000 (11:33 +0900)] 
doc: Talk about generic VCS, not CVS

* gettext.texi (Version Control Issues): Rename from "CVS Issues";
talk about generic issues when using version control systems.

11 years agomaint: Update Admin/plans
Daiki Ueno [Sun, 4 May 2014 20:37:56 +0000 (05:37 +0900)] 
maint: Update Admin/plans

11 years agoNEWS: Mention the prefixed comment-tag change
Daiki Ueno [Sun, 4 May 2014 10:01:24 +0000 (19:01 +0900)] 
NEWS: Mention the prefixed comment-tag change

11 years agoAdd missing file tests/xgettext-11
Daiki Ueno [Sun, 4 May 2014 09:55:19 +0000 (18:55 +0900)] 
Add missing file tests/xgettext-11

11 years agoconfigure: require automake >= 1.13
Jehan [Sat, 3 May 2014 10:26:50 +0000 (22:26 +1200)] 
configure: require automake >= 1.13

Macro AM_EXTRA_RECURSIVE_TARGETS defined in Automake 1.13.
* configure.ac (AM_INIT_AUTOMAKE): Require Automake 1.13 or later.

11 years agotests: Add test for prefixed comment tag
Daiki Ueno [Sat, 3 May 2014 02:10:24 +0000 (11:10 +0900)] 
tests: Add test for prefixed comment tag

* xgettext-11: New file.
* Makefile.am (TESTS): Add new test.

11 years agoxgettext: Recognize comment tag prefix
Daiki Ueno [Mon, 21 Apr 2014 04:32:00 +0000 (13:32 +0900)] 
xgettext: Recognize comment tag prefix

Reported by Jiang Xin in
<http://article.gmane.org/gmane.comp.version-control.git/246462>.
* xgettext.c (remember_a_message): Discard a string prefixed to the comment
tag from all remaining comment lines.

11 years agoNEWS: Mention Scheme scanner change
Daiki Ueno [Sat, 3 May 2014 01:11:14 +0000 (10:11 +0900)] 
NEWS: Mention Scheme scanner change

11 years agoUpdate ChangeLog.
Daiki Ueno [Sat, 3 May 2014 01:10:48 +0000 (10:10 +0900)] 
Update ChangeLog.

11 years agoNEWS: Mention more changes for 0.19
Daiki Ueno [Fri, 2 May 2014 20:15:43 +0000 (05:15 +0900)] 
NEWS: Mention more changes for 0.19

11 years agoc: Support C99-style Unicode character escapes
Daiki Ueno [Fri, 2 May 2014 19:57:37 +0000 (04:57 +0900)] 
c: Support C99-style Unicode character escapes

* x-c.c: Include assert.h and po-charset.h.
(P7_QUOTES, P7_QUOTE, P7_NEWLINE): Redefine as a negative integer.
(P7_EOF, P7_STRING_END): New definitions.
(UNICODE): New macro.
(IS_UNICODE): New macro.
(UNICODE_VALUE): New macro.
(phase7_getc): Recognize "\unnnn" and "\Unnnnnnnn".
(phase5_get): Use mixed_string_buffer for parse string literal.

11 years agoxgettext: Allow mixed_string_buffer_done to return non-UTF-8 string
Daiki Ueno [Fri, 2 May 2014 19:53:05 +0000 (04:53 +0900)] 
xgettext: Allow mixed_string_buffer_done to return non-UTF-8 string

11 years agoFix typo in commit f597467a
Daiki Ueno [Fri, 2 May 2014 19:29:37 +0000 (04:29 +0900)] 
Fix typo in commit f597467a

11 years agoxgettext: Fix memleaks around wrong usage of mixed_string_buffer_done
Daiki Ueno [Fri, 2 May 2014 12:18:33 +0000 (21:18 +0900)] 
xgettext: Fix memleaks around wrong usage of mixed_string_buffer_done

11 years agoxgettext: Add more comments to mixed_string_buffer usage
Daiki Ueno [Fri, 2 May 2014 09:13:33 +0000 (18:13 +0900)] 
xgettext: Add more comments to mixed_string_buffer usage

11 years agovala: Support C99-style Unicode escapes
Daiki Ueno [Fri, 2 May 2014 08:39:37 +0000 (17:39 +0900)] 
vala: Support C99-style Unicode escapes

11 years agoxgettext: Factor out commonly used mixed_string_buffer
Daiki Ueno [Fri, 2 May 2014 06:58:04 +0000 (15:58 +0900)] 
xgettext: Factor out commonly used mixed_string_buffer

* x-python.c (init_mixed_string_buffer)
(mixed_string_buffer_append_byte)
(mixed_string_buffer_append_unicode_grow)
(mixed_string_buffer_append_unicode)
(mixed_string_buffer_flush_utf16_surr)
(mixed_string_buffer_flush_curr_buffer)
(mixed_string_buffer_append, mixed_string_buffer_result)
(free_mixed_string_buffer): Move to...
* xgettext.c: ...here.
(mixed_string_buffer_alloc): Rename from init_mixed_string_buffer.
(mixed_string_buffer_append_to_curr_buffer): Rename from
mixed_string_buffer_append_byte.
(mixed_string_buffer_append_to_utf8_buffer): Rename from
mixed_string_buffer_append_unicode.
(mixed_string_buffer_grow_utf8_buffer): Rename from
mixed_string_buffer_append_unicode_grow.
(mixed_string_buffer_append_char): Split from
mixed_string_buffer_append.
(mixed_string_buffer_append_unicode): Split from
mixed_string_buffer_append.
(mixed_string_buffer_done): New function merging
mixed_string_buffer_result and free_mixed_string_buffer.
* xgettext.h (mixed_string_buffer): New struct moved from
x-python.c; add logical_file_name and line_number fields.
(mixed_string_buffer_alloc): New function declaration.
(mixed_string_buffer_append_char): New function declaration.
(mixed_string_buffer_append_unicode): New function declaration.
(mixed_string_buffer_done): New function declaration.
* x-javascript.c (init_mixed_string_buffer)
(mixed_string_buffer_append_byte)
(mixed_string_buffer_append_unicode_grow)
(mixed_string_buffer_append_unicode)
(mixed_string_buffer_flush_utf16_surr)
(mixed_string_buffer_flush_curr_buffer)
(mixed_string_buffer_append, mixed_string_buffer_result)
(free_mixed_string_buffer): Remove.

11 years agoFix commit 4dc36d2f
Daiki Ueno [Fri, 2 May 2014 03:06:57 +0000 (12:06 +0900)] 
Fix commit 4dc36d2f

11 years agoMakefile.in.in: Rename DIST_DEPENDS_ON_POT to DIST_DEPENDS_ON_UPDATE_PO
Daiki Ueno [Fri, 2 May 2014 01:38:43 +0000 (10:38 +0900)] 
Makefile.in.in: Rename DIST_DEPENDS_ON_POT to DIST_DEPENDS_ON_UPDATE_PO