Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] screwed up locale for user but not for root
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
user317
Guru
Guru


Joined: 26 Jan 2003
Posts: 314

PostPosted: Thu Apr 01, 2010 8:15 pm    Post subject: [solved] screwed up locale for user but not for root Reply with quote

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
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Thu Apr 01, 2010 9:11 pm    Post subject: Reply with quote

Please post the output of these:
Code:
cat /etc/env.d/02locale
egrep 'LC|LANG' ~/.bashrc
Back to top
View user's profile Send private message
user317
Guru
Guru


Joined: 26 Jan 2003
Posts: 314

PostPosted: Thu Apr 01, 2010 9:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Thu Apr 01, 2010 10:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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