delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/07/27/06:16:17

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ED3CE385AFAD
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1690452974;
bh=ParVO9bJseQ83CWAHtkU41+RlkmSmXQFoTn1Q9ae404=;
h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=jyJ1hY0vKMP6gqnCsVdc6l/JXFeV+d/NP2gjCbV1v5nEZ/LTCCa7F32CCfw8zYm1R
tc0Or+vnqr69cYVxJRVffYj3OKPTkvNVm2fFO/yJqURT4xJVNMdaryDbywmIdOeb0n
nwrwRRmNeZbH4T83A8EKmSMQn3U4hY6y6jH8db6k=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B58773858C2F
ARC-Seal: i=1; a=rsa-sha256; t=1690452955; cv=none;
d=strato.com; s=strato-dkim-0002;
b=h/vYxss+ikmYvD2A+mpsPiSfOrUVU6H/6s/9whLgg3jPejwQvchqZ7McA2ogp2kbVn
wDXxNd9XrswzqvY/bf9+ZIHkNPiAuP2Qprgzo/9YHnAftJOE+Ahw7WredmKcGTjszzEd
waedoiHQT9uEiv2ijCX423km5fJM2pdMqh9aSjuW7Fn5+2u56JEp/qDulQLsd6frZtQ7
w8RM+OzbrzrbGMC+3S/nM0ZzCRhG0Yma/poNQmEEAj3s585V3yxzJJElgW82n5KXXJlm
BC7a5obcdGZxkYNcmTIWMzSfFDIp5Kzv3+SOH4RfpTyNfnT0V0Roehhxjhqes/FHpLQb
mfuw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1690452955;
s=strato-dkim-0002; d=strato.com;
h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender;
bh=gjWncwPlOeIT84Em1Fg1BX3bwv21znJWjJoCOxhDVzk=;
b=pPHhy5M9UWZU3CMWCYjOi4r2o0DahIFxR1qZq8586rrvBa0SpQvePcttiDeRSEzLek
2LRdpmrHh0hjYCcBb2H3d/RU+LkEddwrVb3i6SJn7YpJpU8pDmYjXrjnm1uN9JKOfyH3
aQ7AtzrAPG18dywpC0KPJzCjhkTb1nPLo+fC9v04Xt0UlUxb5rtQATEsLpEI+17TjsnC
EgbaSSKv9W4x7zM7QXijp+g7Uidb5aS/NErlKza0zrSa+G4P3GHYchniiFXPCP7WjHc0
KescrjNuXwEfw6XwT2TvFOZW2J04Ks8EGZzI6lv2TOIVLBhscRqDOPvqGh/BWQK7AY/C
mI0g==
ARC-Authentication-Results: i=1; strato.com;
arc=none;
dkim=none
X-RZG-CLASS-ID: mo00
X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH0WWb0LN8XZoH94zq68+3cfpOU3vHMHGOPJ/ArHF88rp8ePd9i2g=="
To: cygwin AT cygwin DOT com
Subject: fnmatch improvements
Date: Thu, 27 Jul 2023 12:15:54 +0200
Message-ID: <3884636.3uDm00564X@nimes>
MIME-Version: 1.0
X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_SHORT, RCVD_IN_DNSWL_LOW,
RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_NONE, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Bruno Haible via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Bruno Haible <bruno AT clisp DOT org>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

Hi,

Gnulib has, for the first time, an fnmatch() implementation that supports
characters outside the Unicode Basic Multilingual Plane (BMP), even on Cygwin
with its 16-bits wchar_t type. That is, in an UTF-8 locale, e.g.
  fnmatch ("x?y", "x\360\237\230\213y", 0)
now returns 0.

This implementation also implements GNU extensions, as documented in
https://www.gnu.org/software/libc/manual/html_node/Wildcard-Matching.html

Now, I see that in the Cygwin master branch the fnmatch implementation has
been improved, supposedly handling non-BMP characters and character classes
as well.

Therefore I would find it interesting to know whether the Cygwin 3.5.0 fnmatch()
now still gets overridden by the gnulib one and, if no, whether it passes the
gnulib test suite.

I can't easily install a Cygwin 3.5.0 snapshot. If one of you would like to
help, here's how to:
  1. Create an environment for working with a Cygwin 3.5.0 snapshot (from
     March 2023 or newer).
  2. wget https://haible.de/bruno/gnu/testdir-fnmatch.tar.gz
  3. tar xfz testdir-fnmatch.tar.gz
  4. cd testdir-fnmatch-posix
     ./configure 2>&1 | tee log1
     make
     make check
     grep fnmatch log1
     grep REPLACE_FNMATCH config.status
     cd ..
  5. cd testdir-fnmatch-gnu
     ./configure 2>&1 | tee log1
     make
     make check
     grep fnmatch log1
     grep REPLACE_FNMATCH config.status
     cd ..
and provide the build and grep results.

Thanks!

         Bruno




-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019