From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 113123 invoked by alias); 29 Oct 2015 07:50:55 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 113086 invoked by uid 89); 29 Oct 2015 07:50:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: calimero.vinschen.de Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 29 Oct 2015 07:50:52 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 5E48FA805F3; Thu, 29 Oct 2015 08:50:50 +0100 (CET) Date: Thu, 29 Oct 2015 12:58:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Bug in collation functions? Message-ID: <20151029075050.GE5319@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <563148AF.1000502@cornell.edu> <5631996D.7040908@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="M2XkPJ45YXpBrBm3" Content-Disposition: inline In-Reply-To: <5631996D.7040908@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-10/txt/msg00529.txt.bz2 --M2XkPJ45YXpBrBm3 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1198 On Oct 28 21:58, Eric Blake wrote: > On 10/28/2015 04:14 PM, Ken Brown wrote: > > It's my understanding that collation is supposed to take whitespace and > > punctuation into account in the POSIX locale but not in other locales. >=20 > Not quite right. It is up to the locale definition whether whitespace > affects collation. But you are correct that in the POSIX locale, > whitespace must not be ignored in collation. >=20 > > This doesn't seem to be the case on Cygwin. Here's a test case using > > wcscoll, but the same problem occurs with strcoll. >=20 > That's because the locale definitions are different in cygwin than they > are in glibc. But it is not a bug in Cygwin; POSIX allows for different > systems to have different locale definitions while still using the same > locale name like en_US.UTF-8. Btw, strcoll and wcscoll in Cygwin are implemented using the Windows function CompareStringW with the LCID set to the locale matching the POSIX locale setting. I'm rather glad I didn't have to implement this by myself... :} Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --M2XkPJ45YXpBrBm3 Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWMc/aAAoJEPU2Bp2uRE+g+RgP/291aqbza2dBYVtvIMprygoD 1Kq02v+gHGiLMIzEYhODQaiAgM8+y/IuOUlvczcNzluu2gAZ7AxyeLROAp4v3zrK 5YkCWfyn7Saxv9iiSHJst1RApfwIHrectsoCbelouu5R9GT3fbcez1uGuBJUwX3i q1LR2j+I5CDVxR0TXBD6Kof9lRONS5+iGvP7834MvMeluk9SO6UPS6XHxl67k4h9 gBA4/5eA/IaWppfRyoscl5DcbE6vOpi+0nfP7xwNvZscfV9NwIclVmTCRQhAkAIQ rlnP7yRsv4DcqAQgyCeqRw//hTmwFZu/kLy/IDm9O/btjO9b4ylIRmZolnqRv6u3 6+j/dEx3Ji2inBghFUGKnxVPTyHrNrBL6JplZzE8nOcHjMF4fERVEIaIUgpFaIKS /eFrjClqPZv/LjDr+7/Kx6g00rhI1m4I6Hq20frp6STmA81v6VG+xrmXxDhfSnY8 QWEvEtPNkwzAJuk26LprIsQqcfiQQhNimDNiWWNIHTEGf8myT69S5qpvwII5ZK2f ZltVQ+CUQzYsiblIJc6NfpOVgDHkeVDLshchDsz2EL2zQessoJBAU7Ijt3aykyDn TrXquAfL++VCSRQ0E6EzXo/gzk3NK1J1Mb+f9X+1cKWB6oKC+RGPyeaLkJIvQWBz ALS7LGkoTP6y1Yofq1nh =bBoh -----END PGP SIGNATURE----- --M2XkPJ45YXpBrBm3--