This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
libstdc++/8655: Problematic behaviour of std::ends
- From: Ioannis dot Papadopoulos at cern dot ch
- To: gcc-gnats at gcc dot gnu dot org
- Date: 20 Nov 2002 10:39:37 -0000
- Subject: libstdc++/8655: Problematic behaviour of std::ends
- Reply-to: Ioannis dot Papadopoulos at cern dot ch
>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: