X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=rA6lVx21Hc8/hdVxn8JeGELtjccU17l8g4gBQyPFrEwyfcZfVm/Ua 97kEmHvKuDEGiAk6Bmd7wyjX023pNvv7krR0S3+vXWfN0oxt93mq992HcpmfGQ5x B2PzJd7W828kCgGkKaYd4xztOkkb1fe2DOUybI3Bhw3IN9YU3/yLVY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=eUV/PSGPR8DW48eMOyb9FUxSOL0=; b=GaHtTnZSMlh9b1gyRmxceHkvCPK6 D4v6HXvAC9z7yEF5tegMNZrX8yZkfg+8CiLb2/zRoiplCH5hw/6CVIUaTfoDZZO0 Zupmqs7MW2vUGGST4HTb8zGPNvxViRyl0cFiywiQAGowqO3UAb9qBFuIAnAygb/P aXPNptx5u2dgWT0= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-94.9 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_BRBL_LASTEXT,RCVD_IN_PBL,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=ham version=3.3.2 spammy=H*i:sk:2e38312, H*MI:sk:2e38312, H*f:sk:2e38312, late X-HELO: calimero.vinschen.de Date: Tue, 26 Jul 2016 23:37:31 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.6.0-0.2 Message-ID: <20160726213731.GA18002@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <9c9ac779-9101-c7e2-e350-52b2b826f05d AT cornell DOT edu> <20160726173757 DOT GT11373 AT calimero DOT vinschen DOT de> <2e38312b-0ce9-e78b-d755-e32300f9e743 AT cornell DOT edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="C7zPtVaVf+AK4Oqc" Content-Disposition: inline In-Reply-To: <2e38312b-0ce9-e78b-d755-e32300f9e743@cornell.edu> User-Agent: Mutt/1.6.2 (2016-07-01) --C7zPtVaVf+AK4Oqc Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Jul 26 15:30, Ken Brown wrote: > On 7/26/2016 1:37 PM, Corinna Vinschen wrote: > > Now for some testing of the new API...? :) >=20 > There seems to be a collation bug. Here's a test case, extracted from the > emacs test suite: >=20 > $ cat collation_test.c > #include > #include > #include > #include > #include >=20 > int > main (void) > { > locale_t loc =3D newlocale (LC_COLLATE_MASK | LC_CTYPE_MASK, > "en_US.UTF-8", 0); > if (!loc) > { > perror ("newlocale"); > exit (1); > } >=20 > wchar_t *p1 =3D L"xyzzy", *p2 =3D L"XYZZY"; > errno =3D 0; > int res =3D wcscoll_l (p1, p2, loc); > if (errno) > { > perror ("wcscoll_l"); > exit (1); > } > char res_ch =3D res < 0 ? '<' : res > 0 ? '>' : '=3D'; > freelocale (loc); > printf ("\"%ls\" %c \"%ls\" in locale en_US.UTF-8\n", p1, res_ch, p2); > } >=20 > $ gcc collation_test.c >=20 > $ ./a > "xyzzy" > "XYZZY" in locale en_US.UTF-8 Thanks a lot for the testcase. I applied a patch, but it's late here so I create a new testversion tomorrow. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --C7zPtVaVf+AK4Oqc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXl9gbAAoJEPU2Bp2uRE+gHzQQAJ7EhdSNB5X/PnpGcitdMRNu NehZfK2DDFIga81ePFPHXUYDUXA/viVq9x4UDI+7NMw+iKUEuPpfUany3nnr8JeC CeGXsqe+ulPZU1Gpi2CiRGoCzr26RegGtBCD8/kDilR9ybLoTtMWAgm4jAsqmngU aOx7rw+5ZlbfYh4upXzxWQ0KU/L4QgsYKaOhcfgKk8UO819iYQ/LCq04dqvJ9PvI 1cAcs9G1yIweQHb0CT47FsM2VbXvOIdDQimsSJRb9on0XugPoExjFBvP2qiMCbA9 5G4lrktOoAbrpMHOOM9I9zQ9QlO2rtZJBgYfXObIT2xcKc1jRebDJ8tPjVLJRZjW v3/dgdMTmYMRjDDZ4QzXnoFu1ztcjs7NqxNUd6SVUs7YgE9ldFUis4k+nQf+8p3X n18v4Dnl+bN3FDM4qAep65/J7WdGzO5M1thNfVbzEQaWE5Ui7VjgOrx16fiD1ler qMnJC2c3mUULHv2wZ4vHW0MvYjT5hMqIogRtO9iva5eeo6AcF1tAYAfsaDVwRtCT dbBw5LyXIMliYdUnfTY+hzggpIuquqK5OgiaWprRlOliv+3HwZ9xPD+QPJ34QSJx qtcyohIs6S7PuTtjQZwvDxKAFhcNTn4pTorn25BUWv+PVRR4MthiKhhxSKOv0YqT SftjczcPeZ7Jie2cnxBH =0E7c -----END PGP SIGNATURE----- --C7zPtVaVf+AK4Oqc--