Bug 38881 - formatted output doesnt work properly in g++
Summary: formatted output doesnt work properly in g++
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: gcc
Version: 7.0
Hardware: i586
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-05-03 07:08 UTC by Need Real Name
Modified: 2007-04-18 16:33 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-05-03 07:08:23 UTC
Embargoed:


Attachments (Terms of Use)

Description Need Real Name 2001-05-03 07:08:20 UTC
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:
Always

Steps to Reproduce:
1. main program test.cpp with
  cout.width(20);          cout.precision(10);     cout << 123.234567 <<
'\n'; 
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 08:09:12 UTC
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
(2.96-81).


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