Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bad display dash in man command w/ LANG=en_US.UTF-8 [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
tld
Veteran
Veteran


Joined: 09 Dec 2003
Posts: 1816

PostPosted: Wed Jun 04, 2008 3:26 pm    Post subject: Bad display dash in man command w/ LANG=en_US.UTF-8 [SOLVED] Reply with quote

I really wasn't sure what forum to post this to, as it's an issue in any shell, not necessarily within X, but anyway.

I noticed that, on one (and only one) of my Gentoo machines, the hyphenated dash characters, that is the one used when listing command line options in the man page, is displaying incorrectly. Here's a screen shot:

http://digitalaudiorock.com/temp.jpg

Notice how all the dashes are displaying. It's also making it impossible to search for the corresponding text in those man pages. For example, if I enter:

Code:
man ssh


...and within the display enter:

Code:
/-p


...to search for the -p option, it doesn't find it.

I finally discovered that the problem machine was the only one that actually had the LANG environment variable getting set from a file in /etc/env.d. If I unset LANG or set it to en_US, the man pages display fine.

My NROFF setting in man.conf (without the -Tascii option) appears to be correct as per this:

http://www.gentoo.org/doc/en/utf-8.xml

Any ideas? Thanks.

Tom


Last edited by tld on Thu Jun 05, 2008 1:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
tld
Veteran
Veteran


Joined: 09 Dec 2003
Posts: 1816

PostPosted: Wed Jun 04, 2008 3:44 pm    Post subject: Reply with quote

I've also noticed that for some reason, LC_ALL is not getting set:

Code:
locale
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
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=


The entries I have in /etc/local.gen are:

Code:
en_US ISO-8859-1
en_US.UTF-8 UTF-8


Tom
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Thu Jun 05, 2008 1:05 am    Post subject: Reply with quote

Make sure that you are using an unicode aware font. You will get this behavior otherwise with your LANG set to utf8.
Back to top
View user's profile Send private message
tld
Veteran
Veteran


Joined: 09 Dec 2003
Posts: 1816

PostPosted: Thu Jun 05, 2008 1:03 pm    Post subject: Reply with quote

Thanks for the suggestion...it got me looking into it and I found that apparently aterm doesn't support unicode at all! Note this:

http://wiki.afterstep.org/index.php?title=Rxvt-Unicode_Configuration_Tutorial

I had no idea. I guess I'll use en_US until I get around to switching to a different terminal program.

Tom
Back to top
View user's profile Send private message
tld
Veteran
Veteran


Joined: 09 Dec 2003
Posts: 1816

PostPosted: Thu Jun 05, 2008 1:14 pm    Post subject: Reply with quote

Marked this as solved. Note that the reason it didn't cause a problem on my other machines is that I didn't have the LANG on them set to en_US.UTF-8.

What are others using for a terminal program that supports unicode (and transparency...I gotta have that :D). I was thinking of trying rxvt-unicode.

Tom
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Thu Jun 05, 2008 6:24 pm    Post subject: Reply with quote

I just use xterm, well actually, uxterm. It doesn't support transparency though.
Back to top
View user's profile Send private message
tld
Veteran
Veteran


Joined: 09 Dec 2003
Posts: 1816

PostPosted: Sat Jun 07, 2008 3:57 pm    Post subject: Reply with quote

I may end up abandoning transparency and going to uxterm myself.

I was trying out rxvt-unicode (urxvt) and it seemed great...I was having a little trouble finding font settings I liked but other than that it seemed really good.

Then I discovered that it apparently handles mouse copy/paste a bit differently than all the other terminals I've tried. Although highlighting and pasting works in urxvt, it refused to work with wmcliphist...I simply have to have by clipboard history...huge bummer. wmcliphist works fine in uxterm though.

Tom
Back to top
View user's profile Send private message
tld
Veteran
Veteran


Joined: 09 Dec 2003
Posts: 1816

PostPosted: Sat Jun 07, 2008 4:26 pm    Post subject: Reply with quote

Good Lord...what's with xterm's awful scrollbar behavior where you can only drag the scrollbar with the middle mouse? That's simply horrible.

For now I'm just sticking with aterm and en_US as my language...seriously disappointing options out there.

Tom
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum