Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#2404 - [PATCH]: Fix formatting of man pages

Attached to Project: Arch Linux
Opened by Oliver Burnett-Hall (olly-bh) - Friday, 18 March 2005, 11:02 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To No-one
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Man pages, when displayed in Eterm, are being displayed with far too much bold in them.

I've tried several other terminals (console, xterm, aterm, rxvt) and none of them show the same behaviour, but the base problem is that the man pages are being incorrectly formatted by troff.

This can be seen by piping the output of man to 'colcrt -'. This should output just the text from the man page, nothing else, but it has some fragments of escape codes left in it:

----------------------------------------
% man man | colcrt - | sed -n '5,17p' ~
1mNAME0m
man - format and display the on-line manual pages

1mSYNOPSIS0m
1mman 22m[1m-acdfFhkKtwW22m] [1m--path22m] [1m-m 4m22msystem24m] [1m-p 4m22mstring24m] [1m-C 4m22mconfig file24m] [1m-M 4m22m


1mDESCRIPTION0m
1mman 22mformats and displays the on-line manual pages. If you specify 4msection24m, 1mman 22monly looks in that section of
ual page, which is typically the name of a command, function, or file. However, if 4mname24m contains a slash (1m/22m) then
that you can do 1mman ./foo.5 22mor even 1mman /cd/foo/bar.1.gz22m.

See below for a description of where 1mman 22mlooks for the manual page files.
----------------------------------------

This is arising due the version of troff being used. The fix is described in /usr/share/misc/man.conf - troff needs to be passed the -c flag.

I've attached a trivial patch for /usr/share/misc/man.conf. When this is applied my man pages look right again:

----------------------------------------
% man man | colcrt - | sed -n '5,17p' ~
NAME
man - format and display the on-line manual pages

SYNOPSIS
man [-acdfFhkKtwW] [--path] [-m system] [-p string] [-C config file] [-M pathlist] [-P pager] [-S section list] [section] nam


DESCRIPTION
man formats and displays the on-line manual pages. If you specify section, man only looks in that section of the manual. n
ual page, which is typically the name of a command, function, or file. However, if name contains a slash (/) then man interp
that you can do man ./foo.5 or even man /cd/foo/bar.1.gz.

See below for a description of where man looks for the manual page files.
----------------------------------------

- olly
This task depends upon

Closed by  Judd Vinet (judd)
Friday, 18 March 2005, 21:48 GMT
Reason for closing:  Implemented

Loading...