Update of bug #66040 (group groff):

                  Status:                   Fixed => None
             Open/Closed:                  Closed => Open
         Planned Release:                  1.24.0 => None

    _______________________________________________________

Follow-up Comment #19:

Huh.  It seems this fix has been regressed at some point in the interim.

Using the hcode.groff input file from the commit log:

* groff 1.22.4 and 1.23 produce diagnostics for lines 2, 3, 5, 6, 7, 12, and
14.  This is expected; the extra diagnostics for lines 1 and 4 were
respectively added in the (post-1.23) commits cited in comment #2 and comment
#17.
* git HEAD produces diagnostics for lines 1, 2, 3, 4, 5, and 7.  So 1 and 4
were added--but 6, 12, and 14 were subtracted.

First thought: the subtractions may be the result of the since-committed fix
for bug #66112.  Since tmac/en.tmac now sets up hcode values for \['A], \['o],
and \['U], perhaps the need for those error messages has disappeared.

Nope.  Using a character _not_ defined in en.tmac produces the same results.

$ echo '.hcode \[~o] \[~o]' | groff
troff:<standard input>:1: error: hyphenation code must be ordinary character
$ echo '.hcode \[~o] \[~o]' | groff-latest -ww
$ groff-latest --version | head -1
GNU groff version 1.23.0.2755-d1992-dirty

Could this mean that, instead of the diagnostic being regressed, that bug
#42870 was accidentally fixed sometime?

Sadly, also nope.

$ cat 66040.test
.ll 1n
.hcode \[~o] \[~o]
mythology
myth\[~o]l\[~o]gy
.hcode \[~o] o
mythology
myth\[~o]l\[~o]gy
$ groff-latest -a -Wbreak 66040.test
<beginning of page>
mythol<hy>
ogy
myth<~o>l<~o>gy
mythol<hy>
ogy
myth<~o>l<hy>
<~o>gy

So ".hcode \[~o] \[~o]" is still invalid input, but no longer (again) produces
a diagnostic.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?66040>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to