Link to home
Start Free TrialLog in
Avatar of nk2003
nk2003

asked on

"man" problem

I have a problem with "man"
when I want see manual of a command, it didn't show normally
inside the manual, there were strange character (like small rectangle)
i think this is about font problem
but I don't know what should I do

can anybody help me?
thanks
Avatar of shivsa
shivsa
Flag of United States of America image

u have to fix fonts.

this is for RH7.
-------

> Using a combination of vi/emacs and man XF86Config:

> 1) Discover which /etc/X11/XF86Config??? is actually being run
>  - (under RedHat 7.1 it's /etc/X11/XF86Config-4)
>  - capture the output of startx using startx >& output.log
> and look for where it reports which one it is using

> 2) Find the fonts section

> 3) Fix it

> You'll want to look for the "how to specify font paths" section in the
> man pages. Essentially it's:

> Section "Files"
>         FontPath "tcp/linux:7100"  
>       FontPath   "/usr/X11R6/lib/X11/fonts/local/"
>       FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
> EndSection

> The first entry says speak to an XFS using tcp and port 7100.
> The latter two represent actual physical font paths. I think the Unix Font Server
> locally is "unix/:0" but check that in the man pages. Fonts generally
> live in similar directries to the above. You could do a "locate
> fonts.dir" because each font directory must contain that file if you
> can't find them.

> Of course, if you literally can't find them then that may be your
> problem. Reinstall them using rpm, tar xzvf, dpkg or whatever.
if u can resolve with above. then it might be your locale problem.

If you see three characters instead of one in your terminal, it's that your terminal is not UTF-8 aware and man
thinks it is. So, either use a UTF-8 aware terminal (XFree86, xterm) or don't tell man your terminal is UTF-8 (probably a locale issue).

LC_CTYPE=C man tty
to see if that solves the problem.

or
export LANG=C

Put it at the bottom of:
/etc/bashrc

and will be set when you login.
Avatar of nk2003
nk2003

ASKER

thanks, it works
I type export LANG=C

can you tell me what it means?  expecialy "C" character
ASKER CERTIFIED SOLUTION
Avatar of shivsa
shivsa
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial