URL: <https://savannah.gnu.org/bugs/?65763>
Summary: Do actual string comparisons in macro packages Group: GNU roff Submitter: barx Submitted: Sun 19 May 2024 11:27:44 PM CDT Category: Macro package - others/general Severity: 3 - Normal Item Group: Warning/Suspicious behaviour Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Planned Release: None _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Sun 19 May 2024 11:27:44 PM CDT By: Dave <barx> Bug #64155 fixed fallbacks.tmac and troffrc-end to make tests that were intended only to compare strings do so without formatting the comparands, so that such comparisons work regardless of whether the current font contains all the characters in the strings. It turns out most of the other macro packages need this refinement as well. $ groff -ms -fZD < /dev/null troff:tmac/s.tmac:2203: warning: character 'p' not defined troff:tmac/s.tmac:2203: warning: character 's' not defined troff:tmac/s.tmac:2203: warning: character 'h' not defined troff:tmac/s.tmac:2203: warning: character 't' not defined troff:tmac/s.tmac:2203: warning: character 'm' not defined troff:tmac/s.tmac:2203: warning: character 'l' not defined $ groff -mm -fZD < /dev/null troff:contrib/mm/m.tmac:1294: warning: character 'p' not defined troff:contrib/mm/m.tmac:1294: warning: character 's' not defined troff:contrib/mm/m.tmac:1294: warning: character 'h' not defined troff:contrib/mm/m.tmac:1294: warning: character 't' not defined troff:contrib/mm/m.tmac:1294: warning: character 'm' not defined troff:contrib/mm/m.tmac:1294: warning: character 'l' not defined $ groff -me -fZD < /dev/null troff:tmac/e.tmac:115: warning: character 'p' not defined troff:tmac/e.tmac:115: warning: character 's' not defined troff:tmac/e.tmac:115: warning: character 'h' not defined troff:tmac/e.tmac:115: warning: character 't' not defined troff:tmac/e.tmac:115: warning: character 'm' not defined troff:tmac/e.tmac:115: warning: character 'l' not defined (-fZD is a useful test, as this font ships with groff, but a likelier real-world scenario is users formatting documents containing only CJK characters.) -man, -mdoc, and -mom exhibit similar behavior. The first two of those operate in a specialized domain where the problem may not be applicable, and -mom has her own set of rules that may preclude specifying -f on the command line. Peter is cc:ed so he can address this. I didn't test all the auxiliary packages, but, for example, pdf.tmac and ps.tmac are clean while tty.tmac is not. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?65763> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/