Bug 38881 - formatted output doesnt work properly in g++
formatted output doesnt work properly in g++
Product: Red Hat Linux
Classification: Retired
Component: gcc (Show other bugs)
i586 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2001-05-03 03:08 EDT by Need Real Name
Modified: 2007-04-18 12:33 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-05-03 03:08:23 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2001-05-03 03:08:20 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.75 [en] (X11; U; Linux 2.2.12-32 i686)

Description of problem:
cout.width() doesnt seem to work with float numbers, similarly for setw()

How reproducible:

Steps to Reproduce:
1. main program test.cpp with
  cout.width(20);          cout.precision(10);     cout << 123.234567 <<
2. g++ --version  => 2.96
3. g++ -o test.exe test.cpp,   test.exe

Actual Results:  123.234567  (no leading blanks) 

Expected Results:            123.234567  (leading blanks)

Additional info:
Comment 1 Jakub Jelinek 2001-05-03 04:09:12 EDT
This was fixed soon after 7.0 release, please upgrade to the gcc
(and especially libstdc++) from updates (2.96-69) or to 7.1 gcc

Note You need to log in before you can comment on or make changes to this bug.