From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1010 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: printf POSIX compliance Date: Fri, 8 Jun 2012 11:29:35 -0400 Message-ID: <20120608152935.GQ163@brightrain.aerifal.cx> References: <20120608144423.GN163@brightrain.aerifal.cx> <20120608145519.GP163@brightrain.aerifal.cx> <20120608150618.GB17860@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1339169657 2171 80.91.229.3 (8 Jun 2012 15:34:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 8 Jun 2012 15:34:17 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1011-gllmg-musl=m.gmane.org@lists.openwall.com Fri Jun 08 17:34:16 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Sd1CW-0002cQ-69 for gllmg-musl@plane.gmane.org; Fri, 08 Jun 2012 17:34:12 +0200 Original-Received: (qmail 13476 invoked by uid 550); 8 Jun 2012 15:34:12 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 13468 invoked from network); 8 Jun 2012 15:34:12 -0000 Content-Disposition: inline In-Reply-To: <20120608150618.GB17860@port70.net> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:1010 Archived-At: On Fri, Jun 08, 2012 at 05:06:18PM +0200, Szabolcs Nagy wrote: > * Rich Felker [2012-06-08 10:55:19 -0400]: > > On Fri, Jun 08, 2012 at 10:44:23AM -0400, Rich Felker wrote: > > > Still working on finding whether this long double issue is what's > > > causign the gnulib junk to get pulled in... > > > > And it's not, at least not in the worst package, GNU m4. I #if'd out > > the broken long double test in configure, re-ran it, and even with no > > printf problems reported, freadahead is still getting pulled in... > > I'll see if I see anything else odd. > > > > i've just checked m4 and it uses freadseek and closein > > both functions are from gnulib and depend on freadahead > > so m4 will use freadahead independently of the printf issue Thanks; I think that settles it then. I wonder if they'd accept a patch upstream to fix this bug.. I've just fixed a few minor issues found by the autoconf/gnulib tests: - strtod("-0x",0) returning positive zero when it should return negative zero. - stdint.h applying wrong signedness in some of the const macros. I've also found a couple more invalid tests in gnulib/autoconf: - The getopt test for "POSIX compatible" getopt is backwards; it actually tests for POSIX-incompatible GNU semantics. - isnanl is checking behavior on invalid ld80 representations, just like the printf test. And one valid test that fails: - The strtod test is attempting to convert "nan()". This is required to be accepted and yield a NAN, even though the interpretation of the contents of the () is implementation-defined. I'll add support for this later. Rich