From owner-freebsd-hackers Sun Oct 15 17:01:22 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id RAA17711 for hackers-outgoing; Sun, 15 Oct 1995 17:01:22 -0700 Received: from sequent.kiae.su (sequent.kiae.su [144.206.136.6]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id RAA17701 for ; Sun, 15 Oct 1995 17:01:19 -0700 Received: by sequent.kiae.su id AA04327 (5.65.kiae-2 ); Mon, 16 Oct 1995 03:51:40 +0400 Received: by sequent.KIAE.su (UUMAIL/2.0); Mon, 16 Oct 95 03:51:40 +0300 Received: (from ache@localhost) by ache.dialup.demos.ru (8.6.11/8.6.9) id CAA00630; Mon, 16 Oct 1995 02:45:20 +0300 To: Bruce Evans , j@uriah.heep.sax.de Cc: hackers@freefall.freebsd.org, kaleb@x.org References: <199510152252.IAA32542@godzilla.zeta.org.au> In-Reply-To: <199510152252.IAA32542@godzilla.zeta.org.au>; from Bruce Evans at Mon, 16 Oct 1995 08:52:00 +1000 Message-Id: Organization: Olahm Ha-Yetzirah Date: Mon, 16 Oct 1995 02:45:20 +0300 (MSK) X-Mailer: Mail/@ [v2.40 FreeBSD] From: =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= (aka Andrey A. Chernov, Black Mage) X-Class: Fast Subject: Re: A couple problems in FreeBSD 2.1.0-950922-SNAP Lines: 31 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Length: 1560 Sender: owner-hackers@FreeBSD.org Precedence: bulk In message <199510152252.IAA32542@godzilla.zeta.org.au> Bruce Evans writes: >>> Did you setenv ENABLE_STARTUP_LOCALE before calling ls? >>> See environ(7) (-current). >>IMHO, the base utilities that use should properly initialize >>the locale instead of relying on that hack. (The hack is useful to >>force programs that don't like to handle locale's, but base utilities >>of the system are expected to do it right theirselves.) >BTW, this hack adds 24K to the size of a minimal statically linked >program `main() {}' and defeats the point of most of the specially named >routines in crt0.c. E.g., there is a special version of getenv() named >_getenv() to avoid the namespace pollution and bloat from getenv(), but >the hack calls getenv() anyway; there are special versions of read() and >write(), but _startup_setlocale() references things in stdio that reference >read() and write(). And what? Now too many pgms require proper locale support, even ls, so we can't avoid this thing. Code added regardles of ENABLE_STARTUP_LOCALE set or not, so 'hack' means this variable as I understand and not code added. As I already say, I can revert default case to pick ctype and use variable DISABLE_STARTUP_LOCALE to disable it for debugging purposes. -- Andrey A. Chernov : And I rest so composedly, /Now, in my bed, ache@astral.msk.su : That any beholder /Might fancy me dead - FidoNet: 2:5020/230.3 : Might start at beholding me, /Thinking me dead. RELCOM Team,FreeBSD Team : E.A.Poe From "For Annie" 1849