LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 04-30-2009, 04:24 PM   #1
ptrivino
LQ Newbie
 
Registered: May 2008
Location: San Diego CA
Distribution: RHE, Fedora, Gentoo
Posts: 7
Thanked: 0
man output ticks changed to odd chars


[Log in to get rid of this advertisement]
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.
ptrivino is offline  
Tag This Post , ,
Reply With Quote
Old 04-30-2009, 06:33 PM   #2
ptrivino
LQ Newbie
 
Registered: May 2008
Location: San Diego CA
Distribution: RHE, Fedora, Gentoo
Posts: 7
Thanked: 0

Original Poster
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!
ptrivino is offline     Reply With Quote
Old 04-30-2009, 06:46 PM   #3
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Thanked: 126
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
billymayday is offline     Reply With Quote
Old 04-30-2009, 07:01 PM   #4
ptrivino
LQ Newbie
 
Registered: May 2008
Location: San Diego CA
Distribution: RHE, Fedora, Gentoo
Posts: 7
Thanked: 0

Original Poster
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.
ptrivino is offline     Reply With Quote
Old 06-10-2009, 02:22 AM   #5
udaykishore
LQ Newbie
 
Registered: Jun 2009
Posts: 1
Thanked: 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?
udaykishore is offline     Reply With Quote
Old 06-10-2009, 02:41 AM   #6
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Thanked: 126
My solution worked for me in CentOS 5.2

Is groff installed?
billymayday is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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-09-2008 12:52 AM
Anaconda shows odd chars and hangs during install royceH Fedora - Installation 1 11-22-2006 02:26 PM
IE 6 is the odd man out? ta0kira Programming 12 02-25-2006 10:55 PM
Odd Chars w/ make/C++ compile error on Fedora w/bash shell zemux Linux - General 2 01-22-2006 02:48 AM
man pages and 'high bit' foreign chars leesweet Linux - Software 4 09-30-2003 12:21 AM


All times are GMT -5. The time now is 03:41 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration