Re: manpage character cleanup for UTF-8 compatibility
On Thu, Mar 27, 2003 at 02:27:44PM -0500, Decklin Foster wrote:
> Vineet Kumar writes:
> > The correct groff escape to use in things like command-line options is
> > '\-', which renders as the 0x2D minus sign in both UTF-8 and ASCII
> > locales.
>
> Does this affect the the use of \- in man page headings to facilitate
> parsing by mandb? For example:
>
> .SH "NAME"
> frob\-foo \- frobnicate a foo
>
> It looks like that shouldn't be ambiguous (you can split on " \- "), but
> I'm not sure that's what actually happens.
That's fine; internally, mandb converts "\-" into "-" solely for the
purpose of parsing headers, and then splits on " - ". (So actually " - "
works on Debian, but " \- " is required for portability as well as to
look better in the way this thread describes.)
--
Colin Watson [cjwatson@flatline.org.uk]
Reply to: