Control: reassign -1 groff On Tue, Aug 14, 2018 at 04:05:36AM +0000, Bjarni Ingi Gislason wrote: > .pl 30v > .TH testman 1 2018-MM-DD > .SH NAME > testman \- test some macros > .LP > Sævör grét áðan því úlpan var ónýt. > .tm Sævör grét áðan því úlpan var ónýt. > > Output from "man -d -l <file> with > > MAN_KEEP_STDERR=yes > MANPATH=/home/bg/.local/share/man:/usr/local/share/man:/usr/share/man > MANOPT=--encoding=latin1 --warnings=w --no-justification --no-hyphenation > MANWIDTH=80 > > is [...] > S\[u00E6]v\[u00F6]r gr\[u00E9]t \[u00E1]\[u00F0]an \[u00FE]v\[u00ED] > \[u00FA]lpan var \[u00F3]n\[u00FD]t.
This is because man runs the input file through preconv(1), and then .tm reads its argument in copy mode. Short of skipping preconv entirely, which isn't a viable option, I don't think man can do much about this. Either preconv needs to understand enough about the input to avoid encoding the argument to .tm (although I wonder what this would do if the input text were in some more exotic encoding), or .tm needs to evaluate \[...] escapes, or we need to accept that this debugging command will produce slightly strange output. Reassigning to groff. -- Colin Watson [cjwat...@debian.org]