Date: Mon, 16 Oct 1995 02:45:20 +0300 (MSK) From: =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= (aka Andrey A. Chernov, Black Mage) <ache@astral.msk.su> To: Bruce Evans <bde@zeta.org.au>, j@uriah.heep.sax.de Cc: hackers@freefall.freebsd.org, kaleb@x.org Subject: Re: A couple problems in FreeBSD 2.1.0-950922-SNAP Message-ID: <LkGqPWm8c2@ache.dialup.demos.ru> In-Reply-To: <199510152252.IAA32542@godzilla.zeta.org.au>; from Bruce Evans at Mon, 16 Oct 1995 08:52:00 %2B1000 References: <199510152252.IAA32542@godzilla.zeta.org.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <ctype.h> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?LkGqPWm8c2>