Re: Modify bsdinstall to set the default locale?

From: Shane Ambler <FreeBSD_at_ShaneWare.Biz>
Date: Mon, 01 Sep 2014 03:30:55 +0930
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
Received on Sun Aug 31 2014 - 16:06:07 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:51 UTC