From owner-freebsd-questions@FreeBSD.ORG Wed Jun 18 02:57:51 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 16A4F802 for ; Wed, 18 Jun 2014 02:57:51 +0000 (UTC) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CCD512A24 for ; Wed, 18 Jun 2014 02:57:49 +0000 (UTC) Received: from r56.edvax.de (port-92-195-64-166.dynamic.qsc.de [92.195.64.166]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id B558B27630; Wed, 18 Jun 2014 04:57:41 +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 s5I2vfLk001968; Wed, 18 Jun 2014 04:57:41 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 18 Jun 2014 04:57:40 +0200 From: Polytropon To: ddddd dddd Subject: Re: Language in FreeBSD Message-Id: <20140618045740.df8739e7.freebsd@edvax.de> In-Reply-To: References: <20140616135108.40d4ac41@kalimero.tijl.coosemans.org> Reply-To: Polytropon 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.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jun 2014 02:57:51 -0000 On Tue, 17 Jun 2014 22:23:04 +0200, ddddd dddd wrote: > > Programs usually support the LC_* variables (LC_MESSAGES for > > example, LC_ALL to override) as well as LANG. You can try to > > set those in your ~/.login if the C shell is your login shell, > > or in ~/.login_conf, for example like this: > > > > me:\ > > :charset=iso-8859-1:\ > > :lang=de_DE.ISO8859-1: > > > > Note that you probably will use UTF-8 instead of ISO-8859-1 > > if you want to be "future-proof". :-) > Well, I tried :lang=no_NO with ISO8859-1, ISO8859-15 and UTF-8, > the $LANG variable were always empty. According to "man login.conf", setting lang= will set $LANG, but it will not set any of the LC_* variables. If I remember correctly, $LANG has precedence. If you want to set LC_* variables via ~/.login_conf, you can use the setenv= parameter. > > Maybe you can add some C shell specific environmental settings. > > Here are some examples: > > > > # german input, english messages > > setenv LC_ALL en_US.ISO8859-1 > > setenv LC_MESSAGES en_US.ISO8859-1 > > setenv LC_COLLATE de_DE.ISO8859-1 > > setenv LC_CTYPE de_DE.ISO8859-1 > > setenv LC_MONETARY de_DE.ISO8859-1 > > setenv LC_NUMERIC de_DE.ISO8859-1 > > setenv LC_TIME de_DE.ISO8859-1 > > unsetenv LANG > > > > # german with Euro sign > > setenv LC_ALL de_DE.ISO8859-15 > > setenv LC_COLLATE de_DE.ISO8859-15 > > setenv LC_CTYPE de_DE.ISO8859-15 > > setenv LC_MESSAGES de_DE.ISO8859-15 > > setenv LC_MONETARY de_DE.ISO8859-15 > > setenv LC_NUMERIC de_DE.ISO8859-15 > > setenv LC_TIME de_DE.ISO8859-15 > > > > # german with UTF-8 ("more international") > > setenv LC_ALL en_US.UTF-8 > > setenv LC_MESSAGES en_US.UTF-8 > > setenv LC_COLLATE de_DE.UTF-8 > > setenv LC_CTYPE de_DE.UTF-8 > > setenv LC_MONETARY de_DE.UTF-8 > > setenv LC_NUMERIC de_DE.UTF-8 > > setenv LC_TIME de_DE.UTF-8 > > setenv LANG de_DE.UTF-8 > > > > Maybe this this can help with testing and inspiration. :-) > > In what file? Set those in /etc/csh.cshrc for global effect, or in your own ~/.cshrc for your user. Note that there's also a precedence of LC_ALL over the other LC_* settings, if I remember correctly. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...