From owner-freebsd-current Mon Oct 16 01:11:13 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id BAA29345 for current-outgoing; Mon, 16 Oct 1995 01:11:13 -0700 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id BAA29317 for ; Mon, 16 Oct 1995 01:10:58 -0700 Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id JAA13111; Mon, 16 Oct 1995 09:10:54 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id JAA15623; Mon, 16 Oct 1995 09:10:53 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.6.12/8.6.9) id JAA24523; Mon, 16 Oct 1995 09:07:43 +0100 From: J Wunsch Message-Id: <199510160807.JAA24523@uriah.heep.sax.de> Subject: Re: I plan to change ENABLE_STARTUP_LOCALE behaviour... To: ache@astral.msk.su (=?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?=) Date: Mon, 16 Oct 1995 09:07:41 +0100 (MET) Cc: current@FreeBSD.ORG Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: from "=?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?=" at Oct 16, 95 07:16:39 am X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 1064 Sender: owner-current@FreeBSD.ORG Precedence: bulk As =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= wrote: > > I plan to make ENABLE_STARTUP_LOCALE as *default* case > and introduce new variable DISABLE_STARTUP_LOCALE > to disable thins thing (for debugging purposes f.e.). I'm against it. You wrote: 3) It is useful only for <=8bit locales, so you can't call setlocale, multichars becomes damaged, you need to call reduced to 8bit setlocale version as done in crt0. 4) Using non-standard (non-POSIX/ANSI/etc) reduced setlocale in all sources cause portability problems. So either this is broken, and we cannot make it the default, or we should really put a ``setlocale(LC_CTYPE, "");'' on top of all system utilities that use functions. This is effectively the same as your crt0.o hack, but then it's obvious that it's part of the program. Right now, part of the utilities does the right thing (e.g. "vi"), and most others don't. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)