From owner-freebsd-hackers Mon Oct 16 19:54:42 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id TAA05554 for hackers-outgoing; Mon, 16 Oct 1995 19:54:42 -0700 Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id TAA05547 for ; Mon, 16 Oct 1995 19:54:39 -0700 Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id TAA26308; Mon, 16 Oct 1995 19:47:46 -0700 From: Terry Lambert Message-Id: <199510170247.TAA26308@phaeton.artisoft.com> Subject: Re: A couple problems in FreeBSD 2.1.0-950922-SNAP To: ache@astral.msk.su (=?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?=) Date: Mon, 16 Oct 1995 19:47:46 -0700 (MST) Cc: roberto@keltia.freenix.fr, terry@lambert.org, dawes@rf900.physics.usyd.edu.au, hackers@freefall.freebsd.org, kaleb@x.org In-Reply-To: from "=?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?=" at Oct 17, 95 05:32:39 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 955 Sender: owner-hackers@FreeBSD.org Precedence: bulk > >> 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. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.