Bug in STL <iomanip> for strings

Harald Harders Harald.Harders@dlr.de
Wed Apr 21 02:42:00 GMT 1999


Dear egcs-developer,

The use of the <iomanip> function setw(width) does not produce the
expected output when using for variables of the type string. In contrast
using it for variables of the type char* or char[] the ouput is right.

The included program setw_test demonstrates this behaviour.

Compiler version:  gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
OS version:        SuSE linux 5.3 (Intel PC)

Yours
Harald Harders

----------------------------------------------------------------------
 __/|__  Harald Harders              Mail: harald.harders@dlr.de
/_/_/_/  Institut fuer Flugmechanik  Tel : (05 31) 2 95 - 26 78
  |/     Lilienthalplatz 7           Fax : (05 31) 2 95 - 26 47
    DLR  D-38108 Braunschweig        http://www.fm.bs.dlr.de/flugmechanik/
---------------------------------------------------------------------- 


More information about the Gcc-bugs mailing list