head 1.4; access; symbols pkgsrc-2019Q3:1.3.0.10 pkgsrc-2019Q3-base:1.3 pkgsrc-2019Q2:1.3.0.8 pkgsrc-2019Q2-base:1.3 pkgsrc-2019Q1:1.3.0.6 pkgsrc-2019Q1-base:1.3 pkgsrc-2018Q4:1.3.0.4 pkgsrc-2018Q4-base:1.3 pkgsrc-2018Q3:1.3.0.2 pkgsrc-2018Q3-base:1.3 pkgsrc-2016Q3:1.1.0.6 pkgsrc-2016Q3-base:1.1 pkgsrc-2016Q2:1.1.0.4 pkgsrc-2016Q2-base:1.1 pkgsrc-2016Q1:1.1.0.2 pkgsrc-2016Q1-base:1.1; locks; strict; comment @ * @; 1.4 date 2019.10.08.14.30.09; author ryoon; state dead; branches; next 1.3; commitid MijxB41KDHmwx4GB; 1.3 date 2018.08.30.11.27.48; author tnn; state Exp; branches; next 1.2; commitid xRb0ViDPHx4Kv8QA; 1.2 date 2016.10.19.12.49.39; author wiz; state dead; branches; next 1.1; commitid NbGbdCyu3ccmPKqz; 1.1 date 2016.03.20.19.09.53; author wiz; state Exp; branches; next ; commitid sF2yvQijGLS4MpZy; desc @@ 1.4 log @Update to 6.7 Changelog: 6.7 (23 September 2019) * Language: . support of index subentries and sub-subentries with @@subentry . new commands @@seeentry and @@seealso in index entries . no need to wrap Top node in @@ifnottex - omitted automatically when processed with TeX . UTF-8 is the default input encoding * texi2any . for HTML output, mark index nodes in menus and tables of contents with the 'rel' attribute of the 'a' tag. . TOP_NODE_UP is now only used in HTML if TOP_NODE_UP_URL is set. Also TOP_NODE_UP should now be formatted in the output format. In HTML TOP_NODE_UP should be suitable for inclusion in HTML element attributes, so for instance should not contain elements. . support of noderename.cnf files has been removed . INPUT_PERL_ENCODING, INPUT_ENCODING_NAME, NODE_FILE_EXTENSION, NODE_FILENAMES, SHORTEXTN and TOP_NODE_FILE removed as customization variables. . TOP_NODE_FILE_TARGET now contains the extension. . error messages translated when the XS parser module is in use * texi2dvi . unconditionally run in --batch mode, i.e. without stopping if there is a TeX error . keep on going after a TeX error if the index files changed . with --tidy (or --build-dir), avoid reading index files from previous runs where --tidy was not used * info . for a tree search (with M-/), '}' and '{' work as well as 'M-}' and 'M-{' to go through the results * Distribution: . Several obsolete portability checks removed . gettext 0.20.1, automake 1.16.1 6.6 (16 February 2019) * Language: . new commands @@&, @@ampchar{} . @@cropmarks command removed . @@ctrl is no longer recognised (it was a way to insert literal control characters in Info files, but deprecated since the time of Texinfo version 2) . \usebracesinindexestrue is no longer recommended for using braces in index entries, and has been a no-op for some time * texi2any . extension modules fixed to work with the "thread-safe locales" of Perl 5.28 and newer . some code changed to stop warnings being given by newer versions of Perl . for HTML output, use `id' to define link targets instead of the `name' attribute on . A native-code implementation of the Texinfo parser has been included on an experimental basis, which makes texi2any a lot faster. Set the `TEXINFO_XS_PARSER' environment variable to 1 to use. . changes to HTML output: . omit colon after node name in menus by default (use `MENU_ENTRY_COLON' to add it back) . no special CSS for commands like @@smallexample . new customization variable `SECTION_NAME_IN_TITLE' to use the section name as the document . use section names instead of node names in generated menus . pass on flags set with -D to TeX . useless static libraries are not installed . the newline after an @@insertcopying is not output . warning given for @@multitable prototypes not in braces . @@indent and @@noindent are not allowed inside the arguments to commands where they are not meaningful . @@quote-arg and @@allow-recursion are not recognised (these two used to be recognised by makeinfo in macro definitions but were never implemented in texinfo.tex) . `FIX_TEXINFO' removed as a customization variable . do not recognise or warn about obsolete customization variables * info . debugging output with -x is not diverted to a separate infodebug file * Development: . switch from Subversion to git - https://savannah.gnu.org/git/?group=texinfo . automake 1.16 @ text @$NetBSD: patch-tp_Texinfo_Convert_XSParagraph_xspara.c,v 1.3 2018/08/30 11:27:48 tnn Exp $ >From 9031aefb7f180f718db83aec5e2782079455a32f Mon Sep 17 00:00:00 2001 From: Niko Tyni <address@@hidden> Date: Sat, 30 Jun 2018 16:51:13 +0100 Subject: [PATCH] Update locale handling for Perl 5.28 Perl 5.28 introduced thread-safe locales, where setlocale() only affects the locale of the current thread. External code like mbrtowc(3) isn't aware of this thread specific locale, so we need to explicitly modify the global one instead. Without this we could enter a busy loop in xspara__add_next() (Texinfo::Convert::XSParagraph) for UTF-8 documents when mbrtowc(3) returned -1. --- tp/Texinfo/Convert/XSParagraph/xspara.c | 9 +++++++++ 1 file changed, 9 insertions(+) --- tp/Texinfo/Convert/XSParagraph/xspara.c.orig 2017-06-18 15:38:01.000000000 +0000 +++ tp/Texinfo/Convert/XSParagraph/xspara.c @@@@ -248,6 +248,11 @@@@ xspara_init (void) dTHX; +#if PERL_VERSION > 27 || (PERL_VERSION == 27 && PERL_SUBVERSION > 8) + /* needed due to thread-safe locale handling in newer perls */ + switch_to_global_locale(); +#endif + if (setlocale (LC_CTYPE, "en_US.UTF-8") || setlocale (LC_CTYPE, "en_US.utf8")) goto success; @@@@ -320,6 +325,10 @@@@ failure: { success: ; free (utf8_locale); +#if PERL_VERSION > 27 || (PERL_VERSION == 27 && PERL_SUBVERSION > 8) + /* needed due to thread-safe locale handling in newer perls */ + sync_locale(); +#endif /* fprintf (stderr, "tried to set LC_CTYPE to UTF-8.\n"); fprintf (stderr, "character encoding is: %s\n", @ 1.3 log @gtexinfo: fix infinite loop in makeinfo with perl-5.28 patch from Niko Tyni via upstream mailing list @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Updated gtexinfo to 6.3. 6.3 (10 September 2016) * Language: . The commands `@@setcontentsaftertitlepage' and `@@setshortcontentsaftertitlepage' have been removed. . @@-commands are no longer supported within `@@errormsg'. * texinfo.tex: . For a couple of characters (opening and closing braces), use glyphs from the standard TeX math fonts instead of using EC fonts which are less likely to be installed. . Use of user-defined macros in the text of an index entry is more reliable when the text contains Texinfo @@-commands. . @@synindex and @@syncodeindex have been fixed (broken in the last release). . Support added for native UTF-8 support with XeTeX and LuaTeX. . Support of PDF output with XeTeX improved. . You can use a new file doc/texinfo-ja.tex for Texinfo documents in Japanese. doc/short-sample-ja.tex is a sample document. New support file doc/txi-ja.tex for Japanese. * texi2any: . Fix handling of compiler options when building Perl extension modules. * texi2dvi: . Can now process files whose absolute paths contain space characters, as long a relative path to the file is given. Better support of files with unusual characters in their names. . No longer exits prematurely in some circumstances (due to the script running under "set -e"). . Bug fixed which made the `--command' and `--tidy' options incompatible. * info: . Handling of "invalid" value in infokey file fixed. 6.2 (withdrawn) @ text @d1 1 a1 1 $NetBSD: patch-tp_Texinfo_Convert_XSParagraph_xspara.c,v 1.1 2016/03/20 19:09:53 wiz Exp $ d3 4 a6 1 Do not call text_append_n with (size_t)-1. d8 13 a20 1 --- tp/Texinfo/Convert/XSParagraph/xspara.c.orig 2016-01-23 11:31:17.000000000 +0000 d22 1 a22 12 @@@@ -872,7 +872,7 @@@@ xspara_add_text (char *text) { if (state.space_counter > 0) { - /* Truncuate to at most 2 spaces, and replace any + /* Truncate to at most 2 spaces, and replace any '\n' or '\r' characters with ' '. */ TEXT new_space; @@@@ -892,12 +892,18 @@@@ xspara_add_text (char *text) break; len = mbrlen (pspace, pspace_left, NULL); d24 1 a24 16 - /* Subtitute newlines in the pending space + /* Substitute newlines in the pending space with spaces. */ if (*pspace == '\n' || *pspace == '\r') text_append_n (&new_space, " ", 1); - else - text_append_n (&new_space, pspace, len); + else { + if (len > 0) { + text_append_n (&new_space, pspace, len); + } else { + /* skip one character and try again */ + len = 1; + } + } state.space_counter++; d26 19 a44 1 pspace += len; @ 1.1 log @Avoid a call to malloc() that gets passed (size_t)-1. print/lilypond triggers this. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD$ @