Date: Mon, 16 Oct 1995 12:34:15 +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: FreeBSD hackers <freebsd-hackers@FreeBSD.ORG>, Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de> Subject: Re: A couple problems in FreeBSD 2.1.0-950922-SNAP Message-ID: <mZNSYWm8lI@ache.dialup.demos.ru> In-Reply-To: <199510160744.IAA24308@uriah.heep.sax.de>; from J Wunsch at Mon, 16 Oct 1995 08:44:04 %2B0100 (MET) References: <199510160744.IAA24308@uriah.heep.sax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <199510160744.IAA24308@uriah.heep.sax.de> J Wunsch writes: >As =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= wrote: >> >> >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. >That doesn't count. The base utilities aren't being upgraded that >often. And all ports utilities need to be upgraded too... >> 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. >Ah, i didn't knew that our locale support ain't complete yet. I was >under the impression that the LC_CTYPE part was already ok. LC_CTYPE part _is_ already ok and because of it 'ls' with setlocale() from main() for Japanese LANG becomes broken right now. I repeat one again: 1) setlocale() is aware of multi-byte LANGs. 2) ls and other utilities not aware of multi-byte LANGs and becomes very broken because assumes that char type == char. 1) and 2) isn't purposes to not have correct ctype for ls if your charset is <= 8bit. My hack do it. For multi-byte LANGs ls and others stays to ASCII in my hack and don't becomes broken. -- 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?mZNSYWm8lI>