Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 37242 invoked from network); 23 Jun 2006 20:28:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Jun 2006 20:28:01 -0000 Received: (qmail 3014 invoked by uid 500); 23 Jun 2006 20:28:01 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 2998 invoked by uid 500); 23 Jun 2006 20:28:00 -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 2986 invoked by uid 99); 23 Jun 2006 20:28:00 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jun 2006 13:28:00 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jun 2006 13:28:00 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 09F0741000A for ; Fri, 23 Jun 2006 20:26:32 +0000 (GMT) Message-ID: <24541731.1151094392037.JavaMail.jira@brutus> Date: Fri, 23 Jun 2006 20:26:32 +0000 (GMT+00:00) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Commented: (STDCXX-206) lib.string.io operator << doesn't call width (0) if ios_base::failure exception occurred 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 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/STDCXX-206?page=comments#action_12417554 ] Martin Sebor commented on STDCXX-206: ------------------------------------- See the following posts for background: http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200606.mbox/%3c4499F98E.60505@roguewave.com%3e http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200606.mbox/%3c449C4A43.4060402@roguewave.com%3e > lib.string.io operator << doesn't call width (0) if ios_base::failure exception occurred > ------------------------------------------------------------------------------------------ > > Key: STDCXX-206 > URL: http://issues.apache.org/jira/browse/STDCXX-206 > Project: C++ Standard Library > Type: Bug > Components: 21. Strings > Versions: 4.1.3 > Environment: all > Reporter: Anton Pevtsov > Assignee: Martin Sebor > Priority: Minor > > 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. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira