Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 37344 invoked from network); 30 Jun 2006 19:26:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Jun 2006 19:26:13 -0000 Received: (qmail 31650 invoked by uid 500); 30 Jun 2006 19:26:13 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 31591 invoked by uid 500); 30 Jun 2006 19:26:12 -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 31407 invoked by uid 99); 30 Jun 2006 19:26:12 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jun 2006 12:26:12 -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, 30 Jun 2006 12:26:09 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9C3F2410346 for ; Fri, 30 Jun 2006 19:24:30 +0000 (GMT) Message-ID: <10074628.1151695470637.JavaMail.jira@brutus> Date: Fri, 30 Jun 2006 19:24:30 +0000 (GMT+00:00) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Updated: (STDCXX-205) std::operator<<(ostream, string) calls width(0) regardless of sentry In-Reply-To: <26974199.1150887149834.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-205?page=all ] Martin Sebor updated STDCXX-205: -------------------------------- Summary: std::operator<<(ostream, string) calls width(0) regardless of sentry (was: lib.string.io operator << calls width (0) in any case regardless of the sentry object truth) > std::operator<<(ostream, string) calls width(0) regardless of sentry > -------------------------------------------------------------------- > > Key: STDCXX-205 > URL: http://issues.apache.org/jira/browse/STDCXX-205 > Project: C++ Standard Library > Type: Bug > Components: 21. Strings > Versions: 4.1.3 > Environment: all > Reporter: Anton Pevtsov > Priority: Minor > > The following test fails: > #include > #include > #include > #include > int main(int argc, char* argv[]) > { > std::string str ("abcdefghijk"); > std::ostringstream os; > const std::streamsize width = 2; > os.width (width); > os.clear (std::ios_base::failbit); > os << str; > assert (os.width () == 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