Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 40741 invoked from network); 9 Aug 2007 16:38:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Aug 2007 16:38:08 -0000 Received: (qmail 8322 invoked by uid 500); 9 Aug 2007 16:38:06 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 8304 invoked by uid 500); 9 Aug 2007 16:38:06 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 8293 invoked by uid 99); 9 Aug 2007 16:38:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Aug 2007 09:38:06 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Aug 2007 16:38:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3025771417D for ; Thu, 9 Aug 2007 09:37:45 -0700 (PDT) Message-ID: <21282411.1186677465193.JavaMail.jira@brutus> Date: Thu, 9 Aug 2007 09:37:45 -0700 (PDT) From: "Farid Zaripov (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Created: (STDCXX-515) std::basic_streambuf<>::xsputn() writes characters at the end, but not at the current position if reallocation of internal buffer occurs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org std::basic_streambuf<>::xsputn() writes characters at the end, but not at the current position if reallocation of internal buffer occurs ---------------------------------------------------------------------------------------------------------------------------------------- Key: STDCXX-515 URL: https://issues.apache.org/jira/browse/STDCXX-515 Project: C++ Standard Library Issue Type: Bug Components: 27. Input/Output Affects Versions: 4.1.3 Environment: All Reporter: Farid Zaripov Assignee: Farid Zaripov Fix For: 4.2 The test below asserts on i == 512. test.cpp: ------------------ #include #include #include int main () { for (size_t i = 1; i <= 1024; ++i) { std::stringstream strm; std::string s (i, 'a'); strm << s; strm.seekp (-1, std::ios::cur); s.erase (0, 1); strm << "bc"; s.append ("bc"); assert (strm.str () == s); } return 0; } ------------------ The test output: ------------------ test: test.cpp:15: int main (): Assertion `strm.str () == s' failed. Aborted ------------------ -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.