Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Oct 1995 02:49:36 +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:        hackers@freefall.freebsd.org, Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de>
Subject:   Re: A couple problems in FreeBSD 2.1.0-950922-SNAP
Message-ID:  <MkGuPWm8c2@ache.dialup.demos.ru>
In-Reply-To: <199510152256.XAA22059@uriah.heep.sax.de>; from J Wunsch at Sun, 15 Oct 1995 23:56:49 %2B0100 (MET)
References:  <199510152256.XAA22059@uriah.heep.sax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <ctype.h> 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 <ctype.h>.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?MkGuPWm8c2>