From witr@rwwa.com  Wed Dec 14 22:05:37 1994
Received: from rwwa.com (rwwa.com [198.115.177.3]) by freefall.cdrom.com (8.6.8/8.6.6) with ESMTP id WAA18208 for <FreeBSD-gnats-submit@freebsd.org>; Wed, 14 Dec 1994 22:05:35 -0800
Received: (from witr@localhost) by rwwa.com (8.6.9/8.6.9) id BAA03004; Thu, 15 Dec 1994 01:04:15 -0500
Message-Id: <199412150604.BAA03004@rwwa.com>
Date: Thu, 15 Dec 1994 01:04:15 -0500
From: Robert Withrow <witr@rwwa.com>
Reply-To: witr@rwwa.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: printf() and friends convert e-type conversions incorrectly
X-Send-Pr-Version: 3.2

>Number:         56
>Category:       gnu
>Synopsis:       printf() and friends convert e-type conversions incorrectly
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    core (FreeBSD core team)
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 14 22:10:00 1994
>Closed-Date:    Fri Mar 10 23:13:36 PST 1995
>Last-Modified:
>Originator:     Robert Withrow
>Release:        FreeBSD 2.0-RELEASE i386
>Organization:
Robert Withrow, Tel: +1 617 598 4480, Fax: +1 617 598 4430
 R.W. Withrow Associates, 319 Lynnway, Lynn MA 01901 USA, Net: witr@rwwa.COM
>Environment:

    

>Description:

    Printf prints the wrong output in the program below.

>How-To-Repeat:

#include <stdio.h>

main()
{
  printf("%.4e %.4f %.4g\n",0.0,0.0,0.0);
}

prints:
  0e+00 0.0000 0

Should print:

  0.0000e+00 0.0000 0

There are lots of other errors of this kind.  For more examples
build and run the TCL 7.3 tests.

>Fix:
	
	

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: bde 
State-Changed-When: Fri Mar 10 23:13:36 PST 1995 
State-Changed-Why:  
Fixed in revision 1.2 of vfprintf.c. 
>Unformatted:



