From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta002.cacentral1.a.cloudfilter.net (omta002.cacentral1.a.cloudfilter.net [3.97.99.33]) by sourceware.org (Postfix) with ESMTPS id 91CA43858D37 for ; Thu, 27 Jul 2023 20:25:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 91CA43858D37 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=Shaw.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=shaw.ca Received: from shw-obgw-4004a.ext.cloudfilter.net ([10.228.9.227]) by cmsmtp with ESMTP id OzBaqfjQk6NwhP7Y9qjrQ3; Thu, 27 Jul 2023 20:25:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=shaw.ca; s=s20180605; t=1690489529; bh=AqAh+h4VkSM2At2HZL6WkOVYTZhO5hJDSIEi6PKIKg4=; h=Date:Reply-To:Subject:To:References:From:In-Reply-To; b=OEkx1wnctmtHuaQgDTFemhQAhTRp/E6Z51R5iUEltKRSgFTW5UxkbA2RETNKeYVrH 6yk5xBnwBsgA7ZsPf5dYQHThhn/mm8t5wS0hwLznkddhwrPeSSg3omt4bfrxsPQ3IH NHJz94S5H1YkNsgTF5SEjTCDGEaKRMIIi8PvWu3itFRn+9rXjE436fKJhjwwlzMcJm qeZz5DRZYEkrRIwPXngYZeOHVX6zZ+06QHLG2a9aal3tBhwys73b5yMxhBYjr1HXCp cgGfLsTBGNtwLFc2a6CrHE20+IlIh5q4mlql6+EBVxIUTPt6nZpfzPCqCHGfZHCZrZ +g90ymrZUECKA== Received: from [10.0.0.5] ([184.64.102.149]) by cmsmtp with ESMTP id P7Y9qXHRz3fOSP7Y9qOdIa; Thu, 27 Jul 2023 20:25:29 +0000 X-Authority-Analysis: v=2.4 cv=J8G5USrS c=1 sm=1 tr=0 ts=64c2d2b9 a=DxHlV3/gbUaP7LOF0QAmaA==:117 a=DxHlV3/gbUaP7LOF0QAmaA==:17 a=IkcTkHD0fZMA:10 a=mNNSp1a5AAAA:8 a=dTgijWl_AAAA:8 a=b4LDLZbEAAAA:8 a=H6bDkBSYi-GIwoxW1sUA:9 a=QEXdDO2ut3YA:10 a=1_ky0-as6soA:10 a=M70lgs1wk-E-hinoK4V4:22 a=20T61YgZp4ItGotXEy2O:22 Message-ID: Date: Thu, 27 Jul 2023 14:25:29 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Reply-To: Brian.Inglis@Shaw.ca Subject: Re: fnmatch improvements Content-Language: en-CA To: Corinna Vinschen via Cygwin , Bruno Haible References: <3884636.3uDm00564X@nimes> From: Brian Inglis Organization: Inglis In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfCjagioQLFHH6JDnuc6xIZodxMsJXli6Tl6hPlk2fsGFWzhhAEQBR4GBp3q+NyWToXalT+VeZCFFC8PBptwOwDK9w9jVPCxAyHXqbpND4HryBkTswygP YiqZwEU0wuywrj6tUM4/nNWFZWIvekYCMzvlR2EvLe0U83FhAzhGTkhBPVNsL/ABjjE/pTFMLqU4RPAifJl5nkfc9DhmkJjjXIQ= X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,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 List-Id: On 2023-07-27 13:05, Corinna Vinschen via Cygwin wrote: > On Jul 27 20:24, Corinna Vinschen via Cygwin wrote: >> On Jul 27 12:15, Bruno Haible via Cygwin wrote: >> I'm looking into that. First thing, your testsuite uncovered a bug in >> the latest fnmatch in the C locale. Comparing pointers instead of >> comparing characters was never a good idea for pattern matching... >> >> When I'm done I hope that our 3.5 fnmatch won't be overridden by the >> gnulib version :} >> >>> 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 > > I fixed the above problem and the POSIX check now works fine: > >>> grep fnmatch log1 > > checking for fnmatch.h... yes > checking for fnmatch... yes > checking for working POSIX fnmatch... yes > > I also extraced the fnmatch configure testcase and ran it manually. > It returns 0 now. But: > >>> grep REPLACE_FNMATCH config.status > > S["REPLACE_FNMATCH"]="1" > > Looks like the reason is that we don't have a uchar.h file? Seems > like this is of interest for AIX, but why should this be of > interest for fnmatch on other systems? It was added in C99 TR19769, integrated in C/++11, available in libicu-devel: https://cplusplus.com/reference/cuchar/ https://open-std.org/jtc1/sc22/open/n3579.pdf https://open-std.org/jtc1/sc22/wg14/www/docs/n1326.pdf https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf#page=416 $ find /usr/include/ -name uchar.h /usr/include/unicode/uchar.h $ cygcheck -f /usr/include/unicode/uchar.h libicu-devel-72.1-1 -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry