LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 12-19-2006, 12:28 PM   #1
rsashok
Member
 
Registered: Nov 2006
Location: USA, CA
Distribution: RedHat, Debian
Posts: 202

Rep: Reputation: 31
misaligned manual pages


when I type 'man any_topic> I get misaligned pages, plus some escape chars, such as 7m<80><99>word<7m<80><90>, are not interpreted by the terminal. I run RedHat(enterprise edition 4) with KDE's Konsole. The /etc/man.config file looks good to me (but what do I know?!), and I tried different setting for KDE Konsole to no avail. Plus every line in man displayed with a number, which is not normal plain 'man'. I guess there is some setting somewhere which twists the output. I'd be very thankful to anybody who has ideas.
 
Old 12-20-2006, 08:52 AM   #2
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
What locales are you using? They might do odd stuff for your console..and which shell are you running, bash or sh or ksh or what?
 
Old 12-20-2006, 10:31 AM   #3
rsashok
Member
 
Registered: Nov 2006
Location: USA, CA
Distribution: RedHat, Debian
Posts: 202

Original Poster
Rep: Reputation: 31
I am using BASH, and output of the 'locale' is:

LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
 
Old 12-20-2006, 11:00 PM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,695

Rep: Reputation: 286Reputation: 286Reputation: 286
Quote:
7m<80><99>word<7m<80><90>,
This is the kind of output you would get if you used man with the -t option (or if a setting somewhere in the MAN environment variables is to use that option).

Try 'man -D <some man page>' to see what you get.
 
Old 12-21-2006, 01:02 PM   #5
rsashok
Member
 
Registered: Nov 2006
Location: USA, CA
Distribution: RedHat, Debian
Posts: 202

Original Poster
Rep: Reputation: 31
I figured out my problem. The pager used for 'man' is 'less'. I looked at my environment variables and discovered that I have settings for LESSCHARSET='latin1', LESS='-i -N -w -z-4 -g -e -M -X -F -R' coming from my .bashrc file, which I acquired from the WEB while ago without really looking, tweaking and understanding portions which I don't use.

I commented out LESSCHARSET, and LESS and it solved the problem. Little things create huge problems!
(some say if Napoleon didn't have a cold he might have won Waterloo)

Thanks for the tips. Looking at the output of 'man -d some_command' gave me the idea.
 
  


Reply

Tags
man, page


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
no manual pages sycamorex Debian 2 09-12-2006 05:04 AM
unable use curses manual pages... alokdotnet Programming 2 08-14-2006 10:13 AM
author of any manual pages linux bhupee Linux - Newbie 1 07-10-2004 08:06 AM
broken manual pages threadhead Linux - Software 1 05-07-2003 04:09 PM
manual pages vcheah Linux - General 9 12-06-2001 09:42 PM


All times are GMT -5. The time now is 02:34 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration