From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14147 invoked by alias); 20 Nov 2002 10:47:16 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 14064 invoked by uid 71); 20 Nov 2002 10:46:50 -0000 Resent-Date: 20 Nov 2002 10:46:49 -0000 Resent-Message-ID: <20021120104649.14063.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, Ioannis.Papadopoulos@cern.ch Received: (qmail 11515 invoked by uid 61); 20 Nov 2002 10:39:37 -0000 Message-Id: <20021120103937.11511.qmail@sources.redhat.com> Date: Thu, 28 Nov 2002 07:14:00 -0000 From: Ioannis.Papadopoulos@cern.ch Reply-To: Ioannis.Papadopoulos@cern.ch To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: libstdc++/8655: Problematic behaviour of std::ends X-SW-Source: 2002-11/txt/msg01098.txt.bz2 List-Id: >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: