View previous topic :: View next topic |
Author |
Message |
tld Veteran
Joined: 09 Dec 2003 Posts: 1816
|
Posted: Wed Jun 04, 2008 3:26 pm Post subject: Bad display dash in man command w/ LANG=en_US.UTF-8 [SOLVED] |
|
|
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:
...and within the display enter:
...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 |
|
|
tld Veteran
Joined: 09 Dec 2003 Posts: 1816
|
Posted: Wed Jun 04, 2008 3:44 pm Post subject: |
|
|
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 |
|
|
yabbadabbadont Advocate
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Thu Jun 05, 2008 1:05 am Post subject: |
|
|
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 |
|
|
tld Veteran
Joined: 09 Dec 2003 Posts: 1816
|
|
Back to top |
|
|
tld Veteran
Joined: 09 Dec 2003 Posts: 1816
|
Posted: Thu Jun 05, 2008 1:14 pm Post subject: |
|
|
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 ). I was thinking of trying rxvt-unicode.
Tom |
|
Back to top |
|
|
yabbadabbadont Advocate
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Thu Jun 05, 2008 6:24 pm Post subject: |
|
|
I just use xterm, well actually, uxterm. It doesn't support transparency though. |
|
Back to top |
|
|
tld Veteran
Joined: 09 Dec 2003 Posts: 1816
|
Posted: Sat Jun 07, 2008 3:57 pm Post subject: |
|
|
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 |
|
|
tld Veteran
Joined: 09 Dec 2003 Posts: 1816
|
Posted: Sat Jun 07, 2008 4:26 pm Post subject: |
|
|
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 |
|
|
|