public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: fnmatch() doesn't work with character classes?
Date: Wed, 18 Nov 2015 18:00:00 -0000	[thread overview]
Message-ID: <20151118175958.GU6402@calimero.vinschen.de> (raw)
In-Reply-To: <564C122C.7080608@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 936 bytes --]

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

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

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

      reply	other threads:[~2015-11-18 18:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-18  5:52 Dustin Boyd
2015-11-18 18:00 ` Corinna Vinschen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151118175958.GU6402@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).