Update of bug #68972 (group groff):
Status: In Progress => Fixed
Open/Closed: Open => Closed
Planned Release: None => 1.26.0
_______________________________________________________
Follow-up Comment #2:
commit d85c874d02c0c7a2ddf956dd81d9c46b263044ac
Author: G. Branden Robinson <[email protected]>
Date: Fri Nov 27 03:17:19 2026 -0600
[groff]: Regression-test Savannah #68972.
commit 81a1ea23c3b5e63564bbadbbd87a109a8159bcd2
Author: G. Branden Robinson <[email protected]>
Date: Fri Nov 27 02:45:15 2026 -0600
[troff]: Fix Savannah #68972.
* src/roff/troff/env.cpp (read_hyphenation_exception_word): Fix
assertion failure on input like `.hw -`. Replace assert(3) call with
warning in category "char" and return `false`.
Fixes <https://savannah.gnu.org/bugs/?68972>. Problem introduced by
me in commit 9f82762791, 10 April. I said then: "Replace a test of
the index into the hyphenation exception word being greater than zero
with an assert(3)ion of the same inside the branch, as it's now an
invariant that a valid hyphenation exception word contains a nonzero
count of characters bearing hyphenation codes." That invariant still
holds, but I didn't think of the case where some wit would supply a
hyphenation exception word consisting _only_ of hyphens, which don't
have a hyphenation code but which we must accept in the input for this
function to do its job.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?68972>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
