Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 788 invoked from network); 23 May 2007 17:33:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 May 2007 17:33:01 -0000 Received: (qmail 63721 invoked by uid 500); 23 May 2007 17:33:06 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 63701 invoked by uid 500); 23 May 2007 17:33:06 -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 63690 invoked by uid 99); 23 May 2007 17:33:06 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 May 2007 10:33:06 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.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; Wed, 23 May 2007 10:33:00 -0700 Received: from qxvcexch01.ad.quovadx.com ([192.168.170.59]) by moroha.quovadx.com (8.13.6/8.13.6) with ESMTP id l4NHW423013739 for ; Wed, 23 May 2007 17:32:04 GMT X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: RHAS 4u4 gcc 3.4.6 ctype.narrow failed assertion Date: Wed, 23 May 2007 11:31:41 -0600 Message-ID: In-Reply-To: <46547918.8050500@roguewave.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: RHAS 4u4 gcc 3.4.6 ctype.narrow failed assertion Thread-Index: AcedX1Gjd+9QjkP7ToqGMvYf4dGorwAAEzZA References: <46547918.8050500@roguewave.com> From: "Scott Zhong" To: X-Virus-Checked: Checked by ClamAV on apache.org There is a problem with the wchar narrow / widen conversion, specifically wctype.cpp line 812 do_narrow. I can't pinpoint the exact problem currently due to my limited knowledge on current locale and facet structures in stdcxx. =20 Yu (Scott) Zhong -----Original Message----- From: Martin Sebor [mailto:sebor@roguewave.com]=20 Sent: Wednesday, May 23, 2007 11:26 AM To: stdcxx-dev@incubator.apache.org Subject: Re: RHAS 4u4 gcc 3.4.6 ctype.narrow failed assertion Scott Zhong wrote: > RHAS 4u4 gcc 3.4.6 ctype.narrow failed assertion I'm not sure I follow what you're trying to tell us here. What problem are you pointing out? A bug in the test itself or one in the library? If you feel there is a problem in the ctype facet a better way to explain it would be to put together a small isolated test case. Martin >=20 > There are specific char values that fails widen narrow conversion in the > 22.locale.cytpe.narrow test. >=20 > http://scottzroguewave.bravehost.com/22.locale.ctype.narrow.cpp=20 >=20 > Below shows values that narrow_chars and narrow_out differ after line > 615 on 22.locale.ctype.narrow.cpp with this function: >=20 > for(int k =3D 0; k < sizeof narrow_chars; k++) > { > int a =3D (reinterpret_cast char*>(narrow_chars))[k]; > int b =3D (reinterpret_cast char*>(narrow_out))[k]; > if (a !=3D b) > rw_info(0,0,__LINE__,"narrow_chars: %i, narrow_out: %i", > a, b); > } >=20 > Output: >=20 > # TEXT: narrow_chars: 96, narrow_out: 166 > # TEXT: narrow_chars: 97, narrow_out: 168 > # TEXT: narrow_chars: 164, narrow_out: 172 > # TEXT: narrow_chars: 125, narrow_out: 180 > # TEXT: narrow_chars: 126, narrow_out: 184 > # TEXT: narrow_chars: 82, narrow_out: 188 > # TEXT: narrow_chars: 83, narrow_out: 189 > # TEXT: narrow_chars: 120, narrow_out: 190 >=20 > Yu (Scott) Zhong