You are not logged in.

#1 2010-01-09 15:05:33

siriusb
Member
From: Hungary
Registered: 2010-01-01
Posts: 422

[SOLVED] configuring locale settings systemwide

Hi All,

I've just installed arch, and am wondering how to set e.g. LC_PAPER to a different locale because in rc.conf  LOCALE="en_US.UTF-8", but I'd like to use A4 paper size instead of Letter.
I tried

export LC_PAPER="hu_HU.UTF-8"

in rc.local but it doesn't work.

Last edited by siriusb (2010-01-10 09:54:59)

Offline

#2 2010-01-09 19:02:27

hw-tph
Member
Registered: 2006-11-01
Posts: 149

Re: [SOLVED] configuring locale settings systemwide

You should be able to add locale exports (LC_PAPER, LC_ALL, and so on) to your ~/.bashrc. If you want to set it system wide you can add it to /etc/profile, /etc/profile.bash, or /etc/bash.bashrc.local (you can create it if it doesn't exist - it will be sourced by /etc/bash.bashrc).

Also make sure your locale is uncommented in /etc/locale.gen and run locale-gen an extra time to make sure the local is generated.

Last edited by hw-tph (2010-01-09 19:03:41)

Offline

#3 2010-01-09 19:45:31

siriusb
Member
From: Hungary
Registered: 2010-01-01
Posts: 422

Re: [SOLVED] configuring locale settings systemwide

Of course, I did what I had to do with locale.gen.

Now I'm using ~/.bashrc, but I want to understand how arch works, so I will try your suggestions. Thanks for your help.

Edit:
/etc/profile works smile

Last edited by siriusb (2010-01-10 09:52:21)

Offline

Board footer

Powered by FluxBB