Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 25083 invoked from network); 15 Oct 2007 15:38:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Oct 2007 15:38:42 -0000 Received: (qmail 25589 invoked by uid 500); 15 Oct 2007 15:38:29 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 25564 invoked by uid 500); 15 Oct 2007 15:38:29 -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 25553 invoked by uid 99); 15 Oct 2007 15:38:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Oct 2007 08:38:29 -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; Mon, 15 Oct 2007 15:38:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 010537141EB for ; Mon, 15 Oct 2007 08:37:51 -0700 (PDT) Message-ID: <4392877.1192462671001.JavaMail.jira@brutus> Date: Mon, 15 Oct 2007 08:37:51 -0700 (PDT) From: "Farid Zaripov (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Resolved: (STDCXX-206) std::operator<<(ostream, string) doesn't call width(0) on ios_base::failure In-Reply-To: <11363653.1150986389868.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-206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Farid Zaripov resolved STDCXX-206. ---------------------------------- Resolution: Fixed Fixed thus: http://svn.apache.org/viewvc?rev=584801&view=rev Merged into 4.2.0 branch thus: http://svn.apache.org/viewvc?rev=584805&view=rev > std::operator<<(ostream, string) doesn't call width(0) on ios_base::failure > --------------------------------------------------------------------------- > > Key: STDCXX-206 > URL: https://issues.apache.org/jira/browse/STDCXX-206 > Project: C++ Standard Library > Issue Type: Bug > Components: 21. Strings > Affects Versions: 4.1.3 > Environment: all > Reporter: Anton Pevtsov > Assignee: Farid Zaripov > Priority: Minor > Fix For: 4.2 > > > The following test fails: > #include > #include > #include > #include > int main(int argc, char* argv[]) > { > std::string str ("abcdefghijk"); > char buf[10]; > std::ostrstream os (buf, sizeof(buf)); > const std::streamsize width = 2; > os.width (width); > os.exceptions (std::ios_base::failbit | std::ios_base::badbit); > try { > os << str; > } > catch (std::ios_base::failure&) { > } > assert (0 == os.width ()); > return 0; > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.