Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Localization problems with ~x86 keyword [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
pask1970
n00b
n00b


Joined: 07 Dec 2003
Posts: 57
Location: Ischia

PostPosted: Thu Sep 17, 2009 1:46 pm    Post subject: Localization problems with ~x86 keyword [SOLVED] Reply with quote

Hello all. Sorry for my English. I followed the Gentoo Localization guide to have my system in Italian, and everything went fine. Now i'm trying the ~x86 architecture, and, when i'm using the root shell, i lose localization, and the only workaround is giving "env-update && source /etc/profile" every time i log in as root.
Is there a way to fix permanently that?
Thanks in advance :)


Last edited by pask1970 on Tue Sep 22, 2009 7:07 pm; edited 1 time in total
Back to top
View user's profile Send private message
sn4rf3r
Tux's lil' helper
Tux's lil' helper


Joined: 01 Aug 2006
Posts: 77
Location: Jersey, US of F'n A

PostPosted: Thu Sep 17, 2009 4:51 pm    Post subject: Reply with quote

Hello,

What file did you edit to make your localization changes, did you change things in /etc/env.d/02locale or did you edit ~/.bashrc

Can you post the output from running /usr/bin/locale

Thanks
Back to top
View user's profile Send private message
pask1970
n00b
n00b


Joined: 07 Dec 2003
Posts: 57
Location: Ischia

PostPosted: Thu Sep 17, 2009 9:17 pm    Post subject: Reply with quote

Thanks for answering.
I used /etc/env.d/02locale, and here's the output of /usr/bin/locale:
Quote:
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=


EDIT:
I've solved the problem by setting locales in my /etc/bash/bashrc file. Anyway, i would like to know if this is a bug, or a change :D
Back to top
View user's profile Send private message
sn4rf3r
Tux's lil' helper
Tux's lil' helper


Joined: 01 Aug 2006
Posts: 77
Location: Jersey, US of F'n A

PostPosted: Thu Sep 17, 2009 10:28 pm    Post subject: Reply with quote

Glad to hear you fixed the problem.

You should probably make those changes in ~/.bashrc and not /etc/bash/bashrc. If you update your system, etc-update will want to overwrite any changes to /etc/bash/bashrc.

Just curious, did you kill and restart X as per the localization guide? /etc/profile is only read on login not on terminals spawned within X, this could be why you had to keep sourcing /etc/profile

From bash man page
Quote:
When invoked as an interactive login shell, or a non-interactive shell with the --login option, it first attempts to read and execute commands from /etc/profile and ~/.profile, in that order.


Hope that helps.
Back to top
View user's profile Send private message
pask1970
n00b
n00b


Joined: 07 Dec 2003
Posts: 57
Location: Ischia

PostPosted: Tue Sep 22, 2009 7:07 pm    Post subject: Reply with quote

I've completely solved the problem by using the "su -" command instead of normal su :)
Thanks to all

@sn4ef3r
I got the same problem if i did su command in ttyn console, without starting X at all
Back to top
View user's profile Send private message
sn4rf3r
Tux's lil' helper
Tux's lil' helper


Joined: 01 Aug 2006
Posts: 77
Location: Jersey, US of F'n A

PostPosted: Tue Sep 22, 2009 7:15 pm    Post subject: Reply with quote

Glad you got it worked out, thanks for the heads up.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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