From owner-freebsd-hackers Sun Oct 15 17:00:58 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id RAA17630 for hackers-outgoing; Sun, 15 Oct 1995 17:00:58 -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 RAA17618 for ; Sun, 15 Oct 1995 17:00:55 -0700 Received: by sequent.kiae.su id AA04334 (5.65.kiae-2 ); Mon, 16 Oct 1995 03:51:44 +0400 Received: by sequent.KIAE.su (UUMAIL/2.0); Mon, 16 Oct 95 03:51:44 +0300 Received: (from ache@localhost) by ache.dialup.demos.ru (8.6.11/8.6.9) id CAA00639; Mon, 16 Oct 1995 02:49:36 +0300 To: hackers@freefall.freebsd.org, Joerg Wunsch References: <199510152256.XAA22059@uriah.heep.sax.de> In-Reply-To: <199510152256.XAA22059@uriah.heep.sax.de>; from J Wunsch at Sun, 15 Oct 1995 23:56:49 +0100 (MET) Message-Id: Organization: Olahm Ha-Yetzirah Date: Mon, 16 Oct 1995 02:49:36 +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: 28 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Length: 1226 Sender: owner-hackers@FreeBSD.org Precedence: bulk In message <199510152256.XAA22059@uriah.heep.sax.de> J Wunsch writes: >As =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= wrote: >> >> >IMHO, the base utilities that use should properly initialize >> >the locale instead of relying on that hack. >> >> You need different crt0 for native FreeBSD utilities and any other >> which you can compile, i.e. ports collection. >You misunderstood me. I was thinking of an explicit setlocale() >inside all system utilities (except daemons) that use . 1) Too match sources will be changed cause troubles with patches and upgrades. 2) It can be called twice, since first time call comes from crt0. 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. -- 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