n-t-roff / heirloom-doctools

The Heirloom Documentation Tools: troff, nroff, and related utilities
http://n-t-roff.github.io/heirloom/doctools.html
Other
127 stars 23 forks source link

-mg should set .U register #98

Open subrook opened 3 years ago

subrook commented 3 years ago

groff has a "safer mode," which disables its .open, .opena, .pso, .sy, and .pi requests, and an "unsafe mode," which enables them. The .U register is 0 in safer mode and 1 in unsafe mode.

In Heirloom troff, those requests are always enabled, so it is essentially always in the equivalent of groff's unsafe mode. Therefore, for compatibility with groff code that checks the .U register, the g tmac file should set it to 1.