libstdc++/8655: Problematic behaviour of std::ends

Ioannis.Papadopoulos@cern.ch Ioannis.Papadopoulos@cern.ch
Thu Nov 28 07:14:00 GMT 2002


>Number:         8655
>Category:       libstdc++
>Synopsis:       Problematic behaviour of std::ends
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 20 02:46:46 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Ioannis.Papadopoulos@cern.ch
>Release:        3.2
>Organization:
>Environment:
Linux
>Description:
Funny behaviour of std::ends when using std::ostringstream

It looks as if a funny character is appended instead of \0
It creates serious problems when one has to extract a C-string.
>How-To-Repeat:
build, and run the attached example and the problems will manifest by themselves. Try to redirect the output to a file and open the file with emacs or nedit to see the funny character that ends inserts.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-prs mailing list