Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
what keeps overwriting my locale???
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
lo-jay
l33t
l33t


Joined: 27 Feb 2005
Posts: 862

PostPosted: Tue Mar 07, 2006 11:21 pm    Post subject: what keeps overwriting my locale??? Reply with quote

trying to set up the locale for english a n d chinese, somehow i do not succeed:

/etc/locales.build
Code:
en_US/ISO-8859-1
en_US.UTF-8/UTF-8
de_DE/ISO-8859-1
de_DE@euro/ISO-8859-15
fr_FR/ISO-8859-1
fr_FR@euro/ISO-8859-15
zh_CN.UTF-8/UTF-8
zh_CN.GB2312/GB2312
zh_CN.GB18030/GB18030


/etc/env.d/02locale
Code:
LANG=en_US.UTF-8

LC_TYPE=zh_CN.UTF-8


& home/jan/.bash_profile
Code:
LANG=en_US
LC_CTYPE=zh_CN.GB2312
LC_NUMERIC="zh_CN"
LC_TIME=en_US
LC_COLLATE="zh_CN"
LC_MESSAGES=en_US
LC_PAPER="zh_CN"
LC_NAME="zh_CN"
LC_ADDRESS="zh_CN"
LC_TELEPHONE="zh_CN"
LC_MEASUREMENT="zh_CN"
LC_IDENTIFICATION="zh_CN"
LC_ALL=


still if i
Quote:
# locale
i always get
Code:
LANG=en_US
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE="en_US"
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=

only english shows up. as a consequence all my apps get compile w/out support for chinese...

is there another config file i keep overseeing - really confused :? .

thanks again!
_________________
lo-jay

The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"

taken from "Two Lane Blacktop"
Back to top
View user's profile Send private message
pianosaurus
l33t
l33t


Joined: 19 Apr 2004
Posts: 944
Location: Bash$

PostPosted: Thu Mar 09, 2006 3:45 pm    Post subject: Reply with quote

Hmm. Your /etc/env.d/02locale says LC_TYPE instead of LC_CTYPE. Shouldn't matter though. In fact, I thought the environment variables didn't matter on what is built. I always run emerge as root, where all the LCs are set to english, but I still have norwegian in my apps when run as a user. Do you have the nls use flag set?
_________________
PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post
Back to top
View user's profile Send private message
lo-jay
l33t
l33t


Joined: 27 Feb 2005
Posts: 862

PostPosted: Thu Mar 09, 2006 5:34 pm    Post subject: Reply with quote

hey Cuber,

the missing C really seemed to be the problem.
corrected it & now locales look like this:
Code:
jan@tux1 ~ $ locale
LANG=en_US
LC_CTYPE=zh_CN.GB2312
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE="en_US"
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=


my next problem is openoffice-bin. so far i do not have any chinese fonts in it. recompile - but to no avail...
as far as i understand it relies on the linguas variable in /etc/make.conf
Code:
LINGUAS="de en zh_CN"
???

mange tak!!!
_________________
lo-jay

The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"

taken from "Two Lane Blacktop"
Back to top
View user's profile Send private message
pianosaurus
l33t
l33t


Joined: 19 Apr 2004
Posts: 944
Location: Bash$

PostPosted: Fri Mar 10, 2006 8:53 pm    Post subject: Reply with quote

lo-jay wrote:
my next problem is openoffice-bin. so far i do not have any chinese fonts in it. recompile - but to no avail...
as far as i understand it relies on the linguas variable in /etc/make.conf
Code:
LINGUAS="de en zh_CN"


I don't think the sub-type works in LINGUAS. Try
Code:
LINGUAS="de en zh"
instead

lo-jay wrote:
mange tak!!!
Bare hyggelig :D
_________________
PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Fri Mar 10, 2006 10:50 pm    Post subject: Reply with quote

Moved from Desktop Environments to Other Things Gentoo: Not a desktop environment problem.
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