Date: Sat, 15 Jun 2013 09:59:45 -0400 From: "Mike." <the.lists@mgm51.com> To: freebsd-questions@freebsd.org Subject: Re: Setting a locale globally Message-ID: <201306150959450047.007906B6@smtp.24cl.home> In-Reply-To: <20130614194604.GA27434@uriel.asininetech.com> References: <201306141213340281.009F8EE9@smtp.24cl.home> <20130614194604.GA27434@uriel.asininetech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 6/14/2013 at 3:46 PM staticsafe wrote: |On Fri, Jun 14, 2013 at 12:13:34PM -0400, Mike. wrote: |> |> |> I would like to set the locale of my 9.1 server to |> |> LANG="en_US.ISO8859-1" |> |> |> globally, i.e., put the locale entry in one file, and then have the |> locale propagate as I go into other shells and run various scripts. |> |> |> I have spent some quality time with google, and the best I have been |> about to ascertain is that I need to sprinkle the LANG setting |> throughout the various ENV variables and .profile, .cshrc, .bashrc, and |> whatever files spread across my directory tree. |> |> |> That really seems counter-intuitive to me. |> |> |> Is it at all possible for me to specify in once place *somewhere" that |> the entire server is to use the locale setting LANG="en_US.ISO8859-1" ? |> |> I need a clue... |> |> |> thanks. |> |> |24.3.3.1.1. Login Classes Method |"This method allows environment variables needed for locale name and |MIME character sets to be assigned once for every possible shell instead |of adding specific shell assignments to each shell's startup file. User |Level Setup can be performed by each user while Administrator Level |Setup requires superuser privileges." | |Source: |http://www.freebsd.org/doc/en/books/handbook/using-localization.html#lo gin-class |-- ============= Thank-you! That does what I need. I added the lang keyword to the default and root sections of /etc/login.conf, then ran cap_mkdb /etc/login.conf as mentioned in the handbook. Thanks again for the assist.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306150959450047.007906B6>