View previous topic :: View next topic |
Author |
Message |
user317 Guru
Joined: 26 Jan 2003 Posts: 314
|
Posted: Thu Apr 01, 2010 8:15 pm Post subject: [solved] screwed up locale for user but not for root |
|
|
i have something funky going on, as root when i look at a manpage everything looks fine, but if i do it as a user, i get lots of boxes for unprintable characters
Code: | $ locale
LANG=POSIX
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE=C
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
|
and my root's locale:
Code: | # locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL= |
if i set my users locale to match root's i still see the boxes. any ideas?
edit:
my regular user account has Code: | PAGER=/usr/bin/less | but root is Code: | PAGER=/usr/bin/less -isR |
Last edited by user317 on Tue Apr 20, 2010 4:11 pm; edited 1 time in total |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Thu Apr 01, 2010 9:11 pm Post subject: |
|
|
Please post the output of these: Code: | cat /etc/env.d/02locale
egrep 'LC|LANG' ~/.bashrc |
|
|
Back to top |
|
|
user317 Guru
Joined: 26 Jan 2003 Posts: 314
|
Posted: Thu Apr 01, 2010 9:23 pm Post subject: |
|
|
Quote: | What is the outpot of these:
Code: |
cat /etc/env.d/02locale
egrep 'LC|LANG' ~/.bashrc |
|
Code: |
$ egrep 'LC|LANG' ~/.bashrc
$ egrep 'LC|LANG' ~/.*
|
returns nothing, and i do not have a locale file in env.d
Code: | $ cat /etc/env.d/*locale
cat: /etc/env.d/*locale: No such file or directory
|
|
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Thu Apr 01, 2010 10:07 pm Post subject: |
|
|
Maybe take a look at he Gentoo Linux Localization Guide.
It should help you setup your locale the way you want it. |
|
Back to top |
|
|
|