From stdcxx-dev-return-3474-apmail-incubator-stdcxx-dev-archive=incubator.apache.org@incubator.apache.org Thu May 24 16:41:02 2007 Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 90044 invoked from network); 24 May 2007 16:41:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 May 2007 16:41:01 -0000 Received: (qmail 52161 invoked by uid 500); 24 May 2007 16:41:07 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 52149 invoked by uid 500); 24 May 2007 16:41: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 52138 invoked by uid 99); 24 May 2007 16:41:06 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 May 2007 09:41: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; Thu, 24 May 2007 09:41: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 l4OGeOxn014416 for ; Thu, 24 May 2007 16:40:24 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: Thu, 24 May 2007 10:39:24 -0600 Message-ID: In-Reply-To: <4654CC24.3090602@roguewave.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: RHAS 4u4 gcc 3.4.6 ctype.narrow failed assertion Thread-Index: AcedkQsFTIzl+Hl1TzaKnA+G0T9YkQAkPFaA References: <46547918.8050500@roguewave.com> <4654CC24.3090602@roguewave.com> From: "Scott Zhong" To: X-Virus-Checked: Checked by ClamAV on apache.org Yes wctype.cpp the library source. In native mode is where the error occurs. -----Original Message----- From: Martin Sebor [mailto:sebor@roguewave.com]=20 Sent: Wednesday, May 23, 2007 5:20 PM To: stdcxx-dev@incubator.apache.org Subject: Re: RHAS 4u4 gcc 3.4.6 ctype.narrow failed assertion Scott Zhong wrote: > 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 You mean wctype.cpp, the library source? During which part of the test does it happen (that might matter for which branch of code gets executed). There are two major "modes" that our locale might be operating in: libc mode (where we use the libc locale data) and native mode (where we use our own locale databases). Martin >=20 > Yu (Scott) Zhong >=20 > -----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 >=20 > Scott Zhong wrote: >> RHAS 4u4 gcc 3.4.6 ctype.narrow failed assertion >=20 > 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. >=20 > Martin >=20 >> There are specific char values that fails widen narrow conversion in > the >> 22.locale.cytpe.narrow test. >> >> http://scottzroguewave.bravehost.com/22.locale.ctype.narrow.cpp=20 >> >> Below shows values that narrow_chars and narrow_out differ after line >> 615 on 22.locale.ctype.narrow.cpp with this function: >> >> 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); >> } >> >> Output: >> >> # 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 >> >> Yu (Scott) Zhong >=20