Bug 56

Summary: printf() and friends convert e-type conversions incorrectly
Product: Base System Reporter: Robert Withrow <witr>
Component: gnuAssignee: FreeBSD Core Team <core>
Status: Closed FIXED    
Severity: Affects Only Me CC: contacto2
Priority: Normal    
Version: 2.0-RELEASE   
Hardware: Any   
OS: Any   

Description Robert Withrow 1994-12-14 22:10:00 UTC
    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.
Comment 1 Bruce Evans freebsd_committer freebsd_triage 1995-03-11 07:13:36 UTC
State Changed
From-To: open->closed

Fixed in revision 1.2 of vfprintf.c.
Comment 2 Zarato 2019-03-11 14:07:33 UTC
MARKED AS SPAM