Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 90196 invoked from network); 29 Jun 2006 22:25:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Jun 2006 22:25:42 -0000 Received: (qmail 63096 invoked by uid 500); 29 Jun 2006 22:25:41 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 63070 invoked by uid 500); 29 Jun 2006 22:25:41 -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 63059 invoked by uid 99); 29 Jun 2006 22:25:41 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jun 2006 15:25:41 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [208.30.140.160] (HELO moroha.quovadx.com) (208.30.140.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jun 2006 15:25:36 -0700 Received: from qxvcexch01.ad.quovadx.com (qxvcexch01.ad.quovadx.com [192.168.170.59]) by moroha.quovadx.com (8.13.6/8.13.4) with ESMTP id k5TMOuEW023375 for ; Thu, 29 Jun 2006 22:24:59 GMT Received: from [10.70.3.113] ([10.70.3.113]) by qxvcexch01.ad.quovadx.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 29 Jun 2006 16:25:37 -0600 Message-ID: <44A45359.6040609@roguewave.com> Date: Thu, 29 Jun 2006 16:25:29 -0600 From: Martin Sebor Organization: Rogue Wave Software User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 X-Accept-Language: en-us, en MIME-Version: 1.0 To: stdcxx-dev@incubator.apache.org Subject: Re: test for lib.string.io References: <4D6A8407B7AC6F4D95B0E55C4E7C4C62047935DD@exmsk.moscow.vdiweb.com> In-Reply-To: <4D6A8407B7AC6F4D95B0E55C4E7C4C62047935DD@exmsk.moscow.vdiweb.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 29 Jun 2006 22:25:37.0783 (UTC) FILETIME=[F2528070:01C69BCA] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Anton Pevtsov wrote: [...] > Martin, another question to your changes. There are the following code > (_ioinsert.cc, line 180): > > else { > __err = _STD::ios_base::badbit; > > #ifndef _RWSTD_NO_EXT_KEEP_WIDTH_ON_FAILURE > __strm.width (0); // reset width only on success > #endif // _RWSTD_NO_EXT_KEEP_WIDTH_ON_FAILURE > } > > But it looks like here should be something like this: > > else { > __err = _STD::ios_base::badbit; > > #ifdef _RWSTD_NO_EXT_KEEP_WIDTH_ON_FAILURE > __strm.width (0); // reset width unconditionally > #endif // _RWSTD_NO_EXT_KEEP_WIDTH_ON_FAILURE > } > > If I have not missed something... I think you are right. Strangely width_test doesn't catch it. [Investigating...] Okay, I see why the test doesn't catch it: because that code path doesn't even get exercised. Thanks for pointing it out! I think I might go ahead and commit these changes sometime over the weekend. Martin