Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Sep 2014 03:30:55 +0930
From:      Shane Ambler <FreeBSD@ShaneWare.Biz>
To:        Allan Jude <allanjude@freebsd.org>, freebsd-current@freebsd.org
Subject:   Re: Modify bsdinstall to set the default locale?
Message-ID:  <540362D7.7030102@ShaneWare.Biz>
In-Reply-To: <54035039.9020709@freebsd.org>
References:  <CAG=rPVfFGgHLeOXuRR3Ce5Dg892ATY-Of6h0jSZnxBsmDTjzWA@mail.gmail.com> <54035039.9020709@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 01/09/2014 02:11, Allan Jude wrote:
> On 2014-08-31 12:36, Craig Rodrigues wrote:
>> Hi,
>>
>> I recently did a fresh install of FreeBSD-10.stable on a new machine.
>>
>> If I run the 'locale', I get this:
>>
>> LANG=
>> LC_CTYPE="C"
>> LC_COLLATE="C"
>> LC_TIME="C"
>> LC_NUMERIC="C"
>> LC_MONETARY="C"
>> LC_MESSAGES="C"
>> LC_ALL=
>>
>> Can we add something to bsdinstall/bsdconfig for setting the default locale?
>>
>> We already have stuff in the installer for setting the keyboard and timezone.
>> --
>> Craig
>
> That would seem to make sense. Where do these settings actually get
> stored? Where would I find a list of the possible settings to create the
> dialog?
> 
> I've never tried to use any of the alternative locales
> 

They are environment variables - we can set manually in ~/.cshrc
Any unset will equal the LANG setting - empty just falls to "C".

Handbook Chapter 22 on localisation shows setting it in /etc/login.conf
which currently only has a lang setting for Russian accounts.

It also notes that Chinese, Japanese, and Korean will need to set more
than just lang.

-- 
FreeBSD - the place to B...Software Developing

Shane Ambler




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?540362D7.7030102>