Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 1433 invoked from network); 30 May 2007 00:40:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 May 2007 00:40:43 -0000 Received: (qmail 95958 invoked by uid 500); 30 May 2007 00:40:40 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 95946 invoked by uid 500); 30 May 2007 00:40:40 -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 95929 invoked by uid 99); 30 May 2007 00:40:40 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 May 2007 17:40:40 -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; Tue, 29 May 2007 17:40:35 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C122171417D for ; Tue, 29 May 2007 17:40:15 -0700 (PDT) Message-ID: <15063665.1180485615788.JavaMail.jira@brutus> Date: Tue, 29 May 2007 17:40:15 -0700 (PDT) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Closed: (STDCXX-233) std::strstreambuf::seekpos() fails to properly position get sequence In-Reply-To: <4386464.1151522969863.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Sebor closed STDCXX-233. ------------------------------- Resolution: Fixed The test case passes with the latest trunk. The test mentioned in the issue has moved to a test named 27_setbuf.cpp (not in svn yet) and that one passes as well, so the problem must have been fixed a long time ago. Closing. > std::strstreambuf::seekpos() fails to properly position get sequence > -------------------------------------------------------------------- > > Key: STDCXX-233 > URL: https://issues.apache.org/jira/browse/STDCXX-233 > Project: C++ Standard Library > Issue Type: Bug > Components: 27. Input/Output > Affects Versions: 4.2 > Reporter: Martin Sebor > Assignee: Martin Sebor > > Moved from the Rogue Wave bug tracking database: > ****Created By: sebor @ Jul 01, 2000 08:28:15 PM**** > This program fails with exit status of 1. It exits successfully (with 0) when std::strstreambuf is replaced with std::stringbuf. I don't see anything in D.7.1 that would require this behavior. Looks like a bug... > The (enhanced) regress/test_bug10430.cpp exercises this bug and fails as a result. > #include > int main () > { > std::strstreambuf sb; > sb.sputn ("a", 1); > sb.pubseekpos (0); > char buf[2] = { 'X', 'Y' }; > return !( 1 == sb.sgetn (buf, sizeof buf) > && 'a' == buf [0] && 'Y' == buf [1]); > } > ****Modified By: sebor @ Nov 28, 2000 10:09:20 PM**** > $ cat test_bug10430.out > ## ------------------------------- > ## TestTag = RWQETest test_bug10430 > ## CompilerId = g++-2.95.2 > ## MachineId = SunOS killer 5.7 Generic_106541-12 sun4u sparc SUNW,Ultra-4 > ## Remark = > ## RunTag = test_bug10430 regression test > ## FunctionTag = Issue #10430 -- streambufs delete passed in buffers. > ## StepTag = stringbuf > ## StepTag = filebuf > ## StepTag = wstringstream > ## StepTag = wfilebuf > ## StepTag = strstreambuf > ## - AssertionTag = strstreambuf::sgetn ("", 11) == 11 (got 11) > ## - FileName = /build2/sebor/dev/stdlib/tests/regress/test_bug10430.cpp > ## - LineNumber = 102 > ## - AssertionTag = strstreambuf::sgetn ("", 11); expected "0123456789" > ## - FileName = /build2/sebor/dev/stdlib/tests/regress/test_bug10430.cpp > ## - LineNumber = 107 > ## - AssertionTag = strstreambuf::setbuf (0, 0) must have no effect > ## - FileName = /build2/sebor/dev/stdlib/tests/regress/test_bug10430.cpp > ## - LineNumber = 113 > ## - AssertionTag = strstreambuf::sgetn ("", 11) == 11 (got 0) > ## - FileName = /build2/sebor/dev/stdlib/tests/regress/test_bug10430.cpp > ## - LineNumber = 121 > ## - AssertionTag = strstreambuf::sgetn ("", 11); expected "0123456789" > ## - FileName = /build2/sebor/dev/stdlib/tests/regress/test_bug10430.cpp > ## - LineNumber = 126 > ## - AssertionTag = strstreambuf<>::setbuf (63720, 1) must fail > ## - FileName = /build2/sebor/dev/stdlib/tests/regress/test_bug10430.cpp > ## - LineNumber = 133 > ## - AssertionTag = strstreambuf<>::setbuf (63720, 1) must succeed > ## - FileName = /build2/sebor/dev/stdlib/tests/regress/test_bug10430.cpp > ## - LineNumber = 142 > ## - AssertionTag = strstreambuf<>::setbuf (63720, 12) must succeed > ## - FileName = /build2/sebor/dev/stdlib/tests/regress/test_bug10430.cpp > ## - LineNumber = 151 > ## - AssertionTag = strstreambuf<>::setbuf (63720, 22) must succeed > ## - FileName = /build2/sebor/dev/stdlib/tests/regress/test_bug10430.cpp > ## - LineNumber = 160 > ## Assertions = 75 > ## FailedAssertions = 9 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.