Modify bsdinstall to set the default locale?

Shane Ambler FreeBSD at ShaneWare.Biz
Sun Aug 31 18:06:07 UTC 2014

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_TIME="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

More information about the freebsd-current mailing list