FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > General Site Owner Support (All may read/respond) > General Computing
User Name
Password  Lost PW

 
Thread Tools Display Modes
Old 12-19-2002, 02:14 PM   Postid: 78738
Jeff
Site Owner
 
Jeff's Avatar

Forum Notability:
824 pts: Dignified Competence!
[Post Feedback]
 
Join Date: Jun 2000
Location: Great Lakes
Posts: 4,039
RedHat 8 - strange characters in man pages?

I installed RedHat 8.0 over Thanksgiving on an old Pentium Pro computer to test with. Everything went ok during the install - no errors and everything else seems to work well, seti is running, apache is running, up2date ran ok to update everything to current. Today however I wanted to view some man pages, and noticed that they seem "corrupted" or there is some other character issue:

http://marinearchitecture.com/temp/man.gif

http://marinearchitecture.com/temp/tar.gif

Any idea what the cause of this might be or the easy solution - does this indicate some overall corruption during the install, or might the man pages be isolated or is it something really simple?
Jeff is offline  
Old 12-19-2002, 02:19 PM   Postid: 78739
Jeff
Site Owner
 
Jeff's Avatar

Forum Notability:
824 pts: Dignified Competence!
[Post Feedback]
 
Join Date: Jun 2000
Location: Great Lakes
Posts: 4,039
OK, the "weird" man pages are only if I connect to the box via ssh but they look fine if I connect a keyboard & monitor and login locally. The strange thing is that everything else looks and works fine via ssh, top, directory listings, etc; only the man pages are "corrupt" when viewed via ssh. Very strange...
Jeff is offline  
Old 12-19-2002, 02:37 PM   Postid: 78741
 Arthur
Developer
 
Arthur's Avatar
 
Join Date: Nov 2000
Location: The Netherlands
Posts: 2,098
This has to do with font encoding, the man pages in RedHat 8 are in UTF-8 format (Unicode).

The following should solve your problem;
In /etc/sysconfig/i18n change LANG="en_US.UTF-8" to LANG="en_US"

If that doesn't do the trick you can try changing the line NROFF /usr/bin/groff -c -mandoc in /etc/man.config to NROFF /usr/bin/groff -Tlatin1 -mandoc.

Arthur
Arthur is offline  
Old 12-19-2002, 02:50 PM   Postid: 78744
Jeff
Site Owner
 
Jeff's Avatar

Forum Notability:
824 pts: Dignified Competence!
[Post Feedback]
 
Join Date: Jun 2000
Location: Great Lakes
Posts: 4,039
Thank you thank you!

Quote:
If that doesn't do the trick you can try changing the line NROFF /usr/bin/groff -c -mandoc in /etc/man.config to NROFF /usr/bin/groff -Tlatin1 - mandoc.
That did it. Much appreciated.

Mine was actually NROFF /usr/bin/nroff -c -mandoc to start.

--and some people say the man pages aren't written in English
Jeff is offline  
Old 02-19-2003, 06:31 PM   Postid: 82642
Rez
Visitor

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Feb 2003
Posts: 1
Thank you.

Thanks, that worked for me too. Later.
Rez is offline  
Old 02-19-2003, 07:27 PM   Postid: 82644
kitchin
Site Owner
 
kitchin's Avatar

Forum Notability:
1115 pts: A True Crowd-pleaser!
[Post Feedback]
 
Join Date: Jan 2001
Location: Virginia
Posts: 2,883
vintage/psuedo code

In case you just want to remove the bad characters from a man file:

Say you telnet to FQ and type
man tar > tar.txt
where tar is any command you want info on. Then you download tar.txt to your friendly Win98 computer. Well, it will be really hard to read because it is full of ASCII character #8 (backspace), followed by an underscore. That's for underlining.

This is my Delphi/Pascal code to fix it, which you can adapt to your favorite language:

Code:
     if not eof(infile) then begin
         read(infile, prevch);

         while not eof (infile) do begin
           read (infile, ch);
           if (ch<>#8) and (prevch<>#8) then begin
             write(outfile, prevch);
           end;
           prevch:=ch;
         end;

         write (outfile, prevch);
     end;
I will even send you the working exe file if you want it.

Nowadays, I find Googling on "man tar" is almost as good, but you may not get it for the exact version of Unix you want.
kitchin is offline  
Old 04-16-2003, 02:34 PM   Postid: 85990
ricke999
Visitor

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Apr 2003
Posts: 1
Worked for me too, thanks!
ricke999 is offline  


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 07:39 PM.


Running on vBulletin®
Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2010 FutureQuest, Inc.
FutureQuest, Inc.