Bug 2908

Summary: improper printing of hexadecimal floating point numbers
Product: glibc Reporter: Ram Gupta <ram.gupta5>
Component: libcAssignee: Ulrich Drepper <drepper.fsp>
Status: RESOLVED FIXED    
Severity: normal CC: glibc-bugs
Priority: P2 Flags: fweimer: security-
Version: 2.4   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

Description Ram Gupta 2006-07-12 14:32:42 UTC
This function works incorrectly in case when argument is of
long double type and precision is set to zero.
For example, call
   printf( "%.0LA", ( long double ) 0x0.FFFFp+0 );
will output string "0XP+8" with character number 1 missing
between "X" and "P" instead of "0X1P+0".
Comment 1 Ulrich Drepper 2006-08-03 09:24:55 UTC
Actually, the output contains something between X and P.  It's '\1', not '1'. 
That's fixed now.