X-Recipient: archive-cygwin@delorie.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=oPMZrP2fNtKLjum/040/FsYKJwI5YOD+bWJvldl9PMAmeKOxPKwQ5
	f3ssVtVLB7LmyqAoM+4QxpGSNeh3PlCB9J9WdgtYr+TgGx8r7Oe0GOzp/v6KB8bN
	WkjRnfEjWUsZcHUeCIOMh0dlVP5Mcl8KaNNvhWaS2Clx1oIYLw8l9I=
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=C/0/IcFRvZW3mUgpeNpdU71ym0A=; b=o0jiCMgncrzW+n1k7NbPPCjD0Pl3
	1gBqCQ5yKbElnriTdfo8nCgmLyJMCCheA/Lp2czGOWLSwmGTX21p5q05gxfVWe9d
	XcIf+2wmguejJmuImvo4d3BqoheadLm8sN8SNlvkVUGVO50NEg9uFjXShRbMbHUl
	fbT7AWj2bvUzx80=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
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
Date: Wed, 18 Nov 2015 18:59:58 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: fnmatch() doesn't work with character classes?
Message-ID: <20151118175958.GU6402@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <564C122C.7080608@gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;	protocol="application/pgp-signature"; boundary="7AwgMNpd3VkAVXjS"
Content-Disposition: inline
In-Reply-To: <564C122C.7080608@gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)

--7AwgMNpd3VkAVXjS
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Nov 18 05:52, Dustin Boyd wrote:
> fnmatch() does not appear to work with character classes or character
> equivalents. regcomp(), however, does work with character classes, but
> not character equivalents. Is this behavior one should expect? I've
> tested with Debian, and it matches in both cases.

The behaviour is expected.  Debian uses glibc, Cygwin doesn't.

> I sent this to the Cygwin ML rather than the Newlib ML just because of
> the fact that it may be locale-related, which is a problem on Cygwin's
> end, not Newlib's, if it's a problem at all.

That's right in this case because Cygwin has its own fnmatch and regcomp.
Both are taken from FreeBSD.  So the support for character classes and
character equivalents match what FreeBSD supports.


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--7AwgMNpd3VkAVXjS
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWTLyeAAoJEPU2Bp2uRE+g+GMQAJ8NfIWASzOqltpukTdcY7IB
ighXn16VWoKCv1KK7tgf0/DYQ+Eiva03zkszJ2cS1f1wLs2Vg6A9pCKGyWETmUzp
733RdQ8xzQ/lalVTD73LU5IyK66tVaqxc/HwIH2QKqGD5H7rt2iA7+pcAbxbrmAv
SnCv6+Q9JxzgP3tOPFi+IeBOqiT7DWDJyBF/29Z0eo/0jJWZpgolgRkbVb03w9GJ
nyR5paLHZmDGAi5j/xeyQ5jhT5jfsK4AKfp3bhI1a81o+OjJDODOusjqHYZNsHMf
1Ldr/IUevVgDUZkML/5HIl6v8bDPgkBlIRqHMtcazbmo9EJKlApXLn+vki/ZDvay
Q7BGz7emFp7PutahrQCV2Mnm/nvXRm7HD4kj/kYtcawl2iD2xmJePjqnM6/p35w8
ivZ1kjt2WECBQleFZjOW4wZUN+1zXdtMH9Oat5AHY8S2YZyPG0QGmyZ/yRfbbZfj
smsWJewv/J1t61TJnmJQuC43V1s/qtrFzl/u6hAsvhHDeOmmmmp1D/aF9dDOxLb9
xCtKynY84Fny6yV93RYGsTi+6RsXTGKD9I119fV5oSlVrhizsnjTFsBz5TenZ6LS
3n9S1ovEbDda5AfwZPHGwfa+0/tJeMDP2GAo3BhvZMQuszfgAJoUIvGe71JQvvz3
uKO7JyUHUGlzul8X5gAB
=4+e9
-----END PGP SIGNATURE-----

--7AwgMNpd3VkAVXjS--
