View previous topic :: View next topic |
Author |
Message |
pask1970 n00b
Joined: 07 Dec 2003 Posts: 57 Location: Ischia
|
Posted: Thu Sep 17, 2009 1:46 pm Post subject: Localization problems with ~x86 keyword [SOLVED] |
|
|
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 |
|
|
sn4rf3r Tux's lil' helper
Joined: 01 Aug 2006 Posts: 77 Location: Jersey, US of F'n A
|
Posted: Thu Sep 17, 2009 4:51 pm Post subject: |
|
|
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 |
|
|
pask1970 n00b
Joined: 07 Dec 2003 Posts: 57 Location: Ischia
|
Posted: Thu Sep 17, 2009 9:17 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
sn4rf3r Tux's lil' helper
Joined: 01 Aug 2006 Posts: 77 Location: Jersey, US of F'n A
|
Posted: Thu Sep 17, 2009 10:28 pm Post subject: |
|
|
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 |
|
|
pask1970 n00b
Joined: 07 Dec 2003 Posts: 57 Location: Ischia
|
Posted: Tue Sep 22, 2009 7:07 pm Post subject: |
|
|
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 |
|
|
sn4rf3r Tux's lil' helper
Joined: 01 Aug 2006 Posts: 77 Location: Jersey, US of F'n A
|
Posted: Tue Sep 22, 2009 7:15 pm Post subject: |
|
|
Glad you got it worked out, thanks for the heads up. |
|
Back to top |
|
|
|