On Mon, Dec 01, 2003 at 08:13:11PM -0600, Joe Knize wrote:
> Does anyone know why my man and perldoc pages are missing their single
> quotes? For example, man CGI yields:
On my Fedora system, the single quotes show up but appear stylized:
$ echo $LANG
en_US.UTF-8
$ man CGI 2>/dev/null | sed -n '/Simple Example/{p;q}' | od -c
0000000 s
0000020 t a r t _ h t m l ( 342 200 231 A S
0000040 i m p l e E x a m p l e 342 200 231
0000060 ) , \n
0000063
Note that the single quote is actually a multi-byte character. nroff is
formatting quotes based on what the shell reports the locale to be.
Changing the locale to C:
$ LANG=C man CGI 2>/dev/null | sed -n '/Simple Example/{p;q}' | od -c
0000000 s
0000020 t a r t _ h t m l ( ' A S i m
0000040 p l e E x a m p l e ' ) , \n
0000057
> I couldn't find anything in /etc/man.config that seemed applicable,
> either. After making a copy and gunzipping
> /usr/share/man/man3/CGI.3pm.gz, then viewing with less, the single quotes
> are there. But then viewing man ./CGI.3pm, the quotes are gone again.
> Anyone have any suggestions?
My guess is that your terminal is set to Latin-1 and your system assumes
that it is UTF-8. You could fix this, alias man="LANG=C man", or add
"-T ascii" to the nroff command in /etc/man.config .
--
Andrew Gaul
http://gaul.org/
_______________________________________________
Siglinux mailing list
[EMAIL PROTECTED]
http://machito.utacm.org/mailman/listinfo/siglinux