From owner-freebsd-bugs Wed Aug 21 22:45:25 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6662137B400; Wed, 21 Aug 2002 22:45:23 -0700 (PDT) Received: from miso.k.notwork.org (miso.k.notwork.org [219.163.110.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 68FB243E6E; Wed, 21 Aug 2002 22:45:22 -0700 (PDT) (envelope-from gotoken@notwork.org) Received: from miso.k.notwork.org (miso.k.notwork.org [219.163.110.3]) by miso.k.notwork.org (8.12.3/8.11.6) with ESMTP id g7M5jTx9023008 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified NO); Thu, 22 Aug 2002 14:45:30 +0900 (JST) (envelope-from gotoken@notwork.org) Message-Id: <200208220545.g7M5jTx9023008@miso.k.notwork.org> Date: Thu, 22 Aug 2002 14:45:29 +0900 From: GOTO Kentaro To: Jens Schweikhardt Cc: freebsd-bugs@FreeBSD.org Subject: Re: bin/41823: printf("%+f\n", -0.0) generates +0.000000 In-Reply-To: <200208211122.g7LBMJrt092651@freefall.freebsd.org> References: <200208211122.g7LBMJrt092651@freefall.freebsd.org> User-Agent: Wanderlust/2.8.1 (Something) Emacs/21.2 Mule/5.0 (SAKAKI) Organization: Notwork Org. MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org At Wed, 21 Aug 2002 04:22:19 -0700 (PDT), Jens Schweikhardt wrote: > Can you try this patch against -current? (stable should be easy too). > This is what you suggested, I believe, i.e. moving the __dtoa() > before the comparison and using "if (dsgn)" instead of value<0. > This would align us a little closer to NetBSD as you stated. I applied the patch and it looks to be working well. # Btw, OpenBSD has the same problem. I don't use OpenBSD though. # http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/stdio/vfprintf.c?rev=1.17&content-type=text/x-cvsweb-markup Thanks, -- Gotoken http://www.freebsd.org/cgi/query-pr.cgi?pr=41823 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message