head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.11.20.15.57.11; author ktnb; state Exp; branches; next ; commitid YSELfO8NFxcTrd4H; desc @@ 1.1 log @pinfo: update to 0.6.13 Packaging changes: - upstream ownership changed hands and locations - many updates to the build system requiring changes Upstream changes: 0.6.13: - Fix crash on 32-bit architectures 0.6.12: - minor release to fix the use of defualt colors (COLOR_DEFAULT) on ncurses installs; COLOR_DEFAULT values in pinforc were silently ignored, causing pinfo to use black-on-balc or white-on-white text - remove AM_MAINTAINER_MODE from autoconf scripts to make sure all necessary files are always rebuilt on ./configure && make - fix possibel buffer overflow (and compiler error with gcc 8.2) 0.6.11: - Gracefully handle missing indirect info nodes - Fix infinite loop when regexp-matching an empty string - Fix loading of bare info pages (i.e., without .info extension) - Properly load info pages whose name starts with "dir" - Changes and tweaks to the auto* build tools - Get rid of inlined functions, which break building with gcc7 - Fix segfautl when closing unopened file - Fix typos in docs - Fix compiler warnings - Fix a number of out-of-buffer write, buffer overflows, string truncations - Clean up documentation - Correctly handle redirected stdin and/or stdout (https://bugs.debian.org/671306) - Fix crash after failed global search - Make curses mouse behaviour configurable Note: this changes the default behaviour to not capture the mouse. To restore the old behaviour, set GRAB-MOUSE=true in pinforc. - Avoid an infinite loop for malformed info pages - Add readline tab completion for nodes (https://bugs.debian.org/431708) - Correct parse node links that span multiple (indented) lines. - If a direct info page hit isn't found, try to look up a node in the dir - Improve lookup of info pages - Fix linking to man pages in a different section - Fix the -n/--node command line option 0.6.10: - Fix issue with handling of suspend/resume and character input (thanks to Scott Mcdermott for the patch) - Move variable declarations to the start of a block, to accomodate non-gcc compilers. Thanks to Anonymous for the patches submitted to Alioth. 0.6.9 - New maintainer: Bas Zoetekouw - 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 @$NetBSD$ ctype fix for NetBSD 11 --- src/initializelinks.c.orig 2026-11-20 14:30:16.042759124 +0000 +++ src/initializelinks.c @@@@ -49,10 +49,10 @@@@ compare_tag_table_string(char *base, char *compared) { if (base[i] != compared[j]) { - if ((isspace(compared[j])) &&(isspace(base[i]))); /* OK--two blanks */ - else if (isspace(compared[j])) + if ((isspace((unsigned char)compared[j])) &&(isspace((unsigned char)base[i]))); /* OK--two blanks */ + else if (isspace((unsigned char)compared[j])) i--; /* index of `base' should be unchanged after for's i++ */ - else if (isspace(base[i])) + else if (isspace((unsigned char)base[i])) j--; /* index of `compared' stands in place and waits for base to skip blanks */ else @@@@ -62,7 +62,7 @@@@ compare_tag_table_string(char *base, char *compared) } while (compared[j]) /* handle trailing whitespaces of variable `compared' */ { - if (!isspace(compared[j])) + if (!isspace((unsigned char)compared[j])) return (int) base[i] -(int) compared[j]; j++; } @@@@ -127,7 +127,7 @@@@ finddot(char *str, int mynote) }; char *closest = 0; int i; - while (isspace(*ptr)) /* if there are only spaces and newline... */ + while (isspace((unsigned char)*ptr)) /* if there are only spaces and newline... */ { if (*ptr == '\n') /* then it's a `Menu: \n' entry--skip it */ return 0; @@@@ -449,7 +449,7 @@@@ handle_no_file_menu_label: } start = tmp + 1; /* move after the padding spaces */ - while (isspace(*start)) + while (isspace((unsigned char)*start)) start++; NodenameLen =(long)(dot - start); strcpy(hyperobjects[hyperobjectcount].file, ""); @@@@ -703,7 +703,7 @@@@ handle_no_file_note_label: } start = tmp + 1; /* move after the padding spaces */ - while (isspace(*start)) + while (isspace((unsigned char)*start)) start++; NodenameLen =(long)(dot - start); strcpy(hyperobjects[hyperobjectcount].file, ""); @