public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Ioannis.Papadopoulos@cern.ch
To: gcc-gnats@gcc.gnu.org
Subject: libstdc++/8655: Problematic behaviour of std::ends
Date: Thu, 28 Nov 2002 07:14:00 -0000	[thread overview]
Message-ID: <20021120103937.11511.qmail@sources.redhat.com> (raw)


>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:


             reply	other threads:[~2002-11-20 10:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-28  7:14 Ioannis.Papadopoulos [this message]
2002-11-28  8:19 paolo
2002-11-28  8:26 Ioannis Papadopoulos
2002-11-28  9:06 paolo
2002-11-28 11:16 reichelt
2002-11-28 14:49 Ioannis Papadopoulos
2002-11-28 15:03 Wolfgang Bangerth
2002-11-29  0:10 paolo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021120103937.11511.qmail@sources.redhat.com \
    --to=ioannis.papadopoulos@cern.ch \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).