From owner-freebsd-current@FreeBSD.ORG Sun Aug 31 18:06:07 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A72FBDA0; Sun, 31 Aug 2014 18:06:07 +0000 (UTC) Received: from ipmail06.adl2.internode.on.net (ipmail06.adl2.internode.on.net [150.101.137.129]) by mx1.freebsd.org (Postfix) with ESMTP id 10ACC1563; Sun, 31 Aug 2014 18:06:06 +0000 (UTC) Received: from ppp118-210-249-247.lns20.adl6.internode.on.net (HELO leader.local) ([118.210.249.247]) by ipmail06.adl2.internode.on.net with ESMTP; 01 Sep 2014 03:30:56 +0930 Message-ID: <540362D7.7030102@ShaneWare.Biz> Date: Mon, 01 Sep 2014 03:30:55 +0930 From: Shane Ambler User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Allan Jude , freebsd-current@freebsd.org Subject: Re: Modify bsdinstall to set the default locale? References: <54035039.9020709@freebsd.org> In-Reply-To: <54035039.9020709@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Aug 2014 18:06:07 -0000 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