-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathChangeLog
5361 lines (4293 loc) · 222 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2019-05-08 Bruno Haible <[email protected]>
examples: Use infrastructure from gettext version 0.20.
* gettext-tools/examples/hello-*/configure.ac: Use AM_GNU_GETTEXT_VERSION with
version 0.20.
* gettext-tools/examples/hello-c++-kde/configure.in.in: Likewise.
* gettext-tools/examples/hello-*/m4/Makefile.am: Update .m4 file list.
* gettext-tools/examples/hello-*/autoclean.sh: Likewise.
Update translations (from the TP).
Prepare for 0.20 release.
* gettext-runtime/doc/matrix.texi: Update from TP.
* gettext-runtime/doc/nls.texi (STATUS): Update.
* libtextstyle/version.sh: Update RELEASE_DATE.
2019-05-07 Bruno Haible <[email protected]>
libtextstyle: examples: Enable --color=html, for debuggability.
Reported by Akim Demaille.
* libtextstyle/examples/color-hello/hello.c (main): Handle color_html case.
* libtextstyle/examples/color-filter/filter.c (main): Likewise.
2019-05-05 Bruno Haible <[email protected]>
examples: hello-c++-widgets: Update build infrastructure.
Gnulib changed on 2018-11-11: asm-underscore.m4 is no longer needed for havelib.
* gettext-tools/examples/hello-c++-widgets/autogen.sh: Don't pull in
asm-underscore.m4.
* gettext-tools/examples/hello-c++-widgets/autoclean.sh: Don't remove
asm-underscore.m4.
2019-05-05 Bruno Haible <[email protected]>
Add unit test for libintl_version.
* gettext-tools/tests/intl-version-prg.c: New file.
* gettext-tools/tests/intl-version: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
(check_PROGRAMS): Add intl-version-prg.
(intl_version_prg_SOURCES, intl_version_prg_LDADD): New variables.
2019-05-05 Bruno Haible <[email protected]>
msginit: Avoid error messages when run on mingw.
Reported by Michele Locati <[email protected]>.
* gettext-tools/src/msginit.c (project_id, project_id_version, get_user_email,
language_team_address): Don't even attempt to run the shell script.
2019-05-05 Bruno Haible <[email protected]>
libtextstyle: Document debugging tricks.
Reported by Akim Demaille <[email protected]>.
* libtextstyle/doc/libtextstyle.texi (Debugging style files): New subsection.
(Debugging the styling code): New section.
2019-05-01 Bruno Haible <[email protected]>
msginit: Fix invocation of helper programs on Windows.
Reported by Michele Locati <[email protected]>
in <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00058.html>.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add configmake.
* gettext-tools/src/msginit.c: Include configmake.h.
(main): Add BINDIR to the PATH.
2019-05-01 Bruno Haible <[email protected]>
msginit: Improvements for Cygwin and Android.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add sh-filename.
* gettext-tools/src/msginit.c (project_id, project_id_version, get_user_email,
language_team_address): Use BOURNE_SHELL instead of hardcoding /bin/sh.
2019-04-29 Bruno Haible <[email protected]>
libtextstyle: Document one more terminal emulator.
* libtextstyle/doc/libtextstyle.texi (Terminal emulators): Mention QTerminal.
2019-04-28 Bruno Haible <[email protected]>
Fix msginit-4 test failure on mingw.
* gettext-tools/src/Makefile.am (DEFS): Define EXEEXT.
* gettext-tools/src/msginit.c (plural_forms): On Windows, invoke
"cldr-plurals.exe", not "cldr-plurals".
2019-04-28 Bruno Haible <[email protected]>
In the POT files, talk about the "GNU gettext package".
Reported by Benno Schulenberg <[email protected]>.
* gettext-runtime/po/Makevars (XGETTEXT_OPTIONS): Add --package-name option.
* gettext-tools/po/Makevars (XGETTEXT_OPTIONS): Likewise.
* gettext-tools/examples/po/Makefile.am (XGETTEXT_OPTIONS): New variable.
2019-04-28 Bruno Haible <[email protected]>
po: Make it possible to override xgettext options from Makefile.in.in.
* gettext-runtime/po/Makefile.in.in ($(DOMAIN).pot-update): List the
XGETTEXT_OPTIONS and the XGETTEXT_EXTRA_OPTIONS after all other options.
* gettext-tools/examples/po/Makefile.am ($(DOMAIN).pot-update): Likewise.
* gettext-tools/examples/hello-*/po/Makefile.am ($(DOMAIN).pot-update):
Likewise.
* gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile
($(DOMAIN).pot-update): Likewise.
* NEWS: Mention the change.
* gettext-tools/doc/gettext.texi (po/Makevars): Fix typo.
2019-04-28 Bruno Haible <[email protected]>
libtextstyle: Fix test-term-ostream-xterm test failure on TrueOS and Trident.
The xterm description on these platforms includes support for italics.
Reported by Nelson H. F. Beebe.
* libtextstyle/gnulib-local/tests/test-term-ostream-xterm-freebsd-italic.out:
New file.
* libtextstyle/gnulib-local/tests/test-term-ostream-xterm.sh: Use it as possible
expected result.
* libtextstyle/gnulib-local/modules/term-ostream-tests (Files): Add it.
2019-04-28 Bruno Haible <[email protected]>
libxml: Avoid gcc warnings.
Avoids "warning: too many arguments for format".
* gnulib-local/lib/libxml/xmlerror.in.h (__xmlSimpleError): Remove
LIBXML_ATTR_FORMAT annotation, because this function may be called with a
NULL msg.
2019-04-28 Bruno Haible <[email protected]>
libxml: Avoid build failure due to "implicit declaration of function".
* gnulib-local/lib/libxml/libxml.h: Include xmlstring.h only after config.h is
included.
libxml: Update included libxml2 to version 2.9.9.
* gnulib-local/lib/libxml/*: Update from libxml2 2.9.9.
* gnulib-local/m4/libxml.m4 (gl_LIBXML): Don't test for _stat.
Update to newest gnulib.
2019-04-28 Bruno Haible <[email protected]>
Fix lang-csharp test failure on DragonFly BSD.
Reported by Nelson H. F. Beebe.
* gettext-tools/tests/lang-csharp: For the locale with ISO-8859-1 encoding,
allow an expected result in UTF-8 encoding.
2019-04-28 Bruno Haible <[email protected]>
Add comment about a test that may fail.
Reported by Nelson H. F. Beebe.
* gettext-tools/tests/lang-csharp: Add comment about possible test failure.
2019-04-28 Bruno Haible <[email protected]>
Add comments about tests that fail on Alpine Linux.
Reported by Nelson H. F. Beebe.
* gettext-tools/tests/msgconv-2: Add comment about musl libc.
* gettext-tools/tests/msgmerge-compendium-6: Likewise.
* gettext-tools/tests/xgettext-python-3: Likewise.
2019-04-28 Bruno Haible <[email protected]>
build: Remove duplicate copy of test-lock.
The master copy lives in gnulib now.
* gettext-runtime/tests/test-lock.c: Remove file.
* gettext-runtime/tests/Makefile.am (TESTS, check_PROGRAMS): Remove test-lock.
(test_lock_SOURCES, test_lock_LDADD): Remove variables.
2019-04-28 Bruno Haible <[email protected]>
build: Verify that intl/threadlib.c is in sync with gnulib.
* Makefile.am (distcheck-hook): Compare also intl/threadlib.c.
2019-04-28 Bruno Haible <[email protected]>
Fix autopoint-3 test failure on many platforms.
Reported by Nelson H. F. Beebe.
* gettext-tools/tests/autopoint-3: Create dummy ltmain.sh file before invoking
"automake -a -c".
2019-04-28 Bruno Haible <[email protected]>
Avoid lang-guile test failure on many platforms.
Reported by Nelson H. F. Beebe.
* gettext-tools/tests/lang-guile: Skip the test if the guile version is < 2.0.
2019-04-28 Bruno Haible <[email protected]>
Update after gnulib changed.
Update to newest gnulib.
2019-04-27 Bruno Haible <[email protected]>
intl: Use the lookup optimization also on platforms without per-thread locales.
This bug was introduced on 2007-01-27.
* gettext-runtime/intl/dcigettext.c (DCIGETTEXT): Fix #ifdef/#endif chain.
2019-04-27 Bruno Haible <[email protected]>
po-mode: Fix warning.
* gettext-tools/emacs/po-mode.el (entry-buffer): Declare as variable.
libgettextpo: Don't rely on the undocumented variable libgettextpo_program_name.
* gnulib-local/lib/xerror.c: If IN_LIBGETTEXTPO is defined, include
getprogname.h instead of progname.h and define program_name as a macro.
* gnulib-local/lib/error-progname.c: Likewise.
* gettext-tools/src/po-xerror.c: Likewise.
* autogen.sh (GNULIB_MODULES_LIBGETTEXTPO): Remove progname.
Pass --avoid=progname to gnulib-tool invocation for libgettextpo.
libgettextpo: Fix crash when iconv() does not support the PO file's encoding.
* gettext-tools/src/po-charset.c (po_lex_charset_set): When IN_LIBGETTEXTPO is
defined, don't use program_name.
libgettextpo: Fix gcc warnings.
* gettext-tools/src/write-po.c (begin_css_class, end_css_class): At least,
evaluate the classname argument.
Fix a gcc warning.
* gettext-tools/src/urlget.c (java_exitcode, execute_it): Don't define if
USEJAVA is 0.
Fix a gcc warning on mingw.
* gettext-tools/src/msginit.c (get_user_pwd): Don't define if HAVE_PWD_H is not
set.
(get_user_fullname): Don't call get_user_pwd if HAVE_PWD_H is not set.
Fix gcc warnings on mingw and IRIX 6.5.
* gettext-tools/src/msgexec.c (process_message): Don't assume that fprintf
supports %zu.
* gettext-tools/src/msgfilter.c (process_message): Likewise.
Fix gcc warnings on mingw.
* gettext-tools/src/msgexec.c (close): Undefine before redefinition.
* gettext-tools/src/msggrep.c (close): Likewise.
Fix a gcc warning (regression from 2017-05-04).
* gettext-tools/src/read-java.c (msgdomain_read_java): Remove unused variable.
search-path.c: Improve code style.
* gettext-tools/src/search-path.h (get_search_path): Clarify memory allocation.
* gettext-tools/src/search-path.c (struct path_array_ty): Add comment.
(foreach_elements): Fix comment.
(get_search_path): Improve comments. Perform each getenv() only once. Reduce
scope of variables. Fix gcc warning.
libxml: Fix width of fprintf argument on native Windows.
* gnulib-local/lib/libxml/timsort.h (TIM_SORT_RESIZE): Cast fprintf argument to
'unsigned long'.
intl: Fix a gcc warning.
* gettext-runtime/intl/langprefs.c (_nl_language_preferences_win32_95): Declare
data as BYTE array, not char array.
2019-04-26 Bruno Haible <[email protected]>
build: Fix build failure on mingw with --disable-shared --enable-relocatable.
Reported by Michele Locati <[email protected]>
in <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00052.html>.
* gettext-runtime/intl/Makefile.am (AM_CPPFLAGS): Map 'relocate2' to a different
symbol.
2019-04-26 Bruno Haible <[email protected]>
Document the OUTPUT_CHARSET environment variable.
Reported by Václav Slavík <[email protected]>
via Michele Locati <[email protected]>.
* gettext-tools/doc/gettext.texi (Working in a Windows console): New section.
2019-04-14 Bruno Haible <[email protected]>
Update translations (from the TP).
* gettext-runtime/po/*.po: Update.
* gettext-runtime/po/LINGUAS: Add 'ast'.
* gettext-tools/po/*.po: Update.
* gettext-tools/examples/po/*.po: Update.
* gettext-tools/examples/po/LINGUAS: Add 'ta'.
* gettext-tools/examples/hello-*/po/LINGUAS: Likewise.
* gettext-tools/examples/Makefile.am (EXAMPLESPOFILES): Add ta.po.
Prepare for 0.20 release.
* gettext-runtime/intl/libgnuintl.in.h (LIBINTL_VERSION): Update.
* gettext-tools/libgettextpo/gettext-po.in.h (LIBGETTEXTPO_VERSION): Update.
* gettext-runtime/m4/gettext.m4: Bump version number in comment.
* gettext-runtime/m4/intl.m4: Likewise.
* gettext-runtime/m4/intlmacosx.m4: Likewise.
* gettext-runtime/m4/po.m4: Likewise.
(GETTEXT_MACRO_VERSION): Bump to 0.20.
* gettext-runtime/po/Makefile.in.in (GETTEXT_MACRO_VERSION): Likewise.
* gettext-runtime/intl/Makefile.am (LTV_*): Bump to 9:6:2.
* gettext-tools/libgettextpo/Makefile.am (LTV_*): Bump to 5:5:5.
* gettext-tools/configure.ac (ARCHIVE_VERSION): Set to 0.20.
* gettext-tools/misc/autopoint.in: Accept version 0.20.
* gettext-runtime/doc/matrix.texi: Update from TP.
* gettext-runtime/doc/nls.texi (STATUS): Update.
* gettext-runtime/src/envsubst.c (main): Update copyright year in --version
output.
* gettext-runtime/src/gettext.c (main): Likewise.
* gettext-runtime/src/ngettext.c (main): Likewise.
* gettext-tools/src/cldr-plurals.c (main): Likewise.
* gettext-tools/src/hostname.c (main): Likewise.
* gettext-tools/src/msgattrib.c (main): Likewise.
* gettext-tools/src/msgcat.c (main): Likewise.
* gettext-tools/src/msgcmp.c (main): Likewise.
* gettext-tools/src/msgcomm.c (main): Likewise.
* gettext-tools/src/msgconv.c (main): Likewise.
* gettext-tools/src/msgen.c (main): Likewise.
* gettext-tools/src/msgexec.c (main): Likewise.
* gettext-tools/src/msgfilter.c (main): Likewise.
* gettext-tools/src/msgfmt.c (main): Likewise.
* gettext-tools/src/msggrep.c (main): Likewise.
* gettext-tools/src/msginit.c (main): Likewise.
* gettext-tools/src/msgmerge.c (main): Likewise.
* gettext-tools/src/msgunfmt.c (main): Likewise.
* gettext-tools/src/msguniq.c (main): Likewise.
* gettext-tools/src/recode-sr-latin.c (main): Likewise.
* gettext-tools/src/urlget.c (main): Likewise.
* gettext-tools/src/xgettext.c (main): Likewise.
* gettext-runtime/src/gettext.sh.in (func_version): Update copyright year.
* gettext-tools/misc/convert-archive.in (func_version): Likewise.
* gettext-tools/misc/gettextize.in (func_version): Likewise.
* libtextstyle/version.sh: Use version number 0.20 here as well.
* gettext-runtime/NEWS: Mention changes (from main NEWS).
* libtextstyle/NEWS: Mention changes.
autopoint: Reject AM_GNU_GETTEXT without 'external' for versions >= 0.20.
* gettext-tools/misc/autopoint.in: Fail if AM_GNU_GETTEXT without 'external' is
specified with a gettext version >= 0.20.
* gettext-tools/tests/autopoint-2: Update. Add two more scenarios.
* gettext-tools/tests/autopoint-3: Don't test AM_GNU_GETTEXT([use-libtool]) nor
--with-included-gettext. Don't use libtoolize.
build: Fix Makefile.am formatting.
* gettext-runtime/man/Makefile.am: Start every indented line with a tab.
build: Don't fail copyright header check on archive.dir.tar.
* check-copyright-headers (func_check_file): Succeed for the archive.dir.tar
file.
Update to newest gnulib.
2019-04-13 Bruno Haible <[email protected]>
cldr-plurals: Fix a test failure on IRIX 6.5.
* gettext-tools/src/cldr-plural-exp.c (cldr_plural_rule_list_print): Don't
assume that fprintf supports %zu.
build: Fix build failure when perl exists but not perl's Locale::gettext module.
* gettext-runtime/man/x-to-1.in: Remove file.
* gettext-tools/man/x-to-1.in: Remove file.
* autogen.sh: Copy x-to-1.in from gnulib.
build: Fix build failure with a preinstalled libxml (regression from 2019-04-02).
* gettext-tools/src/Makefile.am (AM_CPPFLAGS): Remove -I options that point into
libtextstyle/lib.
(textstyle.h): New rule.
(BUILT_SOURCES, MOSTLYCLEANFILES): Add textstyle.h and textstyle/*.h.
build: Don't link libgettextlib and libgettextsrc against libgomp.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add openmp-init. Remove openmp.
* gettext-tools/configure.ac: Invoke AC_OPENMP.
Update to newest gnulib.
2019-04-12 Bruno Haible <[email protected]>
msgfmt: Fix another buffer overrun.
Reported and patch by Joshua Root <[email protected]>
at <https://savannah.gnu.org/bugs/?56126>.
* gettext-tools/src/write-java.c (write_java_msgid): Allocate memory for the
trailing NUL byte as well.
* gettext-tools/src/write-csharp.c (write_csharp_msgid): Likewise.
2019-04-11 Bruno Haible <[email protected]>
build: Explicitly request some more gnulib modules.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add localtime, unsetenv.
build: Fix build failure on mingw (regression from 2019-04-02).
* gettext-tools/woe32dll/gettextlib-exports.c: Remove
gl_array_list_implementation, styled_ostream_typeinfo.
* gettext-tools/woe32dll/gettextsrc-exports.c: Remove color_mode,
color_test_mode, style_file_name.
* autogen.sh: Don't import the gnulib array-list-tests and linkedhash-list-tests
modules.
build: Fix build failure on mingw (regression from 2019-04-02).
* libtextstyle/autogen.sh: Pass a --macro-prefix option to gnulib-tool.
* libtextstyle/configure.ac: Update accordingly.
libtextstyle: Fix build failure on mingw (regression from 2019-03-17).
* libtextstyle/lib/Makefile.am (config.h): Emit a line that ensures that
isatty.c defines the symbol 'libtextstyle_isatty', not 'isatty'.
2019-04-11 Bruno Haible <[email protected]>
build: Fix build failure on mingw.
For some reason, Automake puts a definition of CXXLD in
gettext-tools/src/Makefile.in but not in
gettext-tools/gnulib-lib/Makefile.in.
* gettext-tools/gnulib-lib/Makefile.am (CXXLD): Define.
2019-04-10 Bruno Haible <[email protected]>
msgfmt: Fix a buffer overrun.
Reported by Tobi Schäfer at <https://trac.macports.org/ticket/58323>,
via Ryan Schmidt <@ryandesign.com> at <https://savannah.gnu.org/bugs/?56112>.
Patch proposed by Joshua Root.
* gettext-tools/src/write-java.c (msgid_hashcode): Allocate memory for the
trailing NUL byte as well.
2019-04-09 Bruno Haible <[email protected]>
Fix test failures on AIX 7.2.
* gettext-tools/tests/intl-thread-1-prg.c: Test HAVE_WORKING_USELOCALE instead
of HAVE_USELOCALE.
* gettext-tools/tests/intl-thread-2-prg.c: Likewise.
* gettext-tools/tests/intl-thread-3-prg.c: Likewise.
msgmerge: Fix crash on 32-bit AIX 7.2.
* gettext-tools/src/msgmerge.c: Include <omp.h>.
(main): Invoke openmp_init().
Update to newest gnulib.
2019-04-08 Bruno Haible <[email protected]>
Make sure that libintl.h declares the *wprintf overrides on Windows.
* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Test for wprintf, not fwprintf.
Update to newest gnulib.
2019-04-08 Bruno Haible <[email protected]>
autopoint: Don't risk failing because of user or system git configurations.
Reported by Jamie Kirkpatrick <[email protected]>
in <https://savannah.gnu.org/support/?107689>.
* gettext-tools/misc/autopoint.in: Set/unset environment variables, so that git
does not read the user's git configuration nor the system's git configuration.
* gettext-tools/misc/convert-archive.in: Likewise.
2019-04-08 Bruno Haible <[email protected]>
xgettext: Recognize ECMAScript-262 6th edition template literals.
Reported by Philip Chimento <[email protected]>
in <https://savannah.gnu.org/bugs/index.php?50920>.
* gettext-tools/src/x-javascript.c (P7_TEMPLATE_START_OF_EXPRESSION): New macro.
(enum token_type_ty): Add token_type_template, token_type_ltemplate,
token_type_mtemplate, token_type_rtemplate.
(free_token): Treat token_type_template like token_type_string.
(phase7_getuc): Add support for backquote quote_char.
(brace_depth, template_literal_depth): New variables.
(phase5_get): Parse template literals.
(x_javascript_lex): Treat token_type_template like token_type_string. Handle the
combination of symbol followed by template.
(extract_balanced): Treat token_type_template like token_type_string, and
token_type_ltemplate, token_type_mtemplate, token_type_rtemplate like
token_type_other.
(extract_javascript): Initialize brace_depth, template_literal_depth.
* gettext-tools/tests/xgettext-javascript-7: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
* gettext-tools/doc/gettext.texi (JavaScript): Mention the template literal
syntax for strings.
* NEWS: Mention the improvement.
2019-04-08 Bruno Haible <[email protected]>
xgettext: Make JavaScript parser more robust.
* gettext-tools/src/x-javascript.c (extract_javascript): Initialize
inside_embedded_js_in_xml.
2019-04-07 Bruno Haible <[email protected]>
build: Verify that newly added files have an appropriate copyright notice.
* check-copyright-headers: New file.
* Makefile.am (EXTRA_DIST): Add it.
(distcheck-hook): Run check-copyright-headers and fail if it fails.
2019-04-07 Bruno Haible <[email protected]>
doc: Add copyright notices in several files.
Reported by <[email protected]> in <https://savannah.gnu.org/bugs/?54809>.
* gettext-runtime/doc/nls.texi: Add delegating copyright notice.
* gettext-runtime/doc/rt-*.texi: Likewise.
* gettext-tools/doc/autopoint.texi: Likewise.
* gettext-tools/doc/gettextize.texi: Likewise.
* gettext-tools/doc/msg*.texi: Likewise.
* gettext-tools/doc/xgettext.texi: Likewise.
2019-04-07 Bruno Haible <[email protected]>
build: Unify the three copies of texi2html.
* build-aux/texi2html: Moved to here from libtextstyle/build-aux/texi2html.
* libtextstyle/autogen.sh: Copy texi2html.
* gettext-runtime/libasprintf/texi2html: Remove file.
* gettext-runtime/libasprintf/Makefile.am (TEXI2HTML): Use build-aux/texi2html.
(EXTRA_DIST): Remove texi2html.
* gettext-tools/doc/texi2html: Remove file.
* gettext-tools/doc/Makefile.am (TEXI2HTML): Use build-aux/texi2html.
(EXTRA_DIST): Remove texi2html.
* Makefile.am (EXTRA_DIST): Add build-aux/texi2html.
(distcheck-hook): Update.
2019-04-07 Bruno Haible <[email protected]>
doc: Use a version of texi2html which is under a good license.
Reported by <[email protected]> in <https://savannah.gnu.org/bugs/?54809>.
* gettext-tools/doc/texi2html: Copied from texi2html-1.78, with changes made in
libunistring/build-aux/texi2html and then in libtextstyle/build-aux/texi2html.
* gettext-tools/doc/gettext.texi: Enable the Top node during texi2html
processing.
* gettext-tools/doc/Makefile.am (gettext.html): Use texi2html options
-no-sec-nav -no-menu -toc-links.
(gettext_toc.html): Likewise. Pull out generated files out of subdirectory.
2019-04-07 Bruno Haible <[email protected]>
libasprintf: Use a version of texi2html which is under a good license.
Reported by <[email protected]> in <https://savannah.gnu.org/bugs/?54809>.
* gettext-runtime/libasprintf/texi2html: Copied from texi2html-1.78, with
changes made in libunistring/build-aux/texi2html and then in
libtextstyle/build-aux/texi2html.
* gettext-runtime/libasprintf/fdl.texi: New file, copied from
gettext-tools/doc/fdl.texi.
* gettext-runtime/libasprintf/gpl.texi: New file, copied from
gnulib/doc/gpl-2.0.texi.
* gettext-runtime/libasprintf/lgpl.texi: New file, copied from
gnulib/doc/lgpl-2.1.texi.
* gettext-runtime/libasprintf/autosprintf.texi: Invoke @contents. Enable the
Top node during texi2html processing.
(Licenses): New appendix.
* gettext-runtime/libasprintf/Makefile.am (TEXINCLUDES): New variable.
(MAKEINFOFLAGS): Use it.
(autosprintf_TEXINFOS): New variable.
(autosprintf_all.html): Depend on it. Use texi2html options -no-sec-nav -no-menu
-toc-links.
2019-04-07 Bruno Haible <[email protected]>
libtextstyle: Tweak style of HTML documentation.
* libtextstyle/build-aux/texi2html (BIG_RULE): Set to empty.
2019-04-07 Bruno Haible <[email protected]>
Add copyright notices in several files.
Reported by <[email protected]> in <https://savannah.gnu.org/bugs/?54809>.
* gettext-tools/doc/FAQ.html: Fix copyright notice added on 2019-04-04.
* gettext-tools/doc/tutorial.html: Add GFDL copyright notice. Permission given
by Gora Mohanty <[email protected]> through private email on 2004-11-13.
* gettext-tools/po/Makevars.template: Don't mention the file name, since this
file is meant to be copied and renamed to 'Makevars'.
* gettext-tools/examples/hello-*/po/Makevars: Add all-permissive copyright
notice.
* gettext-tools/examples/hello-c-gnome3/hello.ui: Add public-domain notice.
* gettext-tools/examples/hello-c-gnome3/hello.gresource.xml: Likewise.
* gettext-tools/examples/hello-c-gnome3/hello.gschema.xml: Likewise.
* gettext-tools/examples/hello-java-awt/m4/TestAWT.java: Likewise.
* gettext-tools/examples/hello-java-swing/m4/TestAWT.java: Likewise.
* gettext-tools/examples/hello-java-qtjambi/m4/Test15.java: Likewise.
* gettext-tools/examples/check-examples: Add GPLv3+ copyright notice.
* gettext-tools/examples/installpaths.in: Likewise.
* gettext-tools/examples/po/mmsmallpo.sh: Likewise.
* gettext-tools/examples/po/xsmallpot.sh: Likewise.
* gettext-tools/its/glade.loc: Likewise.
* gettext-tools/its/gsettings.loc: Likewise.
* gettext-tools/its/metainfo.its: Likewise.
* gettext-tools/its/metainfo.loc: Likewise.
* gettext-tools/src/filters.h: Add missing copyright line.
2019-04-04 Bruno Haible <[email protected]>
Reduce ABOUT-NLS to just a hyperlink.
The common way to distribute information, nowadays, is through the web,
not by including files in tarballs of packages. Also, the current
contents of ABOUT-NLS is outdated.
Reported by Samuel Thibault in <https://savannah.gnu.org/bugs/?54809>.
* gettext-runtime/ABOUT-NLS: Replace text with a reference to the online
documentation.
* gettext-runtime/Makefile.am (MAKEINFO): Remove variable.
(all-local, ABOUT-NLS): Remove rules.
* gettext-tools/src/msginit.c (main): Point the user to the online documentation
instead of the ABOUT-NLS file.
* gettext-tools/doc/gettext.texi (Installing Localizations, Prerequisites,
Makefile): Don't mention ABOUT-NLS any more.
* gettext-tools/doc/gettextize.texi: Update description of ABOUT-NLS.
* gettext-tools/doc/FAQ.html: Refer to the online documentation instead of the
ABOUT-NLS file.
* README: Don't mention ABOUT-NLS any more.
2019-04-04 Bruno Haible <[email protected]>
doc: Include the contents of ABOUT-NLS in the documentation.
* gettext-runtime/doc/nls.texi (The original ABOUT-NLS): Renamed from
'Translation Intro'. Turn into a section. Mark section as historical.
* gettext-tools/doc/gettext.texi: Include nls.texi.
* gettext-tools/doc/Makefile.am (gettext_TEXINFOS): Add nls.texi and
matrix.texi.
doc: Update ISO 639 list.
* gettext-tools/doc/iso-639.texi: Regenerated.
2019-04-04 Bruno Haible <[email protected]>
Add copyright notices in several files.
Reported by <[email protected]> in <https://savannah.gnu.org/bugs/?54809>.
* gettext-runtime/m4/Makefile.am: Add GPL copyright notice.
* gettext-tools/m4/Makefile.am: Likewise.
* gettext-tools/doc/iso-639.sed: Likewise.
* gettext-tools/doc/iso-639-2.sed: Likewise.
* gettext-tools/doc/iso-3166.sed: Likewise.
* gettext-tools/its/glade1.its: Likewise.
* gettext-tools/its/glade2.its: Likewise.
* gettext-tools/its/gsettings.its: Likewise.
* gettext-tools/its/gtkbuilder.its: Likewise.
* gettext-tools/misc/cvsuser.c: Likewise.
* gettext-tools/projects/team-address: Likewise.
* gettext-tools/projects/GNOME/team-address: Likewise.
* gettext-tools/projects/GNOME/trigger: Likewise.
* gettext-tools/projects/KDE/team-address: Likewise.
* gettext-tools/projects/KDE/trigger: Likewise.
* gettext-tools/projects/TP/team-address: Likewise.
* windows/windres-options: Likewise.
* gettext-runtime/po/insert-header.sin: Add copyright notice, based on the one
in Rules-quot.
* gettext-tools/doc/FAQ.html: Add copyright notice, suitable for documentation.
2019-04-03 Bruno Haible <[email protected]>
Mention the support for Java 11.
This support was added in gnulib on 2018-09-26.
* NEWS: Mention the support for Java 11.
2019-04-03 Bruno Haible <[email protected]>
libtextstyle: Clean up old TODO item.
* libtextstyle/Makefile.am: Remove obsolete comment.
2019-04-02 Bruno Haible <[email protected]>
libtextstyle: Distribute two more files.
* libtextstyle/Makefile.am (EXTRA_DIST): Add
gnulib-local/lib/libxml/xmlversion.in.h.diff, gnulib-local/modules/libxml.diff.
build: Move local gnulib modules that are only needed in libtextstyle.
* libtextstyle/gnulib-local/*: Many files moved to here from gnulib-local/*.
* libtextstyle/gnulib-local/modules/libglib: Apply diff.
* libtextstyle/gnulib-local/modules/libglib.diff: Remove file.
* libtextstyle/gnulib-local/modules/libcroco: Apply diff.
* libtextstyle/gnulib-local/modules/libcroco.diff: Remove file.
* libtextstyle/gnulib-local/modules/term-styled-ostream: Apply diff.
* libtextstyle/gnulib-local/modules/term-styled-ostream.diff: Remove file.
* libtextstyle/gnulib-local/modules/html-styled-ostream: Apply diff.
* libtextstyle/gnulib-local/modules/html-styled-ostream.diff: Remove file.
* libtextstyle/gnulib-local/modules/noop-styled-ostream: Apply diff.
* libtextstyle/gnulib-local/modules/noop-styled-ostream.diff: Remove file.
* libtextstyle/woe32dll/c++term-styled-ostream.cc: Remove file.
* libtextstyle/woe32dll/c++html-styled-ostream.cc: Remove file.
* libtextstyle/woe32dll/c++noop-styled-ostream.cc: Remove file.
* gettext-tools/woe32dll/c++term-styled-ostream.cc: Remove file.
* gettext-tools/woe32dll/c++html-styled-ostream.cc: Remove file.
* gnulib-local/Makefile.am (EXTRA_DIST): Remove the files that were moved away.
* libtextstyle/Makefile.am (EXTRA_DIST): Add the files that were moved to
libtextstyle/gnulib-local/. Add build-aux/moopp.
* Makefile.am (EXTRA_DIST): Remove build-aux/moopp.
libgettextpo: Avoid closing a FILE stream when it will still be used.
* gettext-tools/src/write-catalog.c (msgdomain_list_print): Don't call
ostream_free if we're using the dummy <textstyle.h>.
libgettextpo: Use a dummy replacement for libtextstyle.
* gnulib-local/modules/libtextstyle-dummy: New file, based on gnulib's
modules/libtextstyle-optional.
* gnulib-local/Makefile.am (EXTRA_DIST): Add it.
* autogen.sh (GNULIB_MODULES_LIBGETTEXTPO): Add libtextstyle-dummy. Remove
file-ostream, ostream.
* gettext-tools/src/write-catalog.h: Include <textstyle.h> always.
* gettext-tools/src/write-catalog.c: Likewise.
* gettext-tools/src/write-po.h: Likewise.
* gettext-tools/src/write-po.c: Likewise.
Link the msg* and xgettext programs against libtextstyle.
* libtextstyle/autogen.sh: Don't generate lib/color.h and lib/color.c.
* libtextstyle/lib/color.h: Moved to here from gettext-tools/src/color.h.
* libtextstyle/lib/color.c: Moved to here from gettext-tools/src/color.c.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Remove fd-ostream, file-ostream,
html-styled-ostream, ostream, styled-ostream, term-styled-ostream. Add libxml.
* gettext-tools/gnulib-lib/Makefile.am (MOOPPFLAGS): Remove customization.
* gettext-tools/gnulib-tests/Makefile.am (test_term_ostream_LDADD): Remove
customization.
* gettext-tools/src/Makefile.am (noinst_HEADERS): Remove color.h.
(AM_CPPFLAGS): Add -I directives to the libtextstyle/lib directory.
(libgettextsrc_la_SOURCES): Remove color.c.
(libgettextsrc_la_LDFLAGS): Link with libtextstyle.la.
* gettext-tools/src/FILES: Update.
* gettext-tools/src/write-catalog.h: Include <textstyle.h> instead of ostream.h.
* gettext-tools/src/write-catalog.c: Include <textstyle.h> instead of color.h
and *-ostream.h.
(msgdomain_list_print): Use styled_ostream_create and
noop_styled_ostream_create.
* gettext-tools/src/write-po.h: Include <textstyle.h> instead of ostream.h.
* gettext-tools/src/write-po.c: Include <textstyle.h> instead of *-ostream.h.
(is_stylable): Remove function.
(begin_css_class, end_css_class): Update. Mark as inline.
* gettext-tools/src/write-properties.c: Include <textstyle.h> instead of
ostream.h.
* gettext-tools/src/write-stringtable.c: Likewise.
* gettext-tools/src/msgattrib.c: Include <textstyle.h> instead of color.h.
* gettext-tools/src/msgcat.c: Likewise.
* gettext-tools/src/msgcomm.c: Likewise.
* gettext-tools/src/msgconv.c: Likewise.
* gettext-tools/src/msgen.c: Likewise.
* gettext-tools/src/msgfilter.c: Likewise.
* gettext-tools/src/msggrep.c: Likewise.
* gettext-tools/src/msginit.c: Likewise.
* gettext-tools/src/msgmerge.c: Likewise.
* gettext-tools/src/msgunfmt.c: Likewise.
* gettext-tools/src/msguniq.c: Likewise.
* gettext-tools/src/xgettext.c: Likewise.
libtextstyle: Generalize fd-styled-ostream to noop-styled-ostream.
* gnulib-local/lib/noop-styled-ostream.oo.h: New file, based on
gnulib-local/lib/fd-styled-ostream.oo.h.
* gnulib-local/lib/noop-styled-ostream.oo.c: New file, based on
gnulib-local/lib/fd-styled-ostream.oo.c.
* gnulib-local/modules/noop-styled-ostream: New file, based on
gnulib-local/modules/fd-styled-ostream.
* gnulib-local/Makefile.am (EXTRA_DIST): Remove lib/fd-styled-ostream.oo.[hc]
and modules/fd-styled-ostream. Add lib/noop-styled-ostream.oo.[hc] and
modules/noop-styled-ostream.
* libtextstyle/woe32dll/c++noop-styled-ostream.cc: New file, based on
libtextstyle/woe32dll/c++fd-styled-ostream.cc.
* libtextstyle/gnulib-local/modules/noop-styled-ostream.diff: New file, based
on libtextstyle/gnulib-local/modules/fd-styled-ostream.diff.
* gnulib-local/lib/fd-styled-ostream.oo.h: Remove file.
* gnulib-local/lib/fd-styled-ostream.oo.c: Remove file.
* gnulib-local/modules/fd-styled-ostream: Remove file.
* libtextstyle/woe32dll/c++fd-styled-ostream.cc: Remove file.
* libtextstyle/gnulib-local/modules/fd-styled-ostream.diff: Remove file.
* libtextstyle/autogen.sh (GNULIB_MODULES): Add noop-styled-ostream. Remove
fd-styled-ostream.
* libtextstyle/lib/misc.c: Include noop-styled-ostream.h, fd-ostream.h.
(styled_ostream_create): Call fd_ostream_create and noop_styled_ostream_create
instead of fd_styled_ostream_create.
* libtextstyle/lib/textstyle.h (noop_styled_ostream_t): New type.
(noop_styled_ostream_*): New declarations.
* libtextstyle/doc/libtextstyle.texi (The noop_styled_ostream class): New
subsection.
build: Build and install libtextstyle.
* autogen.sh: Recurse into libtextstyle directory.
* configure.ac: Likewise.
* Makefile.am (SUBDIRS): Add libtextstyle.
* DEPENDENCIES: Mention that libiconv and ncurses are also used by libtextstyle.
* PACKAGING: Recommend to ship libtextstyle as a third binary package.
* NEWS: Mention that libtextstyle is installed.
build: Separate git operations from build operations.
* gitsub.sh: New file, from gnulib.
* autogen.sh: Remove all git operations and the --no-git option. Look at the
GNULIB_SRCDIR environment variable. Ignore the GNULIB_TOOL environment variable.
* HACKING: Explain when to use gitsub.sh.
libtextstyle: Bump version number.
2019-04-01 Daiki Ueno <[email protected]>
desktop: Fix whitespace handling around '='
While the spec only allows spaces before and after '=',
xgettext/msgfmt previously accepted all whitespaces including '\n'.
That was causing unwanted concatenation of desktop lines.
Reported by Bastien Nocera in:
https://lists.gnu.org/archive/html/bug-gettext/2019-03/msg00017.html
* gettext-tools/src/read-desktop.c (desktop_lex): Properly handle
space characters before and after '='.
* gettext-tools/tests/msgfmt-desktop-1: Add a test case.
2019-04-01 Bruno Haible <[email protected]>
libtextstyle: Bump version number.
2019-03-31 Bruno Haible <[email protected]>
libtextstyle: Add support for true-color terminals.
* gnulib-local/lib/term-ostream.oo.c (colormodel_t): Add cm_xtermrgb.
(rgb_to_color_xtermrgb): New function.
(attributes_t): Extend the color fields to 25 bits.
(struct term_ostream): New fields active_attr_color, active_attr_bgcolor.
(out_color_change, out_bgcolor_change, term_ostream::rgb_to_color): Handle
cm_xtermrgb.
(out_attr_change): Set also active_attr_color, active_attr_bgcolor.
(async_set_attributes_from_default): Fetch also active_attr_color,
active_attr_bgcolor.
(term_ostream_create): Accept all $TERM values that end in -direct.
* libtextstyle/doc/libtextstyle.texi (Terminal emulators): Document the
prerequisites for true-color support.
* libtextstyle/NEWS: Mention the change.
maint: Make code more "git diff"-friendly.
* gettext-runtime/src/envsubst.c: Prefer long lines to lines that start with a
non-whitespace character.
* gettext-tools/src/cldr-plurals.c: Likewise.
* gettext-tools/src/format.c: Likewise.
* gettext-tools/src/msgcmp.c: Likewise.
* gettext-tools/src/msgfmt.c: Likewise.
* gettext-tools/src/msggrep.c: Likewise.
* gettext-tools/src/msgl-cat.c: Likewise.
* gettext-tools/src/msgl-charset.c: Likewise.
* gettext-tools/src/msgl-check.c: Likewise.
* gettext-tools/src/msgl-iconv.c: Likewise.
* gettext-tools/src/msgmerge.c: Likewise.
* gettext-tools/src/po-lex.c: Likewise.
* gettext-tools/src/read-stringtable.c: Likewise.
* gettext-tools/src/recode-sr-latin.c: Likewise.
* gettext-tools/src/write-catalog.c: Likewise.
* gettext-tools/src/write-java.c: Likewise.
* gettext-tools/src/write-po.c: Likewise.
* gettext-tools/src/x-csharp.c: Likewise.
* gettext-tools/src/x-elisp.c: Likewise.
* gettext-tools/src/x-java.c: Likewise.
* gettext-tools/src/x-javascript.c: Likewise.
* gettext-tools/src/x-librep.c: Likewise.
* gettext-tools/src/x-lisp.c: Likewise.
* gettext-tools/src/x-perl.c: Likewise.
* gettext-tools/src/x-python.c: Likewise.
* gettext-tools/src/x-scheme.c: Likewise.
* gettext-tools/src/x-sh.c: Likewise.
* gettext-tools/src/x-tcl.c: Likewise.
* gettext-tools/src/x-vala.c: Likewise.
* gettext-tools/src/xg-encoding.c: Likewise.
* gettext-tools/src/xgettext.c: Likewise.
libtextstyle: Improve documentation regarding the TERM value.
* libtextstyle/doc/libtextstyle.texi (The TERM variable): Many more details.
(Terminal emulators, Consoles): New subsections.
libtextstyle: Support for terminal types with 256 colors.
* gnulib-local/lib/term-ostream.oo.c (term_ostream_create): Accept all $TERM
values that end in -16color or -256 color (such as Eterm-256color,
mlterm-256color, or putty-256color).
* libtextstyle/NEWS: Mention the change.
2019-03-30 Takesi Ayanokoji <[email protected]>
po-mode: Enable highlighting of #, lines.
* gettext-tools/emacs/po-mode.el (po-font-lock-keywords): Add rule for #, lines.
2019-03-30 Bruno Haible <[email protected]>
po-mode: Remove support for Emacs versions < 22.
Emacs 22 is the oldest version still in use, see
<https://repology.org/project/emacs/versions>.
* gettext-tools/emacs/po-compat.el: Remove conditional code for Emacs < 22.
* gettext-tools/emacs/po-mode.el: Likewise.
(po-rehighlight): Remove function.
(po-check-all-pending-edits, po-check-for-pending-edit): Update.
* gettext-tools/emacs/start-po.el: Update comment.
2019-03-30 Bruno Haible <[email protected]>
po-mode: Remove support for XEmacs.
* gettext-tools/emacs/po-mode.el: Remove conditional code for XEmacs.
* gettext-tools/emacs/po-compat.el: Likwise.
build: Move the Emacs package sources to subdirectory gettext-tools/emacs/.
* gettext-tools/emacs/*.el: Moved here from gettext-tools/misc/.
* gettext-tools/emacs/Makefile.am: New file, based on
gettext-tools/misc/Makefile.am.
* gettext-tools/misc/Makefile.am (lisp_LISP): Remove variable.
* gettext-tools/configure.ac (AC_CONFIG_FILES): Add emacs/Makefile.
* gettext-tools/Makefile.am (SUBDIRS): Add 'emacs'.
Update after gnulib changed.
2019-03-27 Bruno Haible <[email protected]>
libtextstyle: Add support for Windows consoles.
* gnulib-local/lib/term-ostream.oo.c: Include <windows.h>, msvc-nothrow.h,
<io.h>.
(struct term_ostream): Add fields handle, is_windows_console,
default_console_attributes, current_console_attributes.
(out_color_change, out_bgcolor_change, out_underline_change, out_attr_change,
restore, async_restore, async_set_attributes_from_default, term_ostream::flush):
Add separate code path for Windows consoles.
(term_ostream_create): On Windows, test whether the handle refers to a console,
and initialize the new fields.
* gnulib-local/modules/term-ostream (Depends-on): Add msvc-nothrow.
* libtextstyle/NEWS: Mention it.
libtextstyle: Make the SIGCONT handler work more reliably.
* gnulib-local/lib/term-ostream.oo.c (out_attr_change): Modify active_attr
before emitting the escape sequences, not afterwards.
* libtextstyle/NEWS: Mention the fix.
libtextstyle: Mention fixes.
* libtextstyle/NEWS: Mention two fixes done in the gnulib module
'term-style-control'.
libtextstyle: Small fix for last commit.
* gnulib-local/lib/term-ostream.oo.c (struct term_ostream): Mark fd volatile.
Update to newest gnulib.
2019-03-27 Bruno Haible <[email protected]>
its: Simplify code.
Suggested by Daiki Ueno.
* gettext-tools/src/its.c (normalize_whitespace): Remove local variable.
2019-03-26 Bruno Haible <[email protected]>
its: Fix test failure.
* gettext-tools/src/its.c (normalize_whitespace): Fix detection of paragraph
boundary. Get rid of initial trim() call.
* gettext-tools/tests/xgettext-its-1: Fix typo. Verify removal of whitespace
at the end of the last paragraph.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add memchr.
build: Use gnulib module 'strchrnul' explicitly.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add strchrnul.
2019-03-24 Bruno Haible <[email protected]>
libtextstyle: Use gnulib module 'term-style-control'.
* gnulib-local/lib/term-ostream.oo.h: Include term-style-control.h.
(ttyctl_t): Remove type.
* gnulib-local/lib/term-ostream.oo.c (DEBUG_SIGNALS): Remove macro.
Don't include <signal.h>, <stdio.h>, <sys/stat.h>, fatal-signal.h,
sig-handler.h, same-inode.h.
(SIZEOF): Remove macro.
(nonintr_tcgetattr, nonintr_tcsetattr): Remove functions.
(log_message, sprintf_integer, simple_errno_string, simple_signal_string,
log_signal_handler_called): Remove functions.
(struct term_ostream): Remove fields tty_control, same_as_stderr,
non_default_active. Add control_data field instead.
(get_control_data): New function.
(BLOCK_SIGNALS_DURING_NON_DEFAULT_STYLE_OUTPUT): Remove macro.
(term_fd): Remove variable.
(pgrp_status_t): Remove type.
(pgrp_status): Remove variable.
(update_pgrp_status): Remove function.
(out_filename): Remove variable.
(out_error): Use out_stream instead of out_filename.
(restore, tcsetattr_failed): Remove functions.
(orig_lflag_set, orig_lflag): Remove variables.
(clobber_local_mode, restore_local_mode): Remove functions.
(job_control_signals): Remove variable.
(num_job_control_signals): Remove macro.
(relevant_signal_set, relevant_signal_set_initialized): Remove variables.
(init_relevant_signal_set, block_relevant_signals, unblock_relevant_signals,
is_ignored, show_signal_marker, fatal_or_stopping_signal_handler,
fatal_signal_handler, stopping_signal_handler, continuing_signal_handler,
ensure_continuing_signal_handler, ensure_other_signal_handlers): Remove
functions.
(out_attr_change): Set out_stream and out_fd.
(activate_non_default_attr, deactivate_non_default_attr): Remove functions.
(restore, async_restore, async_set_attributes_from_default): New functions.
(controller): New variable.
(activate_default_attr, output_buffer): Update.
(term_ostream::free): Invoke deactivate_term_style_controller.
(term_ostream_create): Invoke activate_term_style_controller.
* gnulib-local/m4/term-ostream.m4 (gl_TERM_OSTREAM): Don't test for tcgetattr().
* gnulib-local/modules/term-ostream (Depends-on): Add term-style-control. Remove
fatal-signal, sigaction, sigprocmask, same-inode.
moopp: Allow forward references to the <class>_representation type.
* gnulib-local/build-aux/moopp (func_version): Bump copyright year.
(func_emit_source_c): Move the <class>_representation type alias to the top
of the file.