nexmon – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 2016-06-11 Daiki Ueno <ueno@gnu.org>
2  
3 build: Fix unintentional soname bump
4 * gettext-runtime/intl/Makefile.in: Revert LTV_CURRENT and increment
5 LTV_REVISION.
6 * gettext-tools/libgettextpo/Makefile.am: Likewise.
7  
8 2016-06-09 Daiki Ueno <ueno@gnu.org>
9  
10 Update translations
11 * gettext-runtime/po/eo.po: Update from Felipe Castro <fefcas@gmail.com>
12 * gettext-runtime/po/hr.po: Update from Božidar Putanec <bozidarp@yahoo.com>
13 * gettext-runtime/po/sv.po: Update from Göran Uddeborg <goeran@uddeborg.se>
14 * gettext-tools/examples/po/eo.po: Update from Felipe Castro <fefcas@gmail.com>
15 * gettext-tools/examples/po/hr.po: Update from Božidar Putanec <bozidarp@yahoo.com>
16 * gettext-tools/examples/po/sv.po: Update from Göran Uddeborg <goeran@uddeborg.se>
17 * gettext-tools/po/bg.po: Update from Roumen Petrov <transl@roumenpetrov.info>
18 * gettext-tools/po/es.po: Update from Antonio Ceballos <aceballos@gmail.com>
19 * gettext-tools/po/fr.po: Update from Stéphane Aulery <lkppo@free.fr>
20 * gettext-tools/po/ja.po: Update from Masahito Yamaga <ma@yama-ga.com>
21 * gettext-tools/po/ko.po: Update from Changwoo Ryu <cwryu@debian.org>
22 * gettext-tools/po/nl.po: Update from Benno Schulenberg <benno@vertaalt.nl>
23 * gettext-tools/po/pl.po: Update from Rafał Maszkowski <rzm@icm.edu.pl>
24 * gettext-tools/po/sk.po: Update from Marcel Telka <marcel@telka.sk>
25 * gettext-tools/po/sr.po: Update from Мирослав Николић <miroslavnikolic@rocketmail.com>
26 * gettext-tools/po/sv.po: Update from Göran Uddeborg <goeran@uddeborg.se>
27 * gettext-tools/po/tr.po: Update from Nilgün Belma Bugüner <nilgun@buguner.name.tr>
28 * gettext-tools/po/uk.po: Update from Yuri Chornoivan <yurchor@ukr.net>
29 * gettext-tools/po/vi.po: Update from Trần Ngọc Quân <vnwildman@gmail.com>
30  
31 Update matrix
32  
33 NEWS: Fix release date of 0.19.8
34  
35 Prepare for 0.19.8
36  
37 THANKS: Update
38  
39 2016-06-08 Daiki Ueno <ueno@gnu.org>
40  
41 gnulib-local: Work around regcomp.c compile error
42 * gnulib-local/Makefile.am (EXTRA_DIST): Add lib/regcomp.c.diff.
43 * gnulib-local/lib/regcomp.c.diff: New file, partially revert Gnulib
44 commit f97745b0.
45  
46 tests: Use Exit instead of exit if init.sh is used
47 * gettext-tools/tests/*: Use Exit instead of exit, as suggested by
48 init.sh.
49  
50 2016-06-07 Daiki Ueno <ueno@gnu.org>
51  
52 build: Create intl/ChangeLog
53 * autogen.sh: Create an empty ChangeLog for gettext-runtime/intl, which
54 is necessary when running "make dist" from the top level directory.
55  
56 2016-06-02 Daiki Ueno <ueno@gnu.org>
57  
58 build: Simplify placeholder ChangeLog creation
59 * autogen.sh: Use empty ChangeLog for placeholder. Bail out if any
60 error occurs in autoreconf phase.
61  
62 maint: Update release steps
63  
64 2016-06-01 Daiki Ueno <ueno@gnu.org>
65  
66 tests: Check invalid input in sentence-1-prg
67 * gettext-tools/tests/sentence-1-prg.c (main): Check input buffer
68 overflow, while it is not possible with the current test case.
69  
70 tests: Fix test data for sentence-1
71 * gettext-tools/tests/sentence-1: Use NO-BREAK SPACE instead of
72 IDEOGRAPHIC SPACE.
73  
74 2016-05-31 Daiki Ueno <ueno@gnu.org>
75  
76 tests: Fix location of valgrind suppression file
77 * gettext-tools/tests/Makefile.am (CHECKER): Use $(abs_srcdir) instead
78 of $(srcdir).
79  
80 tests: Turn sentence test into a shell script
81 For consistency with other tests. Also it fixes a test failure when
82 built with --disable-shared, since LOG_COMPILER set to $(SHELL) doesn't
83 recognize binary executable.
84 * gettext-tools/tests/Makefile.am (TESTS): Rename 'sentence' to
85 'sentence-1'.
86 (check_PROGRAMS): Rename 'sentence' to 'sentence-1-prg'.
87 (sentence_1_prg_SOURCES): Rename from 'sentence_SOURCES'.
88 (sentence_1_prg_CPPFLAGS): Rename from 'sentence_CPPFLAGS'.
89 (sentence_1_prg_LDADD): Rename from 'sentence_LDADD'.
90 * gettext-tools/tests/sentence-1: New file.
91 * gettext-tools/tests/sentence-1-prg.c: Rename from sentence.c, move the
92 test data to sentence-1.
93 * gettext-tools/tests/.gitignore: Ignore sentence-1-prg.
94  
95 2016-05-30 Daiki Ueno <ueno@gnu.org>
96  
97 maint: Update copyright year
98  
99 xgettext: Update usage documentation
100 * gettext-tools/src/xgettext.c (usage): Mention 'bullet-unicode' check.
101  
102 2016-05-28 Daniel Burr <dburr@dburr.net> (tiny change)
103  
104 build: Make libxml2 check tighter
105 * gnulib-local/m4/libxml.m4 (gl_LIBXML): Try to check
106 xmlXPathSetContextNode, which is available in libxml2 2.9.1 or later.
107 Problem reported by Dominyk in:
108 http://savannah.gnu.org/bugs/?46844
109  
110 2016-05-27 Daiki Ueno <ueno@gnu.org>
111  
112 desktop: Add missing "extern" in header
113 * gettext-tools/src/read-desktop.h: Add "extern" to each function
114 declaration.
115 Possibly related to: https://savannah.gnu.org/bugs/?45896
116  
117 NEWS: Mention gettext.m4 change
118  
119 m4: Rely less on internal symbols
120 * gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): Skip checks for the
121 internal symbols _nl_msg_cat_cntr, _nl_domain_bindings, and
122 _nl_expand_alias, if __GNU_GETTEXT_SUPPORTED_REVISION is defined.
123 Problem reported and fix suggested by Masanori Ogino in:
124 https://lists.gnu.org/archive/html/bug-gettext/2016-04/msg00000.html
125 The rationale behind this is: (1) those symbol checks are for detecting
126 certain broken implementations, namely NetBSD and Solaris 7, and
127 (2) __GNU_GETTEXT_SUPPORTED_REVISION is not defined in those
128 implementations, while it is defined on compatible implementations, such
129 as musl-libc which doesn't have those internal symbols.
130  
131 2016-05-25 Daiki Ueno <ueno@gnu.org>
132  
133 NEWS: Add 0.19.8 changes
134  
135 intl: Pacify pre-C99 compilers
136 * gettext-runtime/intl/plural-exp.h (HAVE_STRUCT_INITIALIZER): New
137 macro, based on the check previously in plural-exp.c. Also add check
138 for __SUNPRO_C for Solaris Studio C compiler.
139 (GERMANIC_PLURAL): Define as 'struct expression' not 'const struct
140 expression' if struct/union initializers are not supported by the
141 compiler.
142 * gettext-runtime/intl/plural-exp.c: Use HAVE_STRUCT_INITIALIZER.
143 Reported by Dagobert Michelsen and investigated by pan7 in:
144 https://savannah.gnu.org/support/?108743
145  
146 2016-05-24 David Shea <dshea@redhat.com>
147  
148 desktop: Fix invalid memory access
149 * gettext-tools/src/read-desktop.c (desktop_lex): Don't access memory
150 deallocated with realloc(). Reported in:
151 http://savannah.gnu.org/bugs/?47991
152  
153 2016-05-23 Daiki Ueno <ueno@gnu.org>
154  
155 tests: Add more tests for JavaScript format string
156 * gettext-tools/tests/format-javascript-1: Add test for multiple uses of
157 same argument.
158 * gettext-tools/tests/format-javascript-2: Use proper flag to activate
159 javascript format checker.
160  
161 javascript: Fix format type compatibility check
162 * gettext-tools/src/format-javascript.c (format_check): Check if the two
163 argument types are the same.
164  
165 2016-05-20 Daiki Ueno <ueno@gnu.org>
166  
167 tests: Add test for ITS search path
168 * gettext-tools/tests/Makefile.am (TESTS): Add new test.
169 * gettext-tools/tests/xgettext-its-2: New file.
170  
171 search-path: Fix XDG_DATA_DIRS traversal
172 * gettext-tools/src/search-path.c (foreach_elements): Append "gettext"
173 suffix to each element from XDG_DATA_DIRS.
174  
175 search-path: Don't relocate dirs given as envvar
176 * gettext-tools/src/search-path.c (foreach_function_ty): New typedef.
177 (path_array_ty): New struct.
178 (foreach_components, increment, fill): New functions.
179 (get_search_path): Rewrite using those functions. Relocate
180 GETTEXTDATADIR here.
181 * gettext-tools/src/search-path.h (get_search_path): Update documentation.
182 * gettext-tools/src/msgfmt.c (main): Don't relocate directories in ITS
183 search path.
184 * gettext-tools/src/xgettext.c (main): Likewise.
185  
186 2016-05-19 Daiki Ueno <ueno@gnu.org>
187  
188 Update after Gnulib changed
189 * gnulib-local/lib/gettext.h: Update from gnulib.
190 * gettext-runtime/m4/extern-inline.m4: Likewise.
191 * gettext-runtime/m4/intdiv0.m4: Likewise.
192  
193 Update gnulib
194 * autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Explicitly pull 'gettext',
195 as the module is now marked as obsolete.
196 * gnulib-local/Makefile.am (EXTRA_DIST): Remove m4/hard-locale.m4.diff.
197 * gnulib-local/m4/hard-locale.m4.diff: Remove, as it is no longer
198 needed.
199 * gettext-tools/gnulib-lib/.gitignore: Ignore files brought by gnulib-tool.
200 * gettext-tools/gnulib-tests/.gitignore: Likewise.
201 * gettext-tools/libgettextpo/.gitignore: Likewise.
202  
203 2016-05-18 Daiki Ueno <ueno@gnu.org>
204  
205 maint: Add --no-git option to autogen.sh
206 * autogen.sh: Port --no-git option from Gnulib's bootstrap.
207  
208 2016-05-16 Daiki Ueno <ueno@gnu.org>
209  
210 msgfmt, xgettext: Respect XDG_DATA_DIRS
211 Suggested in https://savannah.gnu.org/bugs/?47123
212 * autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add 'xmemdup0'.
213 * gettext-tools/gnulib-lib/.gitignore: Ignore files brought by gnulib-tool.
214 * gettext-tools/gnulib-tests/.gitignore: Likewise.
215 * gettext-tools/src/search-path.c: New file.
216 * gettext-tools/src/search-path.h: New file.
217 * gettext-tools/src/Makefile.am (noinst_HEADERS): Add search-path.h.
218 (libgettextsrc_la_SOURCES): Add search-path.c.
219 * gettext-tools/src/msgfmt.c: Include "search-path.h".
220 (main): Use get_search_path to locate ITS directories.
221 * gettext-tools/src/xgettext.c: Include "search-path.h".
222 (main): Use get_search_path to locate ITS directories.
223  
224 javascript: Avoid uninitialized variable
225 * gettext-tools/src/format-javascript.c (format_check): Fix
226 loop initialization. Spotted by clang-analyzer.
227  
228 2016-03-26 Hanno Boeck <hanno@gentoo.org> (tiny change)
229  
230 lua: Avoid heap buffer overflow
231 * gettext-tools/src/x-lua.c (string_end): Allocate a room for
232 terminating NUL. Reported in: http://savannah.gnu.org/bugs/?4753
233  
234 2016-03-23 Daiki Ueno <ueno@gnu.org>
235  
236 format-python-brace: Support chained expression
237 * gettext-tools/src/format-python-brace.c (parse_directive): Recognize
238 chained getattr/getitem expressions.
239 * gettext-tools/tests/format-python-brace-1: Add test for the case where
240 both getattr and getitem are used.
241 Reported by Paul Franklin in:
242 https://lists.gnu.org/archive/html/bug-gettext/2016-03/msg00017.html
243  
244 doc: Fix ngettext usage example
245 * gettext-tools/doc/gettext.texi (Plural forms): Fix positional argument
246 syntax in the C example. Reported by Jonathan Leffler in:
247 http://lists.gnu.org/archive/html/bug-gettext/2016-03/msg00002.html
248  
249 2016-03-22 Daiki Ueno <ueno@gnu.org>
250  
251 javascript: Fix invalid memory access
252 * gettext-tools/src/format-javascript.c (format_parse): Fix numbered_arg
253 allocation for the unnumbered case.
254  
255 Reported by Roger Mc Murtrie in: <http://savannah.gnu.org/bugs/?47492>.
256  
257 2016-03-22 Daiki Ueno <ueno@gnu.org>
258  
259 maint: Clean up .gitignore
260 * gettext-tools/gnulib-lib/.gitignore: Sort lines.
261  
262 2016-03-02 Daiki Ueno <ueno@gnu.org>
263  
264 xgettext: Put --its help in the right section
265 * gettext-tools/src/xgettext.c (usage): Move --its=FILE option under
266 "Language specific options" from "Output details".
267  
268 2016-02-22 Daiki Ueno <ueno@gnu.org>
269  
270 xgettext: Add new check bullet-unicode
271 * gettext-tools/src/xgettext.c (main): Generalize --check option
272 handling.
273 * gettext-tools/src/message.h (enum syntax_check_type): New enum value
274 sc_bullet_unicode.
275 (NSYNTAXCHECKS): Increment.
276 * gettext-tools/src/message.c (syntax_check_name): Add name for
277 sc_bullet_unicode.
278 * gettext-tools/src/msgl-check.c (struct bullet_ty, struct
279 bullet_stack_ty): New struct.
280 (bullet_stack): New variable.
281 (syntax_check_bullet_unicode): New function.
282 (sc_funcs): Register syntax_check_bullet_unicode as a check function for
283 sc_bullet_unicode.
284 * gettext-tools/tests/xgettext-14: Add tests for --check=bullet-unicode
285  
286 2016-02-10 Daiki Ueno <ueno@gnu.org>
287  
288 doc: Mention the behavior stripping *.in
289 * gettext-tools/doc/gettext.texi (Preparing ITS Rules): Add footnote
290 explaining the matching behavior if the input file name has the .in
291 suffix. Suggested by Jan Synacek.
292  
293 2016-02-08 Daiki Ueno <ueno@gnu.org>
294  
295 javascript: Support '%m$' in format strings
296 Gjs has had support for numbered arguments in format strings since 1.40.
297 Recognize it as well in format-javascript, so msgfmt -c doesn't fail
298 when numbered arguments are in msgstr. Reported by Sean Burke in:
299 https://lists.gnu.org/archive/html/bug-gettext/2015-10/msg00002.html
300 * gettext-tools/src/format-javascript.c (struct numbered_arg): New
301 struct.
302 (struct spec): Rename format_args_count to numbered_arg_count. Add
303 NUMBERED field in place of FORMAT_ARGS. All callers changed.
304 (numbered_arg_compare): New function.
305 (format_parse): Handle numbered arguments. Based on format-awk.c.
306 (format_check): Add check for numbered arguments.
307 * gettext-tools/tests/format-javascript-1: Add tests for numbered
308 arguments.
309 * gettext-tools/tests/lang-javascript: Use numbered argument in format
310 strings. Add check for Gjs version >= 1.40.
311  
312 moopp: Revert file modes accidentally set
313  
314 2016-01-20 KO Myung-Hun <komh78@gmail.com>
315  
316 gettext-tools: Use a short name for DLLs on OS/2
317 OS/2 does not support a DLL name longer than 8 characters.
318  
319 * gettext-tools/configure.ac (OS2): Define on OS/2.
320 * gettext-tools/gnulib-lib/Makefile.am (libgettextlib_la_LDFLAGS):
321 Set a DLL name to gtlib on OS/2.
322 * gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_LDFLAGS):
323 Set a DLL name to gtpo on OS/2.
324 * gettext-tools/src/Makefile.am (libgettextsrc_la_LDFLAGS): Set a DLL
325 name to gtsrc on OS/2.
326  
327 2016-01-20 KO Myung-Hun <komh78@gmail.com>
328  
329 libasprintf: Build a shared library on OS/2
330 * gettext-runtime/libasprintf/configure.ac (LTNOUNDEF): Set to
331 -no-undefined on OS/2.
332  
333 2016-01-20 KO Myung-Hun <komh78@gmail.com>
334  
335 intl: Support UNIXROOT in BINDTEXTDOMAIN () on EMX
336 $UNIXROOT is a drive on which a root of FHS is.
337  
338 * gettext-runtime/intl/bindtextdom.c (BINDTEXTDOMAIN): Prepend
339 $UNIXROOT to dirname if it is started '/' or it is an empty string.
340  
341 2016-01-20 KO Myung-Hun <komh78@gmail.com>
342  
343 moop: Replace CR as well as LF with a space
344 On OS/2, EOL marker is CR+LF.
345  
346 * gnulib-local/bulid-aux/moopp (func_check_header_syntax):
347 Replace CR as well as LF with a space.
348  
349 2016-01-15 Bruno Haible <bruno@clisp.org>
350  
351 Change msgfmt to produce little-endian .mo files by default.
352 * gettext-tools/src/msgfmt.c (main): Initialize 'byteswap' so as to
353 produce little-endian .mo files by default.
354 * gettext-tools/doc/gettext.texi: Update documentation.
355 * gettext-tools/doc/msgfmt.texi (--endianness): Likewise.
356  
357 2016-01-13 Daiki Ueno <ueno@gnu.org>
358  
359 maint: Revert copyright year changes in test data
360 Some test programs started failing after mass update of copyright notice
361 for year 2016 (commit 7fa0c277), because of embedded test data with
362 fixed copyright dates. Revert the commit for those files.
363 Reported by Bruno Haible.
364 * .x-update-copyright: Exclude test programs embedding copyright date.
365 * gettext-tools/tests/msgcomm-22: Revert the last change.
366 * gettext-tools/tests/msgfilter-sr-latin-1: Likewise.
367 * gettext-tools/tests/msggrep-1: Likewise.
368 * gettext-tools/tests/msggrep-2: Likewise.
369 * gettext-tools/tests/msggrep-3: Likewise.
370 * gettext-tools/tests/msggrep-4: Likewise.
371 * gettext-tools/tests/msggrep-5: Likewise.
372 * gettext-tools/tests/msggrep-9: Likewise.
373 * gettext-tools/tests/msggrep-11: Likewise.
374 * gettext-tools/tests/msgmerge-14: Likewise.
375  
376 2016-01-07 Daiki Ueno <ueno@gnu.org>
377  
378 its: Recognize *.glade as a GtkBuilder file too
379  
380 2016-01-05 Santiago Vila <sanvila@unex.es> (tiny change)
381  
382 * PACKAGING: List version specific files
383  
384 2016-01-02 Daiki Ueno <ueno@gnu.org>
385  
386 maint: Update copyright year
387  
388 Update gnulib
389  
390 maint: Use maintainer-makefile from gnulib
391 * autogen.sh: Pull GNUmakefile, maint.mk, and dependency scripts in
392 build-aux.
393 * cfg.mk (update-copyright-env): Adjust for gettext.
394 * .x-update-copyright: New file.
395 * .gitignore: Ignore files brought in by gnulib-tool.
396  
397 2015-12-28 Daiki Ueno <ueno@gnu.org>
398  
399 maint: Update release-steps to current practice
400 * Admin/release-steps: Split document into two sections ('Making a
401 snapshot release' and 'Making an official release'), reorder some steps,
402 and remove mention of manual generation of PO/POT files.
403  
404 Update translations
405 * gettext-runtime/po/fr.po: Update from Stéphane Aulery <lkppo@free.fr>.
406 * gettext-runtime/po/nb.po: Update from Johnny A. Solbu <johnny@solbu.net>.
407 * gettext-runtime/po/pt_BR.po: Update from Rafael Ferreira <rffontenelle@gmail.com>.
408 * gettext-runtime/po/sr.po: Update from Мирослав Николић <miroslavnikolic@rocketmail.com>.
409 * gettext-runtime/po/zh_TW.po: Update from Wei-Lun Chao <bluebat@member.fsf.org>.
410 * gettext-tools/examples/po/fr.po: Update from Stéphane Aulery <lkppo@free.fr>.
411 * gettext-tools/examples/po/nb.po: Update from Johnny A. Solbu <johnny@solbu.net>.
412 * gettext-tools/examples/po/pt_BR.po: Update from Rafael Ferreira <rffontenelle@gmail.com>.
413 * gettext-tools/examples/po/sr.po: Update from Мирослав Николић <miroslavnikolic@rocketmail.com>.
414 * gettext-tools/examples/po/zh_TW.po: Update from Wei-Lun Chao <bluebat@member.fsf.org>.
415 * gettext-tools/po/bg.po: Update from Roumen Petrov <transl@roumenpetrov.info>.
416 * gettext-tools/po/es.po: Update from Antonio Ceballos <aceballos@gmail.com>.
417 * gettext-tools/po/fr.po: Update from Stéphane Aulery <lkppo@free.fr>.
418 * gettext-tools/po/ja.po: Update from Masahito Yamaga <ma@yama-ga.com>.
419 * gettext-tools/po/nl.po: Update from Benno Schulenberg <benno@vertaalt.nl>.
420 * gettext-tools/po/pt_BR.po: Update from Rafael Fontenelle <rffontenelle@gmail.com>.
421 * gettext-tools/po/sk.po: Update from Marcel Telka <marcel@telka.sk>.
422 * gettext-tools/po/sl.po: Update from Primoz PETERLIN <primozz.peterlin@gmail.com>.
423 * gettext-tools/po/sr.po: Update from Мирослав Николић <miroslavnikolic@rocketmail.com>.
424 * gettext-tools/po/uk.po: Update from Yuri Chornoivan <yurchor@ukr.net>.
425 * gettext-tools/po/vi.po: Update from Trần Ngọc Quân <vnwildman@gmail.com>.
426  
427 Prepare for 0.19.7
428  
429 doc: Regenerate translation matrix
430 * gettext-runtime/ABOUT-NLS: Regenerate for 0.19.7.
431 * gettext-runtime/doc/matrix.texi: Regenerate for 0.19.7.
432  
433 NEWS: Add 0.19.7 changes
434  
435 Update gnulib
436  
437 Ignore file brought by gnulib-tool
438 * gettext-tools/gnulib-tests/.gitignore: Ignore file brought by
439 gnulib-tool.
440  
441 2015-12-23 Daiki Ueno <ueno@gnu.org>
442  
443 term-ostream-tests: Add test data for FreeBSD 10.1
444 * gnulib-local/modules/term-ostream-tests: Add
445 test-term-ostream-xterm-freebsd101.out.
446 * gnulib-local/tests/test-term-ostream-xterm: Use new test data.
447 * gnulib-local/tests/test-term-ostream-xterm-freebsd101.out: New file.
448  
449 2015-12-21 Daiki Ueno <ueno@gnu.org>
450  
451 cldr-plurals: Fix errors from clang-analyzer
452 * gettext-tools/src/cldr-plurals.c (extract_rules): Add extra null
453 checks for NODE and BUFFER. Don't add NUL byte to the end of buffer
454 manually.
455  
456 2015-12-17 Daiki Ueno <ueno@gnu.org>
457  
458 po: Prefer to use host tools when cross compiling
459 * gettext-runtime/po/Makefile.in.in (CROSS_COMPILING): New substitute
460 variable.
461 (.nop.po-update): Don't prepend ../src to $PATH when cross compiling.
462 * gettext-runtime/po/Rules-quot (.insert-header.po-update-en): Likewise.
463  
464 its: Allow CDATA and comments in translatable node
465 * gettext-tools/src/its.c (its_rule_list_is_translatable): Don't return
466 false on CDATA and comments.
467  
468 its: Fix typo in GSettings rule
469 * gettext-tools/its/gsettings.its: Fix typo in escape rule.
470  
471 2015-12-15 Daiki Ueno <ueno@gnu.org>
472  
473 gnulib-local: Fix link error due to symbol dupes
474 * gnulib-local/lib/libxml/trionan.c (minus_zerod): Mark as static.
475  
476 gnulib-local: Pull more functions for libxml
477 * gettext-tools/gnulib-lib/.gitignore: Ignore files brought by
478 gnulib-tool.
479 * gettext-tools/gnulib-tests/.gitignore: Likewise.
480 * gnulib-local/modules/libxml (Depends-on): Add 'pow', 'log10', and
481 'fabs'.
482  
483 gnulib-local: Replace libxml2 trio with Gnulib
484 * gettext-tools/gnulib-lib/.gitignore: Ignore files brought by
485 gnulib-tool.
486 * gettext-tools/gnulib-tests/.gitignore: Likewise.
487 * gnulib-local/lib/libxml/triodef.h: Remove.
488 * gnulib-local/lib/libxml/trionan.c: Replace it with Gnulib functions.
489 * gnulib-local/lib/libxml/trionan.h: Remove.
490 * gnulib-local/modules/libxml (Depends-on): Add 'isinf', 'isnan', and
491 'signbit'.
492  
493 2015-12-14 Daiki Ueno <ueno@gnu.org>
494  
495 gnulib-local: Update included libxml2 to 2.9.3
496 * gnulib-local/lib/libxml/*: Update from libxml2 2.9.3. Add buf.[ch],
497 enc.h, save.h, triodef.h, trionan.[ch]. Enable XPath and XPointer
498 support.
499 * gnulib-local/modules/libxml (Files): Add new files from libxml2 2.9.3.
500  
501 2015-12-10 Daiki Ueno <ueno@gnu.org>
502  
503 gettext-tools: Update POTFILES.in
504 * gettext-tools/po/POTFILES.in: Add newly added files.
505  
506 gnulib-local: Make markup.c translator friendly
507 * gnulib-local/lib/markup.c: Reuse strings.
508  
509 its: Mark some attributes as escape="no"
510 * gettext-tools/its/glade2.its: Mark "comments" attribute as
511 escape="no".
512 * gettext-tools/its/gsettings.its: Mark "context" attribute as
513 escape="no".
514 * gettext-tools/its/gtkbuilder.its: Mark "comments" attribute as
515 escape="no".
516  
517 xgettext: Respect ITS escape rule for attributes
518 * gettext-tools/src/its.c (its_rule_list_extract_text): Check for
519 "escape" value for an attribute node.
520 * gettext-tools/tests/xgettext-its-1: Add tests for gt:escapeRule.
521  
522 2015-12-10 KO Myung-Hun <komh78@gmail.com> (tiny change)
523  
524 intl: Fix name resolution failures on kLIBC
525 kLIBC already has _nl_default_dirname and _nl_msg_cat_cntr in its own
526 gettext implmenetation.
527 * gettext-runtime/intl/dcigettext.c: Do not declare _nl_default_dirname
528 on kLIBC.
529 * gettext-runtime/intl/gettextP.h: Define _nl_msg_cat_cntr to
530 libintl_nl_msg_cat_cntr on kLIBC.
531  
532 build: Do not include os2compat.[ch]
533 kLIBC does not need os2compat.[ch]
534 * gettext-runtime/configure.ac (AH_BOTTOM): Do not include
535 intl/os2compat.h on kLIBC.
536 * gettext-runtime/intl/osdep.c: Do not include os2compat.c on kLIBC.
537 * gettext-tools/configure.ac (AH_BOTTOM): Do not include
538 intl/os2compat.h on kLIBC.
539  
540 test-lock: Do not include sched.h on kLIBC
541 * gettext-runtime/tests/test-lock.c: Do not include sched.h on kLIBC,
542 since kLIBC does not have sched.h.
543  
544 2015-12-10 Daiki Ueno <ueno@gnu.org>
545  
546 kde: Fix KUIT error handling when libxml2 is used
547 * gettext-tools/src/format-kde-kuit.c (format_parse): Return NULL if
548 xmlReadMemory returns NULL.
549  
550 xgettext: Add --its option for ease of testing
551 * gettext-tools/doc/xgettext.texi (Output details): Mention --its
552 option.
553 * gettext-tools/src/xgettext.c (long_options): Add --its option.
554 (main): Handle --its option. Suggested by Sébastien Wilmet.
555  
556 xgettext: Improve error reporting when ITS is used
557 * gettext-tools/src/xgettext.c (main): Print error when an ITS file is
558 designated through a locating rule, but the file does not exist.
559  
560 build: Update DEPENDENCIES
561 * DEPENDENCIES: Remove duplicate entry for libxml2.
562  
563 2015-12-09 Daiki Ueno <ueno@gnu.org>
564  
565 build: Remove expat dependency
566 * DEPENDENCIES: Suggest libxml2 instead of expat.
567 * gnulib-local/lib/markup.c: New file.
568 * gnulib-local/lib/markup.h: New file.
569 * gnulib-local/modules/markup: New file.
570 * autogen.sh (GNULIB_MODULES_LIBGETTEXTPO): Add markup module.
571 * gettext-tools/configure.ac: Remove checks for expat.
572 * gettext-tools/gnulib-lib/.gitignore: Ignore modules pulled by
573 gnulib-tool due to the markup module usage.
574 * gettext-tools/gnulib-tests/.gitignore: Likewise.
575 * gettext-tools/libgettextpo/.gitignore: Likewise.
576 * gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES):
577 Remove ../src/libexpat-compat.c.
578 (libgettextpo_la_LDFLAGS): Remove @LTLIBEXPAT@.
579 * gettext-tools/src/Makefile.am (noinst_HEADERS): Remove
580 libexpat-compat.h.
581 (libgettextsrc_la_SOURCES): Remove libexpat-compat.c.
582 (libgettextsrc_la_LDFLAGS): Remove @LTLIBEXPAT@.
583 * gettext-tools/src/format-kde-kuit.c: Use functions from markup.h, when
584 the file is being compiled as part of libgettextpo. Otherwise use
585 libxml2.
586 * gettext-tools/src/libexpat-compat.c: Remove.
587 * gettext-tools/src/libexpat-compat.h: Remove.
588  
589 2015-12-08 Daiki Ueno <ueno@gnu.org>
590  
591 build: Fix texi2html failure with perl 5.22
592 * gettext-runtime/libasprintf/texi2html (update_sec_num): Don't use
593 "defined" against an array ref.
594 * gettext-tools/doc/texi2html (update_sec_num): Likewise.
595  
596 Update gnulib
597  
598 xgettext: Ignore --from-code when XML mode
599 * gettext-tools/src/xgettext.c (extract_from_xml_file): Forcibly set
600 current source encoding to UTF-8, on XML mode.
601  
602 build: Suppress compiler warning
603 * gettext-tools/src/its.c (its_rule_list_extract_text): Remove unused
604 local variable "message".
605  
606 2015-12-04 Daiki Ueno <ueno@gnu.org>
607  
608 msgfmt: Support XML file merging
609 * gettext-tools/src/Makefile.am (noinst_HEADERS): Add write-xml.h.
610 (msgfmt_SOURCES): Add write-xml.c.
611 * gettext-tools/src/its.c (its_merge_context_merge_node): New function.
612 (its_merge_context_merge): New function.
613 (its_merge_context_alloc): New function.
614 (its_merge_context_write): New function.
615 (its_merge_context_free): New function.
616 * gettext-tools/src/its.h (its_merge_context_ty): New type.
617 * gettext-tools/src/msgfmt.c: Include "its.h", "locating-rule.h", and
618 "write-xml.h".
619 (SIZEOF): New macro.
620 (xml_mode, xml_locale_name, xml_template_name, xml_base_directory,
621 xml_language, xml_its_rules): New variable.
622 (long_options): Add --language and --xml.
623 (main): Handle new options.
624 (usage): Document new options.
625 (msgfmt_xml_bulk): New function.
626 * gettext-tools/src/write-xml.c: New file.
627 * gettext-tools/src/write-xml.h: New file.
628 * gettext-tools/doc/gettext.texi: Mention XML file merging use-case.
629 * gettext-tools/doc/msgfmt.texi: Mention --xml option.
630 * gettext-tools/tests/msgfmt-xml-1: New file.
631 * gettext-tools/tests/msgfmt-xml-2: New file.
632 * gettext-tools/tests/Makefile.am (TESTS): Add new tests.
633  
634 xgettext: Rewrite Glade scanner in ITS
635 * gettext-tools/its/glade.loc: New file.
636 * gettext-tools/its/glade1.its: New file.
637 * gettext-tools/its/glade2.its: New file.
638 * gettext-tools/its/gtkbuilder.its: New file.
639 * gettext-tools/its/Makefile.am (dist_its_DATA): Add new files.
640 * gettext-tools/src/Makefile.am (xgettext_SOURCES): Remove x-glade.c.
641 * gettext-tools/src/x-glade.c: Remove.
642 * gettext-tools/src/x-glade.h (EXTENSIONS_GLADE): Set language field to
643 NULL.
644 (SCANNERS_GLADE): Set func field to NULL.
645 * gettext-tools/po/POTFILES.in: Remove x-glade.c
646  
647 xgettext: Rewrite GSettings scanner in ITS
648 * gettext-tools/its/gsettings.its: New file.
649 * gettext-tools/its/gsettings.loc: New file.
650 * gettext-tools/its/Makefile.am (dist_its_DATA): Add new files.
651 * gettext-tools/src/Makefile.am (xgettext_SOURCES): Remove x-gsettings.c.
652 * gettext-tools/src/x-gsettings.c: Remove.
653 * gettext-tools/src/x-gsettings.h (EXTENSIONS_GSETTINGS): Set language
654 field to NULL.
655 (SCANNER_GSETTINGS): Set func field to NULL.
656  
657 xgettext: Rewrite AppData scanner in ITS
658 * gettext-tools/its/appdata.loc: New file.
659 * gettext-tools/its/appdata.its: New file.
660 * gettext-tools/its/Makefile.am (dist_its_DATA): Add new files.
661 * gettext-tools/src/Makefile.am (xgettext_SOURCES): Remove x-appdata.c.
662 * gettext-tools/src/x-appdata.c: Remove.
663 * gettext-tools/src/x-appdata.h (EXTENSIONS_APPDATA): Set language
664 field to NULL.
665 (SCANNERS_APPDATA): Set func field to NULL.
666  
667 xgettext: Add support for generic XML files
668 * autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add trim module.
669 * gettext-tools/src/locating-rule.h: New file.
670 * gettext-tools/src/locating-rule.c: New file.
671 * gettext-tools/src/its.h: New file.
672 * gettext-tools/src/its.c: New file.
673 * gettext-tools/src/xgettext.c: Include "locating-rule.h" and "its.h".
674 (its_locators): New variable.
675 (long_options): Add --itstool option.
676 (extract_from_xml_file): New function.
677 (main): Handle --itstool option.
678 (usage): Document --itstool option.
679 * gettext-tools/src/Makefile.am (noinst_HEADERS): Add locating-rule.h
680 and its.h.
681 (libgettextsrc_la_CPPFLAGS): Add $(INCXML).
682 (libgettextsrc_la_SOURCES): Add locating-rule.c and its.c.
683 * gettext-tools/Makefile.am (SUBDIRS): Add its directory.
684 * gettext-tools/configure.ac: Output its/Makefile.
685 * gettext-tools/doc/gettext.texi (Preparing ITS Rules): New section.
686 * gettext-tools/doc/xgettext.texi: Mention --itstool option.
687 * gettext-tools/tests/Makefile.am (TESTS): Add new tests.
688 * gettext-tools/tests/xgettext-its-1: New file
689 * gettext-tools/tests/init-env.in: Set GETTEXTDATADIR for ITS tests.
690  
691 2015-11-18 Daiki Ueno <ueno@gnu.org>
692  
693 cldr-plurals: Add sanity checks for input
694 * gettext-tools/src/cldr-plurals.c (extract_rules): Add null checks and
695 element type checks.
696  
697 2015-11-17 Daiki Ueno <ueno@gnu.org>
698  
699 cldr-plurals: Rewrite XML handling using libxml2
700 * src/cldr-plurals.c: Include <libxml/tree.h> and
701 <libxml/parser.h>, instead of "libexpat-compat.h".
702 (extract_locale, extracted_rules, parser, logical_file_name)
703 (struct element_state, stack, stack_size, stack_depth)
704 (ensure_stack_size, start_element_handler, end_element_handler)
705 (character_data_handler): Remove.
706 (extract_rules): Rename from extract_rule and rewrite using DOM.
707 (main): Use extract_rules.
708 * src/Makefile.am (cldr_plurals_CFLAGS): Add $(INCXML).
709  
710 cldr-plurals: Fix a trivial leak
711 * src/cldr-plural.y (sample_range): Free unused operand value.
712  
713 2015-11-17 Phil Davis <phil.davis@inf.org> (tiny change)
714  
715 doc: Fix typo in gettext_noop example
716 * doc/gettext.texi (Special cases): Add missing ')' to
717 a gettext_noop call.
718  
719 2015-10-29 Daiki Ueno <ueno@gnu.org>
720  
721 maint: Ignore more generated ChangeLogs
722 * .gitignore: Add gettext-runtime/intl/ChangeLog,
723 gettext-runtime/po/ChangeLog, and gettext-tools/po/ChangeLog.
724  
725 m4: Fix typo in usage comment
726 * gettext-runtime/m4/gettext.m4: Remove duplicate words.
727 * gettext-runtime/m4/intl.m4: Likewise.
728 * gettext-runtime/m4/intldir.m4: Likewise.
729 * gettext-runtime/m4/intlmacosx.m4: Likewise.
730 * gettext-runtime/m4/lcmessage.m4: Likewise.
731 * gettext-runtime/m4/nls.m4: Likewise.
732 * gettext-runtime/m4/po.m4: Likewise.
733 * gettext-runtime/m4/progtest.m4: Likewise.
734 Reported by Jakub Wilk in:
735 https://lists.gnu.org/archive/html/bug-gettext/2015-10/msg00026.html.
736  
737 doc: Fix typo in msgfmt invocation
738 * gettext-tools/doc/msgfmt.texi: Fix the documentation of -d option,
739 used in the Desktop Entry mode.
740  
741 2015-10-15 Daiki Ueno <ueno@gnu.org>
742  
743 build: Generate ChangeLogs for intl and po
744 * autogen.sh: Create empty ChangeLog files under intl and po.
745 * Makefile.am (gen-ChangeLogs): Rename from gen-ChangeLog. Generate
746 ChangeLog files for */intl and */po as well as top-level.
747 * gettext-runtime/intl/ChangeLog.0: Rename from ChangeLog.
748 * gettext-runtime/po/ChangeLog.0: Rename from ChangeLog.
749 * gettext-tools/po/ChangeLog.1: Rename from ChangeLog.
750  
751 build: Distribute old ChangeLogs in tarball
752 * Makefile.am (changelog_etc): Remove non-existent ChangeLog files
753 under intl and po.
754 (EXTRA_DIST): Add $(changelog_etc).
755  
756 2015-10-14 Mike Frysinger <vapier@chromium.org>
757  
758 tests: use check_PROGRAMS
759 The noinst_xxx targets will be compiled all the time. For test programs,
760 the check_xxx targets make more sense as they'll only be built when the
761 user runs `make check`.
762  
763 * gettext-runtime/tests/Makefile.am (noinst_PROGRAMS): Rename to ...
764 (check_PROGRAMS): ... this.
765  
766 2015-10-14 Mike Frysinger <vapier@chromium.org>
767  
768 intl/localename: control langinfo.h inclusion
769 This header is only used to work around buggy behavior in old versions
770 of glibc, so do not include it all the time. Otherwise we get build
771 failures on systems that do not provide langinfo.h.
772  
773 * gettext-runtime/intl/localename.c: Wrap langinfo.h include with same
774 ifdefs used in the source later on.
775  
776 2015-10-14 Daiki Ueno <ueno@gnu.org>
777  
778 build: Remove ChangeLogs
779 Generate ChangeLog files at "make dist" time, using
780 gitlog-to-changelog. We still keep ChangeLog files under "po" and
781 "intl" directories, since those files are copied as part of gettext
782 infrastructure and it is still meaningful to have them there.
783 * .gitignore: Add ChangeLog files.
784 * Admin/release-steps: Remove mention of running update-changelog
785 script.
786 * Admin/update-changelog: Remove.
787 * Makefile.am (gen-ChangeLog): New rule.
788 * autogen.sh: Copy gitlog-to-changelog from gnulib. Create empty
789 ChangeLog files to suppress Automake errors.
790 * gettext-tools/doc/Makefile.am (EXTRA_DIST): Remove ChangeLog.0.
791 * gettext-tools/man/Makefile.am (EXTRA_DIST): Remove ChangeLog.0.
792 * gettext-tools/src/Makefile.am (EXTRA_DIST): Remove ChangeLog.0.
793 * gettext-tools/tests/Makefile.am (EXTRA_DIST): Remove ChangeLog.0.
794 * gnulib-local/Makefile.am (EXTRA_DIST): Remove ChangeLog files.
795 * */ChangeLog: Rename to ChangeLog.0 or ChangeLog.1.
796 * HACKING: Add brief guideline to submit patches.