head 1.2; access; symbols; locks; strict; comment @ * @; 1.2 date 2026.11.20.20.24.55; author ktnb; state Exp; branches; next 1.1; commitid xlmZhQhIAldIVe4H; 1.1 date 2026.11.20.15.57.11; author ktnb; state Exp; branches; next ; commitid YSELfO8NFxcTrd4H; desc @@ 1.2 log @pinfo: fixed bug with readline @ text @$NetBSD: patch-src_utils.c,v 1.1 2026/11/20 15:57:11 ktnb Exp $ ctype fix for NetBSD 11, sys/wait.h is required, and fix readline conditional --- src/utils.c.orig 2019-02-16 20:23:32.000000000 +0000 +++ src/utils.c @@@@ -24,6 +24,7 @@@@ #include #include #include +#include #ifdef USE_WCHAR #include @@@@ -353,7 +354,7 @@@@ char ** completions_from_tag_table(TagTable * table, s const char ** completions = calloc(num+1, sizeof(*completions)); for (size_t i=0, j=0; i - License is now GPL version 2 only - Updated German, Dutch, English, Polish, Russian, Czech translations and added Basque, Swedish, Viernamese and Brazilian translations. Thanks to Jens Seidel, Rene van Bevern, Piarres Beobide, Krzysztof Krzyzaniak, Yuri Kozlov, Eddy Petrişor, Katarína Machálková, Clytie Siddall and Felipe Augusto van de Wiel. - Nodes containing a "." are now correctly found - Non-ASCII man pages are displayed correctly - Improved the history behavior of the search input line - Broken tag tables are now automatically fixed - Don't segfault when a broken regexp is entered - Fixed a number of segfaults caused by using uninitialized pointers and off-by-1 errors - Fixed heap corruption caused by non-ascii chars in info pages - Fixed a lot of patch searching issues - Fixed text display on narrow terminals - Fixed highlighting of searches - The default pinforc now uses the terminal's default foreground and background colors. Thanks to Rob Funk for a patch. - Use libreadline by default; readline version 4 is now required. - Better cooperation between ncurses and readline - Fixed some memory leaks - Got rid of tempnam() calls - Fixed -Wall and -Wshadow compiler warnings - Use utf8 in documentation files and fixed typoes 0.6.8 Patches from Witold Filipczyk for node detection algorithms in man and info. Added default item on search prompt. Bugfix in info link freeing procedure, which failed on exim pages. Bugfix for dir page lookup when several matches are found--there was a double close() problem. 0.6.7 Added scrolling in left/right direction (!!!new config file keys). Fixed handling of info entries like `emacs21/emacs'--modified function matchfile(). Added autmatical detection of rawfilename for filenames beginning with `../', `./', `/' in main(). Added support for '(gcc)Introduction' like specification of nodes. 0.6.6 bugfixes for userdefined rcfile and configuration inconsistences added sorting of matches for the info file to display 0.6.5 Fixed bug in sorting of tag table links (major effect to the engine) Changed the file search engine to scan the directory for a matching pattern (instead of trying various propositions). Fixed minor sigsegv bug in page loader (link initializer). !Added switching between sections in manualviewer mode Highlighting code does not highlight leading spaces in splitted notes anymore. Added information when the search is not successful Added support for command line selected rc files 0.6.4 New apropos handler. It works now interactively. New option -p here. Doesn't highlight anymore links to itself in man viewer. Fixed bug with link following. Fixed readline emulation: it now deletes old line content, and handles end key Fixed SIGWINCH handler/curses blocking getch emulation Fixed searchpath routines. First of all, there is introduced a 'context' for currently viewed file. Pinfo will search files for one set of infopages only in one directory--in the context directory. The context can be changed only when changing the set of infopages. 0.6.3 NLS and documentation bugfixes Small bugfix in keyhandler 0.6.2 Fixed bug with searchpath for raw filename specification (temporary hack). Fixed stupid bug with info parser, which didn't accept an `INFOTAG.+\n' separator for info nodes (eg. gnuplot's infopage). Fixd detection of first info page. Fixed buggy use of bkgdset() @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 ctype fix for NetBSD 11 and sys/wait.h is required d5 1 a5 1 --- src/utils.c.orig 2026-11-20 14:25:26.785618991 +0000 d24 45 a68 1 @@@@ -604,14 +605,14 @@@@ yesno(char *prompt, int def) @