View previous topic :: View next topic |
Author |
Message |
shin938 n00b
Joined: 10 Feb 2012 Posts: 20
|
Posted: Mon Feb 04, 2013 4:39 pm Post subject: [Solved]where is my LANG variable ? |
|
|
while I'm straggling with another problem I noticed that I don't have /etc/env.d/02locale , I don't remember what I did when I installed gentoo.
echo $LANG both for root and regular user is:
en_US.utf8
LINGUAS="en he"
my locale.gen is:
Code: |
he_IL.UTF-8 UTF-8
he_IL ISO-8859-8
en_US ISO-8859-1
en_US.UTF-8 UTF-8
|
Code: |
locale
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC=en_US.utf8
LC_TIME=en_US.utf8
LC_COLLATE="en_US.utf8"
LC_MONETARY=en_US.utf8
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT=en_US.utf8
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=
|
all those have no LANG in them:
Code: |
grep -r LANG /etc/bash/
grep -r LANG /etc/profile.d/
grep -r LANG /etc/portage/
grep -r LANG /etc/env.d/
|
and also those:
Code: |
grep LANG ~/.bashrc
grep LANG ~/.bash_profile
|
so where is LANG coming from ?
I have no problems with languages, so do I need /etc/env.d/02locale anyway ?
Last edited by shin938 on Mon Feb 18, 2013 6:50 am; edited 1 time in total |
|
Back to top |
|
|
Marlo Veteran
Joined: 26 Jul 2003 Posts: 1591
|
|
Back to top |
|
|
shin938 n00b
Joined: 10 Feb 2012 Posts: 20
|
Posted: Mon Feb 04, 2013 5:47 pm Post subject: |
|
|
yes I did. still can't understand where is LANG is coming from. |
|
Back to top |
|
|
BillWho Veteran
Joined: 03 Mar 2012 Posts: 1600 Location: US
|
Posted: Mon Feb 04, 2013 6:04 pm Post subject: |
|
|
shin938
Are you looking for cat /etc/env.d/02locale _________________ Good luck
Since installing gentoo, my life has become one long emerge |
|
Back to top |
|
|
shin938 n00b
Joined: 10 Feb 2012 Posts: 20
|
Posted: Mon Feb 04, 2013 6:30 pm Post subject: |
|
|
BillWho wrote: | shin938
Are you looking for cat /etc/env.d/02locale |
as I wrote in my first line I don't have the file /etc/env.d/02locale |
|
Back to top |
|
|
BillWho Veteran
Joined: 03 Mar 2012 Posts: 1600 Location: US
|
Posted: Tue Feb 05, 2013 1:07 am Post subject: |
|
|
shin938 wrote: | BillWho wrote: | shin938
Are you looking for cat /etc/env.d/02locale |
as I wrote in my first line I don't have the file /etc/env.d/02locale |
OK, sorry I was tired and missed that I think you have to create that file yourself.
Some packages install locales like gtk. Take a look in /usr/share/locale
Maybe that's where they're coming from _________________ Good luck
Since installing gentoo, my life has become one long emerge |
|
Back to top |
|
|
jrussia Tux's lil' helper
Joined: 29 Aug 2012 Posts: 89 Location: Chicago
|
Posted: Tue Feb 05, 2013 1:30 am Post subject: |
|
|
Maybe what you are looking for is locale-gen ? |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Sun Feb 10, 2013 10:49 am Post subject: |
|
|
perhaps:
Code: |
# eselect locale list
Available targets for the LANG variable:
[1] C
[2] POSIX
[3] en_US
[4] en_US.iso88591
[5] en_US.utf8
[6] ja_JP.utf8
[ ] (free form)
|
_________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
Back to top |
|
|
shdcn n00b
Joined: 11 Feb 2013 Posts: 27 Location: Istanbul/Turkey
|
Posted: Mon Feb 11, 2013 11:29 pm Post subject: |
|
|
You may try creating /etc/env.d/02locale file if it doesn't exist.
Code: | echo 'LANG="en_US.UTF-8"' > /etc/env.d/02locale
echo 'LC_MESSAGES="en_US.UTF-8"' >> /etc/env.d/02locale |
or
Code: | echo 'LANG="he_IL.UTF-8"' > /etc/env.d/02locale
echo 'LC_MESSAGES="he_IL.UTF-8"' >> /etc/env.d/02locale |
It should work after a reboot. |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Mon Feb 18, 2013 6:12 am Post subject: |
|
|
shdcn wrote: | You may try creating /etc/env.d/02locale file if it doesn't exist.
Code: | echo 'LANG="en_US.UTF-8"' > /etc/env.d/02locale
echo 'LC_MESSAGES="en_US.UTF-8"' >> /etc/env.d/02locale |
or
Code: | echo 'LANG="he_IL.UTF-8"' > /etc/env.d/02locale
echo 'LC_MESSAGES="he_IL.UTF-8"' >> /etc/env.d/02locale |
It should work after a reboot. |
eselect locale should change this file for you without you having to edit by hand
Code: |
vunnable ~ # eselect locale list
Available targets for the LANG variable:
[1] C
[2] POSIX
[3] de_DE
[4] de_DE.iso88591
[5] deutsch
[6] en_US
[7] en_US.iso88591
[8] en_US.utf8 *
[9] german
[10] ja_JP.utf8
[ ] (free form)
vunnable ~ # cat /etc/env.d/02locale
# Configuration file for eselect
# This file has been automatically generated.
LANG="en_US.utf8"
LC_COLLATE="C"
vunnable ~ # eselect locale set 9
Setting LANG to german ...
Run ". /etc/profile" to update the variable in your shell.
vunnable ~ # cat /etc/env.d/02locale
# Configuration file for eselect
# This file has been automatically generated.
LANG="german"
LC_COLLATE="C"
|
_________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
Back to top |
|
|
|