Update of bug #68600 (group groff):
Status: In Progress => Fixed
Open/Closed: Open => Closed
Planned Release: None => 1.26.0
_______________________________________________________
Follow-up Comment #4:
commit 6fcc1f9ce7cec551b8d338ad074c4a487d0bd81a
Author: G. Branden Robinson <[email protected]>
Date: Thu Nov 12 06:28:54 2026 -0600
[libgroff,troff]: Fix Savannah #68600.
Make troff report macro file search path in `--version` output.
* src/include/searchpath.h (class search_path): Declare new member
function `contents()`, which, like the same-named member functions of
groff's `string` and `symbol` classes, returns a pointer to `const
char`.
* src/libs/libgroff/searchpath.cpp (search_path::contents): Return the
contents of `dirs` as-is (but hardened to `const`). A refactoring of
this class might store directory names as elements of a list (an
`std::vector`?) and compute the path element separator. On the other
hand, no one seems for several years to have bothered building groff
on a non-POSIX system.
* src/roff/troff/input.cpp (main): Declare new Boolean variable
`want_version_report`, defaulting `false`. When processing `-v`
command-line option, simply set this flag to `true` and stop printing
anything or exiting early. We need to process the remainder of the
command line to determine what the macro file search path is; `-M`
options might follow `-v`. After command-line processing is complete,
check the flag variable, and if it is true, report version and macro
path search information, and exit(3) successfully.
Fixes <https://savannah.gnu.org/bugs/?68600>.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?68600>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
