Skip site navigation (1)Skip section navigation (2)
Date:      21 Apr 2003 02:52:20 -0400
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        current@freebsd.org
Subject:   strxfrm() broken?
Message-ID:  <1050907939.9550.68.camel@shumai.marcuscom.com>

next in thread | raw e-mail | index | archive | help

--=-gdVDdeUjkACaZKr0Sn1L
Content-Type: multipart/mixed; boundary="=-h7c5NgcdDIf3n2NHE3dw"


--=-h7c5NgcdDIf3n2NHE3dw
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

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 it
correctly (actually glib is the one that pointed me this way).  Is there
anything wrong in the attached code, or is strxfrm() truly broken?=20
Thanks.

cc -o xxx2 xxx2.c

Joe

--=20
PGP Key : http://www.marcuscom.com/pgp.asc

--=-h7c5NgcdDIf3n2NHE3dw--

--=-gdVDdeUjkACaZKr0Sn1L
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+o5Ujb2iPiv4Uz4cRAnmrAJ4l0uvGdzbiA3RlJy97pQrbI42JdACfU6Lj
MYPvASBqe8DfRFa5B8vF/oI=
=llq3
-----END PGP SIGNATURE-----

--=-gdVDdeUjkACaZKr0Sn1L--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1050907939.9550.68.camel>