Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved]where is my LANG variable ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
shin938
n00b
n00b


Joined: 10 Feb 2012
Posts: 20

PostPosted: Mon Feb 04, 2013 4:39 pm    Post subject: [Solved]where is my LANG variable ? Reply with quote

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
View user's profile Send private message
Marlo
Veteran
Veteran


Joined: 26 Jul 2003
Posts: 1140

PostPosted: Mon Feb 04, 2013 5:37 pm    Post subject: Reply with quote

שלום
האם קראת את הדפים האלה?
Hello,
do you know this site?

http://www.gentoo.org/doc/en/guide-localization.xml#doc_chap3
http://en.gentoo-wiki.com/wiki/Hebrew

דרישת שלום
regards
Ma
_________________
Test Adobe Flash Player
The Indian Shankar Drum Ganesh Machine
Back to top
View user's profile Send private message
shin938
n00b
n00b


Joined: 10 Feb 2012
Posts: 20

PostPosted: Mon Feb 04, 2013 5:47 pm    Post subject: Reply with quote

Marlo wrote:
שלום
האם קראת את הדפים האלה?
Hello,
do you know this site?

http://www.gentoo.org/doc/en/guide-localization.xml#doc_chap3
http://en.gentoo-wiki.com/wiki/Hebrew

דרישת שלום
regards
Ma



yes I did. still can't understand where is LANG is coming from.
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Mon Feb 04, 2013 6:04 pm    Post subject: Reply with quote

shin938

Are you looking for cat /etc/env.d/02locale :?:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
shin938
n00b
n00b


Joined: 10 Feb 2012
Posts: 20

PostPosted: Mon Feb 04, 2013 6:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Tue Feb 05, 2013 1:07 am    Post subject: Reply with quote

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 :oops: 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 :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
jrussia
Tux's lil' helper
Tux's lil' helper


Joined: 29 Aug 2012
Posts: 89
Location: Chicago

PostPosted: Tue Feb 05, 2013 1:30 am    Post subject: Reply with quote

Maybe what you are looking for is locale-gen ?
Back to top
View user's profile Send private message
cach0rr0
Moderator
Moderator


Joined: 13 Nov 2008
Posts: 4121
Location: Houston, Republic of Texas

PostPosted: Sun Feb 10, 2013 10:49 am    Post subject: Reply with quote

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
View user's profile Send private message
shdcn
n00b
n00b


Joined: 11 Feb 2013
Posts: 21
Location: Istanbul/Turkey

PostPosted: Mon Feb 11, 2013 11:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
cach0rr0
Moderator
Moderator


Joined: 13 Nov 2008
Posts: 4121
Location: Houston, Republic of Texas

PostPosted: Mon Feb 18, 2013 6:12 am    Post subject: Reply with quote

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