From owner-freebsd-current Sun Dec 22 23:21:40 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id XAA22702 for current-outgoing; Sun, 22 Dec 1996 23:21:40 -0800 (PST) Received: from sovcom.kiae.su (sovcom.kiae.su [193.125.152.1]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id XAA22694 for ; Sun, 22 Dec 1996 23:21:36 -0800 (PST) Received: by sovcom.kiae.su id AA18411 (5.65.kiae-1 ); Mon, 23 Dec 1996 09:33:14 +0300 Received: by sovcom.KIAE.su (UUMAIL/2.0); Mon, 23 Dec 96 09:33:14 +0300 Received: from localhost (nagual.ru [127.0.0.1]) by nagual.ru (8.8.4/8.8.4) with ESMTP id JAA00669; Mon, 23 Dec 1996 09:32:38 +0300 (MSK) Date: Mon, 23 Dec 1996 09:32:38 +0300 (MSK) From: =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7=2C_Andrey_Chernov?= To: davidn@blaze.net.au Cc: freebsd-current@freebsd.org Subject: Re: Confused about locale In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=KOI8-R Content-Transfer-Encoding: 8BIT Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Mon, 23 Dec 1996, David Nugent wrote: > On Mon, 23 Dec 1996, [KOI8-R] Андрей Чернов, Andrey Chernov wrote: > > >> > I dislike idea of "system default" locale, I like idea of "user > >> > default" locale instead! > >> > >> Ok. There will be a way of achieving this shortly via login.conf. > > > >Not so quick, it will be nice if user can change his preferences > >easily. > > The user can, by overriding the standard environment variables in > his or her .login or .profile, just as they do now. The only > thing the lang= and charset= entries in the login class affects > are the defaults set by login in the user's environment. Editing > startup files is no more difficult than running, say, chpass et > al. Excepting one small thing: command interpreter itself started with system locale, not user defined one and user can change it only later (if ever can!). Shell f.e. understand on-the-fly locale changes only very recently (my fix). It is why I insist on locale setting _prior_ to command interpreter start, i.e. at login stage. > >> The last part is more difficult. But the field is already there > >> in "class". > > > >What is difficult here? As man says "class" is pointer to termcap-style > >attributes. Do you mean that they must be unchangeable by user? > > Not at all. Only that "class" is a pointer to /many/ parameters > that (1) set administrative restrictions and (2) sets up the > *default* login environment for a set of users. For a shell > account, most of the environment setup remains changeable, just > as it is now. Why not use "tc=" modifier to point to default class? I.e. example entry will looks like: la=ru_SU.KOI8-R:ch=KOI8-R:tc=def_class -- Andrey A. Chernov http://www.nagual.ru/~ache/