From owner-freebsd-questions@FreeBSD.ORG Fri Jun 14 19:12:05 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 E4E60C7 for ; Fri, 14 Jun 2013 19:12:05 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id AFC75130A for ; Fri, 14 Jun 2013 19:12:05 +0000 (UTC) Received: from r56.edvax.de (port-92-195-15-122.dynamic.qsc.de [92.195.15.122]) by mx02.qsc.de (Postfix) with ESMTP id 7501F27720; Fri, 14 Jun 2013 21:11:58 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id r5EJC7rt001920; Fri, 14 Jun 2013 21:12:07 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 14 Jun 2013 21:12:07 +0200 From: Polytropon To: "Mike." Subject: Re: Setting a lcoale globally Message-Id: <20130614211207.d2d105b8.freebsd@edvax.de> In-Reply-To: <201306141213340281.009F8EE9@smtp.24cl.home> References: <201306141213340281.009F8EE9@smtp.24cl.home> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jun 2013 19:12:06 -0000 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 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:... ... I'm not fully sure about that, as I'm using a centralized con- figuration as suggested per /etc/csh.cshrc to have specific environment settings, shell configuration items and aliases _system-wide_ for all users. (Note that this might require your attention on system updates!) > 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. For _custom_ scripts, I would suggest to put that setting at the top of those scripts so they will make sure the correct $LANG is being set, independently from possible other users' values. > That really seems counter-intuitive to me. True. :-) > 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" ? >From my individual experience, adding it to the global C-Shell configuration works, but I can't predict that for your exact requirements. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...