From owner-freebsd-questions@FreeBSD.ORG Fri Jun 14 19:54:15 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A82F3A43 for ; Fri, 14 Jun 2013 19:54:15 +0000 (UTC) (envelope-from the.lists@mgm51.com) Received: from oneyou.mcmli.com (oneyou.mcmli.com [IPv6:2001:470:1d:8da::100]) by mx1.freebsd.org (Postfix) with ESMTP id 77B32161B for ; Fri, 14 Jun 2013 19:54:15 +0000 (UTC) Received: from sentry.24cl.com (sentry.24cl.com [IPv6:2001:470:89e9:feed::1]) by oneyou.mcmli.com (Postfix) with ESMTPS id 3bXCFK6q7Fz1DTr for ; Fri, 14 Jun 2013 15:54:13 -0400 (EDT) Received: from BigBloat (bigbloat.24cl.home [10.20.1.4]) by sentry.24cl.com (Postfix) with ESMTP id 3bXCFK025zz1nZ2 for ; Fri, 14 Jun 2013 15:54:12 -0400 (EDT) Message-ID: <201306141554060140.016975D2@smtp.24cl.home> In-Reply-To: <20130614211207.d2d105b8.freebsd@edvax.de> References: <201306141213340281.009F8EE9@smtp.24cl.home> <20130614211207.d2d105b8.freebsd@edvax.de> X-Mailer: Courier 3.50.00.09.1098 (http://www.rosecitysoftware.com) (P) Date: Fri, 14 Jun 2013 15:54:06 -0400 From: "Mike." To: freebsd-questions@freebsd.org Subject: Re: Setting a locale globally Content-Type: text/plain; charset="us-ascii" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jun 2013 19:54:15 -0000 On 6/14/2013 at 9:12 PM Polytropon wrote: |On Fri, 14 Jun 2013 12:13:34 -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. | |You can add this to /etc/csh.cshrc as it will be inherited by |all interactive shells (login shells), unless of course they |override it with ~/.cshrc: | | setenv LANG en_US.ISO8859-1 That works for the login shell, but when I su to another user (e.g., root), LANG is no longer in the environment. | |It's also possible to add it to /etc/profile and even make an |addition to /etc/login.conf's "default" setting: | | default:\ | :setenv=LANG=en_US.ISO8859-1:... That works for the login shell, but when I su to another user (e.g., root), LANG is no longer in the environment.