head 1.2; access; symbols pkgsrc-2026Q3:1.1.0.196 pkgsrc-2026Q3-base:1.1 pkgsrc-2026Q2:1.1.0.194 pkgsrc-2026Q2-base:1.1 pkgsrc-2026Q1:1.1.0.192 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.190 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.188 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.186 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.184 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.182 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.180 pkgsrc-2024Q3-base:1.1 pkgsrc-2024Q2:1.1.0.178 pkgsrc-2024Q2-base:1.1 pkgsrc-2024Q1:1.1.0.176 pkgsrc-2024Q1-base:1.1 pkgsrc-2023Q4:1.1.0.174 pkgsrc-2023Q4-base:1.1 pkgsrc-2023Q3:1.1.0.172 pkgsrc-2023Q3-base:1.1 pkgsrc-2023Q2:1.1.0.170 pkgsrc-2023Q2-base:1.1 pkgsrc-2023Q1:1.1.0.168 pkgsrc-2023Q1-base:1.1 pkgsrc-2022Q4:1.1.0.166 pkgsrc-2022Q4-base:1.1 pkgsrc-2022Q3:1.1.0.164 pkgsrc-2022Q3-base:1.1 pkgsrc-2022Q2:1.1.0.162 pkgsrc-2022Q2-base:1.1 pkgsrc-2022Q1:1.1.0.160 pkgsrc-2022Q1-base:1.1 pkgsrc-2021Q4:1.1.0.158 pkgsrc-2021Q4-base:1.1 pkgsrc-2021Q3:1.1.0.156 pkgsrc-2021Q3-base:1.1 pkgsrc-2021Q2:1.1.0.154 pkgsrc-2021Q2-base:1.1 pkgsrc-2021Q1:1.1.0.152 pkgsrc-2021Q1-base:1.1 pkgsrc-2020Q4:1.1.0.150 pkgsrc-2020Q4-base:1.1 pkgsrc-2020Q3:1.1.0.148 pkgsrc-2020Q3-base:1.1 pkgsrc-2020Q2:1.1.0.144 pkgsrc-2020Q2-base:1.1 pkgsrc-2020Q1:1.1.0.124 pkgsrc-2020Q1-base:1.1 pkgsrc-2019Q4:1.1.0.146 pkgsrc-2019Q4-base:1.1 pkgsrc-2019Q3:1.1.0.142 pkgsrc-2019Q3-base:1.1 pkgsrc-2019Q2:1.1.0.140 pkgsrc-2019Q2-base:1.1 pkgsrc-2019Q1:1.1.0.138 pkgsrc-2019Q1-base:1.1 pkgsrc-2018Q4:1.1.0.136 pkgsrc-2018Q4-base:1.1 pkgsrc-2018Q3:1.1.0.134 pkgsrc-2018Q3-base:1.1 pkgsrc-2018Q2:1.1.0.132 pkgsrc-2018Q2-base:1.1 pkgsrc-2018Q1:1.1.0.130 pkgsrc-2018Q1-base:1.1 pkgsrc-2017Q4:1.1.0.128 pkgsrc-2017Q4-base:1.1 pkgsrc-2017Q3:1.1.0.126 pkgsrc-2017Q3-base:1.1 pkgsrc-2017Q2:1.1.0.122 pkgsrc-2017Q2-base:1.1 pkgsrc-2017Q1:1.1.0.120 pkgsrc-2017Q1-base:1.1 pkgsrc-2016Q4:1.1.0.118 pkgsrc-2016Q4-base:1.1 pkgsrc-2016Q3:1.1.0.116 pkgsrc-2016Q3-base:1.1 pkgsrc-2016Q2:1.1.0.114 pkgsrc-2016Q2-base:1.1 pkgsrc-2016Q1:1.1.0.112 pkgsrc-2016Q1-base:1.1 pkgsrc-2015Q4:1.1.0.110 pkgsrc-2015Q4-base:1.1 pkgsrc-2015Q3:1.1.0.108 pkgsrc-2015Q3-base:1.1 pkgsrc-2015Q2:1.1.0.106 pkgsrc-2015Q2-base:1.1 pkgsrc-2015Q1:1.1.0.104 pkgsrc-2015Q1-base:1.1 pkgsrc-2014Q4:1.1.0.102 pkgsrc-2014Q4-base:1.1 pkgsrc-2014Q3:1.1.0.100 pkgsrc-2014Q3-base:1.1 pkgsrc-2014Q2:1.1.0.98 pkgsrc-2014Q2-base:1.1 pkgsrc-2014Q1:1.1.0.96 pkgsrc-2014Q1-base:1.1 pkgsrc-2013Q4:1.1.0.94 pkgsrc-2013Q4-base:1.1 pkgsrc-2013Q3:1.1.0.92 pkgsrc-2013Q3-base:1.1 pkgsrc-2013Q2:1.1.0.90 pkgsrc-2013Q2-base:1.1 pkgsrc-2013Q1:1.1.0.88 pkgsrc-2013Q1-base:1.1 pkgsrc-2012Q4:1.1.0.86 pkgsrc-2012Q4-base:1.1 pkgsrc-2012Q3:1.1.0.84 pkgsrc-2012Q3-base:1.1 pkgsrc-2012Q2:1.1.0.82 pkgsrc-2012Q2-base:1.1 pkgsrc-2012Q1:1.1.0.80 pkgsrc-2012Q1-base:1.1 pkgsrc-2011Q4:1.1.0.78 pkgsrc-2011Q4-base:1.1 pkgsrc-2011Q3:1.1.0.76 pkgsrc-2011Q3-base:1.1 pkgsrc-2011Q2:1.1.0.74 pkgsrc-2011Q2-base:1.1 pkgsrc-2011Q1:1.1.0.72 pkgsrc-2011Q1-base:1.1 pkgsrc-2010Q4:1.1.0.70 pkgsrc-2010Q4-base:1.1 pkgsrc-2010Q3:1.1.0.68 pkgsrc-2010Q3-base:1.1 pkgsrc-2010Q2:1.1.0.66 pkgsrc-2010Q2-base:1.1 pkgsrc-2010Q1:1.1.0.64 pkgsrc-2010Q1-base:1.1 pkgsrc-2009Q4:1.1.0.62 pkgsrc-2009Q4-base:1.1 pkgsrc-2009Q3:1.1.0.60 pkgsrc-2009Q3-base:1.1 pkgsrc-2009Q2:1.1.0.58 pkgsrc-2009Q2-base:1.1 pkgsrc-2009Q1:1.1.0.56 pkgsrc-2009Q1-base:1.1 pkgsrc-2008Q4:1.1.0.54 pkgsrc-2008Q4-base:1.1 pkgsrc-2008Q3:1.1.0.52 pkgsrc-2008Q3-base:1.1 cube-native-xorg:1.1.0.50 cube-native-xorg-base:1.1 pkgsrc-2008Q2:1.1.0.48 pkgsrc-2008Q2-base:1.1 cwrapper:1.1.0.46 pkgsrc-2008Q1:1.1.0.44 pkgsrc-2008Q1-base:1.1 pkgsrc-2007Q4:1.1.0.42 pkgsrc-2007Q4-base:1.1 pkgsrc-2007Q3:1.1.0.40 pkgsrc-2007Q3-base:1.1 pkgsrc-2007Q2:1.1.0.38 pkgsrc-2007Q2-base:1.1 pkgsrc-2007Q1:1.1.0.36 pkgsrc-2007Q1-base:1.1 pkgsrc-2006Q4:1.1.0.34 pkgsrc-2006Q4-base:1.1 pkgsrc-2006Q3:1.1.0.32 pkgsrc-2006Q3-base:1.1 pkgsrc-2006Q2:1.1.0.30 pkgsrc-2006Q2-base:1.1 pkgsrc-2006Q1:1.1.0.28 pkgsrc-2006Q1-base:1.1 pkgsrc-2005Q4:1.1.0.26 pkgsrc-2005Q4-base:1.1 pkgsrc-2005Q3:1.1.0.24 pkgsrc-2005Q3-base:1.1 pkgsrc-2005Q2:1.1.0.22 pkgsrc-2005Q2-base:1.1 pkgsrc-2005Q1:1.1.0.20 pkgsrc-2005Q1-base:1.1 pkgsrc-2004Q4:1.1.0.18 pkgsrc-2004Q4-base:1.1 pkgsrc-2004Q3:1.1.0.16 pkgsrc-2004Q3-base:1.1 pkgsrc-2004Q2:1.1.0.14 pkgsrc-2004Q2-base:1.1 pkgsrc-2004Q1:1.1.0.12 pkgsrc-2004Q1-base:1.1 pkgsrc-2003Q4:1.1.0.10 pkgsrc-2003Q4-base:1.1 netbsd-1-6-1:1.1.0.6 netbsd-1-6-1-base:1.1 netbsd-1-6:1.1.0.8 netbsd-1-6-RELEASE-base:1.1 pkgviews:1.1.0.4 pkgviews-base:1.1 buildlink2:1.1.0.2 buildlink2-base:1.1 netbsd-1-5-PATCH003:1.1 netbsd-1-5-PATCH001:1.1; locks; strict; comment @# @; 1.2 date 2026.11.20.15.57.10; author ktnb; state dead; branches; next 1.1; commitid YSELfO8NFxcTrd4H; 1.1 date 2001.03.25.23.47.11; author fredb; state Exp; branches; next ; desc @@ 1.2 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: patch-aa,v 1.1 2001/03/25 23:47:11 fredb Exp $ --- src/filehandling_functions.c.orig Tue Jun 6 13:48:58 2000 +++ src/filehandling_functions.c @@@@ -670,10 +670,14 @@@@ { char curdir[1024]; int i, infolen, wsklen; +#ifndef DFLT_INFOPATH int localdir = 0, globaldir = 0; /* flags, which say if the /usr/local/info * * and /usr/info were defined in $INFOPATH */ int sharedir = 0; /* the same for /usr/share/info */ +#endif char *lang = getenv ("LANG"); + char *infopath; + char *wsk; getcwd (curdir, 1024); @@@@ -681,29 +685,44 @@@@ infopathcount = 0; +#ifdef DFLT_INFOPATH + if (getenv ("INFOPATH") == NULL) + { + infopath = xmalloc (strlen (DFLT_INFOPATH) + 100); + strcpy (infopath, DFLT_INFOPATH); + } + else +#else if (getenv ("INFOPATH") != NULL) /* check paths in $INFOPATH variable */ +#endif { - char *infopath = xmalloc (strlen (getenv ("INFOPATH")) + 100); + infopath = xmalloc (strlen (getenv ("INFOPATH")) + 100); /* * +5 (well, +100) of overrun buffer, since the following while loop * can be coded simplier this way */ - char *wsk = infopath; strcpy (infopath, getenv ("INFOPATH")); +#ifdef DFLT_INFOPATH + } + { +#endif infolen = strlen (infopath); for (i = 0; i < infolen; i++) if (infopath[i] == ':') infopath[i] = 0; + wsk = infopath; while (wsk < infopath + infolen) { infopaths = xrealloc (infopaths, (infopathcount + 2) * sizeof (char *)); wsklen = strlen (wsk); +#ifndef DFLT_INFOPATH if (strncmp ("/usr/info", wsk, 9) == 0) globaldir = 1; if (strncmp ("/usr/local/info", wsk, 15) == 0) localdir = 1; if (strncmp ("/usr/share/info", wsk, 15) == 0) sharedir = 1; +#endif if (wsklen) { if (wsk[wsklen - 1] == '/') @@@@ -734,6 +753,7 @@@@ xfree (infopath); infopath = 0; } +#ifndef DFLT_INFOPATH if (lang) { infopaths = xrealloc (infopaths, sizeof (char *) * (infopathcount + 15)); @@@@ -799,6 +819,7 @@@@ infopathcount++; } } +#endif infopaths[infopathcount] = xmalloc (5); strcpy (infopaths[infopathcount], "."); /* for ./ */ infopathcount++; @ 1.1 log @By popular demand, permit a default info path to be compiled in, and pass in a default suitable for NetBSD. @ text @d1 1 a1 1 $NetBSD$ @