From owner-freebsd-current@FreeBSD.ORG Sun Apr 20 23:58:07 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B374837B401 for ; Sun, 20 Apr 2003 23:58:07 -0700 (PDT) Received: from ms-smtp-03.southeast.rr.com (ms-smtp-03.southeast.rr.com [24.93.67.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id D43FC43F85 for ; Sun, 20 Apr 2003 23:58:06 -0700 (PDT) (envelope-from marcus@marcuscom.com) Received: from mail4.nc.rr.com (fe4 [24.93.67.51])h3L6ukMq028947 for ; Mon, 21 Apr 2003 02:56:46 -0400 (EDT) Received: from creme-brulee.marcuscom.com ([66.57.17.158]) by mail4.nc.rr.com with Microsoft SMTPSVC(5.5.1877.757.75); Mon, 21 Apr 2003 02:59:59 -0400 Received: from [192.168.1.4] (shumai.marcuscom.com [192.168.1.4]) h3L6uHaa040632 for ; Mon, 21 Apr 2003 02:56:17 -0400 (EDT) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: current@freebsd.org In-Reply-To: <1050908178.77802.0.camel@shumai.marcuscom.com> References: <1050907939.9550.68.camel@shumai.marcuscom.com> <1050908178.77802.0.camel@shumai.marcuscom.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-f4xZeCrki3Botd0sgT7b" Organization: MarcusCom, Inc. Message-Id: <1050908281.77802.2.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 21 Apr 2003 02:58:01 -0400 X-Spam-Status: No, hits=-39.4 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,QUOTE_TWICE_1,REFERENCES, REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Subject: Re: strxfrm() broken? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Apr 2003 06:58:08 -0000 --=-f4xZeCrki3Botd0sgT7b Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2003-04-21 at 02:56, Joe Marcus Clarke wrote: > On Mon, 2003-04-21 at 02:52, Joe Marcus Clarke wrote: > > I'm posting this to current@ as that's where I first discovered the > > problem. However, -STABLE seems to be affected as well. The attached > > example code demonstrates the problem pretty well. It seems that when > > LANG, LC_ALL, or LC_COLLATE is set to anything other than C or POSIX > > (e.g. en_US.ISO8859-1), strxfrm() returns garbage. I think I'm using i= t > > correctly (actually glib is the one that pointed me this way). Is ther= e > > anything wrong in the attached code, or is strxfrm() truly broken?=20 > > Thanks. > >=20 > > cc -o xxx2 xxx2.c >=20 > Sorry, I don't think the attachment made it. Hopefully it's there now. Gack! Still not there. Okay, it's at: http://www.marcuscom.com/downloads/xxx2.c Sorry. Joe >=20 > Joe >=20 > >=20 > > Joe --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-f4xZeCrki3Botd0sgT7b Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQA+o5Z5b2iPiv4Uz4cRAlE2AJ0R1uecs0ITrjLPpoHEH/VUVQe78wCfepdN ku7QzKQFZgGsKjyNd0Ehd14= =EJFQ -----END PGP SIGNATURE----- --=-f4xZeCrki3Botd0sgT7b--