From owner-freebsd-hackers Mon Oct 16 20:15:01 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id UAA06626 for hackers-outgoing; Mon, 16 Oct 1995 20:15:01 -0700 Received: from sovcom.kiae.su (sovcom.kiae.su [144.206.136.1]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id UAA06615 for ; Mon, 16 Oct 1995 20:14:57 -0700 Received: by sovcom.kiae.su id AA13476 (5.65.kiae-1 ); Tue, 17 Oct 1995 06:11:46 +0300 Received: by sovcom.KIAE.su (UUMAIL/2.0); Tue, 17 Oct 95 06:11:46 +0300 Received: (from ache@localhost) by ache.dialup.demos.ru (8.6.11/8.6.9) id GAA01303; Tue, 17 Oct 1995 06:10:30 +0300 To: Terry Lambert Cc: dawes@rf900.physics.usyd.edu.au, hackers@freefall.freebsd.org, kaleb@x.org, roberto@keltia.freenix.fr References: <199510170247.TAA26308@phaeton.artisoft.com> In-Reply-To: <199510170247.TAA26308@phaeton.artisoft.com>; from Terry Lambert at Mon, 16 Oct 1995 19:47:46 -0700 (MST) Message-Id: Organization: Olahm Ha-Yetzirah Date: Tue, 17 Oct 1995 06:10:30 +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: 33 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Length: 1417 Sender: owner-hackers@FreeBSD.org Precedence: bulk In message <199510170247.TAA26308@phaeton.artisoft.com> Terry Lambert writes: >> >> LANG=fr_FR.ISO_8859-1 >> >> LC_CTYPE=iso_8859_1 >> >> >> >> As soon as I switch LC_CTYPE to fr_FR.ISO_8859-1, all xterms started from >> >> this terminal will dump core (well, they won't because xterm is setuid >> >> root), each time. The signal is SEGV. >> >> >Your xterm is improperly pretending to be internationalized. It's >> >pretending because there is bogus code in crt0.o that causes it to >> >call setlocale() when XPG/3 and XPG/4 both say it shouldn't. >> >> Be shure that your propogating cause the same effect on xterm as >> my hack (the same code table loaded). >No it won't. The LC_TYPE causes the load to fail for the default >set and there is no default set, so boom. >In the case of a statically loaded (writeable strings) default, there >is no setlocale() call, thus no failure, thus no core. Not this case. This case is equal simple LANG set or not set, LC_CTYPE bogusly involved here. I dump xterm core only by LANG and don't need LC_CTYPE for it. Having bogus LC_CTYPE simple mask LANG presence. -- 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