I've attached a patch with my suggested changes; these changes make
the "man xterm | iconv" test work perfectly for me. Hardcoding the
"sed" binary name seems not to fit with the coding standards used
here, but that can always be changed if you decide you like the
suggestion.
~Matt
--- src/man.c 2008-11-11 10:13:04.828539264 -0500
+++ src/man.c.sed 2008-11-11 10:13:14.433566725 -0500
@@ -1529,7 +1529,11 @@
save_cat = 0;
setenv ("GROFF_NO_SGR", "1", 1);
pipeline_command_args (p, COL,
- "-b", "-p", "-x", NULL);
+ "-p", "-x", NULL);
+ pipeline_command_args (p, "sed",
+ "-e", "s/^\\x08*//",
+ "-e", "s/.\\x08//g",
+ NULL);
}
#ifndef GNU_NROFF
/* tbl needs col */