[PATCH libXext] groff: remove tty backspace encoding in text files

James Cloos cloos at jhcloos.com
Mon Jun 21 13:51:51 PDT 2010

>>>>> "GN" == Gaetan Nadon <memsize at videotron.ca> writes:

GN> However it contains backspace sequence for bold, underline or
GN> overstrike charaters. These show up as ^H in vi or as graphic
GN> characters in other editors.

You may want to add that the backspaces sequences occur because
GROFF_NO_SGR is set.

As for the backspaces which remain even with the -bcou options to
grotty(1), those are due to the .sM macro in macros.t which tries
to add start and end markers in the margin.  The text versions of
various specs which have been posted here have managed to use UCS
chars for those, which suggests that somebody has a working macro
for outputting those in UTF-8 plain text.  We should find and use
that instead of stripping the backspaces added by .sM and .eM.

James Cloos <cloos at jhcloos.com>         OpenPGP: 1024D/ED7DAEA6

More information about the xorg-devel mailing list