LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-30-2009, 03:24 PM   #1
ptrivino
Member
 
Registered: May 2008
Location: San Diego CA
Distribution: CentOS
Posts: 40

Rep: Reputation: 5
man output ticks changed to odd chars


I think in a previous life I've fixed this but I cannot recall how.

When displaying man pages (mostly or entirely), the single-quote characters see to get changed to ==>’<== or just ==>â€<== on the screen. In fact, the "TM" character is blank on screen, it showed up as "TM" when I pasted it here.

Thanks for helping.
 
Old 04-30-2009, 05:33 PM   #2
ptrivino
Member
 
Registered: May 2008
Location: San Diego CA
Distribution: CentOS
Posts: 40

Original Poster
Rep: Reputation: 5
Cool Found a way

Quote:
Originally Posted by ptrivino View Post
I think in a previous life I've fixed this but I cannot recall how.

When displaying man pages (mostly or entirely), the single-quote characters see to get changed to ==>’<== or just ==>â€<== on the screen. In fact, the "TM" character is blank on screen, it showed up as "TM" when I pasted it here.

Thanks for helping.
Rather a Linux expert found a way (probably 2 months sooner than I would); BTW these are RHE v4 and V5 systems on which the problem occurred.

Near the very end of /usr/bin/nroff is

/usr/bin/iconv -f ${charset_in} -t utf-8 ${TMPFILE} | \
/usr/bin/groff -mtty-char -Tutf8 $opts 2>/dev/null | \
/usr/bin/iconv -f utf-8 -t ${charset_out}//translit

which my resident expert changed to

#/usr/bin/iconv -f ${charset_in} -t utf-8 ${TMPFILE} |
/usr/bin/groff -mtty-char -Tascii $opts 2>/dev/null < ${TMPFILE}
# /usr/bin/iconv -f utf-8 -t ${charset_out}//translit

(the TMPFILE is created earlier in nroff)

I am of course, as a non-expert (yet ;^) not recommending this but posting it for everyone's "benefit." Closed course, professional driver, do not attempt, yada yada yada.

Thanks for reading!
 
Old 04-30-2009, 05:46 PM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
You can just change /etc/man.config
Code:
#NROFF          /usr/bin/nroff -c -Tascii --legacy NROFF_OLD_CHARSET -mandoc 2>/dev/null
NROFF           /usr/bin/groff -c -Tascii -mandoc 2>/dev/null
 
Old 04-30-2009, 06:01 PM   #4
ptrivino
Member
 
Registered: May 2008
Location: San Diego CA
Distribution: CentOS
Posts: 40

Original Poster
Rep: Reputation: 5
Wink RHE v5 yes, v4 not so much

Quote:
Originally Posted by billymayday View Post
You can just change /etc/man.config
Code:
#NROFF          /usr/bin/nroff -c -Tascii --legacy NROFF_OLD_CHARSET -mandoc 2>/dev/null
NROFF           /usr/bin/groff -c -Tascii -mandoc 2>/dev/null
Thanks mucho - that works a treat on RHE V5. On V4, however, I needed BOTH the fix to nroff *I* posted, as well as THIS change to /etc/man.config:

#NROFF nroff --legacy NROFF_OLD_CHARSET -man
NROFF groff -Tascii -man

Thank you again, Billy.
 
Old 06-10-2009, 01:22 AM   #5
udaykishore
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
Question What is the solution for the same on CentOS 5.2?

I am running CentOS 5.2 where I see the same problem in the man pages, where a single-quote appears as character 'a' with a mark above it. I tried the following solutions earlier given by experts on this thread.

(a) In /etc/man.config

#NROFF /usr/bin/nroff -c -Tascii --legacy NROFF_OLD_CHARSET -mandoc 2>/dev/null
NROFF /usr/bin/groff -c -Tascii -mandoc 2>/dev/null

(b) In /usr/bin/nroff

#/usr/bin/iconv -f ${charset_in} -t utf-8 ${TMPFILE} |
/usr/bin/groff -mtty-char -Tascii $opts 2>/dev/null < ${TMPFILE}
# /usr/bin/iconv -f utf-8 -t ${charset_out}//translit

(c) In /etc/man.config

#NROFF nroff --legacy NROFF_OLD_CHARSET -man
NROFF groff -Tascii -man

And also (a) + (b) together.

None of these seem to work. Can someone suggest a solution that works on CentOS 5.2?
 
Old 06-10-2009, 01:41 AM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
My solution worked for me in CentOS 5.2

Is groff installed?
 
  


Reply

Tags
characters, man, text



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 8 odd output mickeyboa Fedora 1 02-08-2008 11:52 PM
Anaconda shows odd chars and hangs during install royceH Fedora - Installation 1 11-22-2006 01:26 PM
IE 6 is the odd man out? ta0kira Programming 12 02-25-2006 09:55 PM
Odd Chars w/ make/C++ compile error on Fedora w/bash shell zemux Linux - General 2 01-22-2006 01:48 AM
man pages and 'high bit' foreign chars leesweet Linux - Software 4 09-29-2003 11:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:11 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration