X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 61CC33881D03
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1676315053;
	bh=Up3Tt+SPgdjQc6lZNSpz4XTh7kOjdM3a7ODOXlzm/Do=;
	h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
	 From;
	b=PP6RjyQMRkvbqnCc6LvAsQqYWYhWYsn0G/j12GpC27ZEO66CExmzzf0pyVcm8bVEg
	 +aCmWFLXuNW+KSi8kuCyAZgsFlBZy35/PrpqtFLRQ97iQ7YKjJ5ieMsDohJOpcuQdx
	 nYA4RNyh9MsZ+mTAD7QlWSuWe28PoCdmHQYVCTkA=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AC52838432D6
X-Authority-Analysis: v=2.4 cv=XZqaca15 c=1 sm=1 tr=0 ts=63ea8984
 a=DxHlV3/gbUaP7LOF0QAmaA==:117 a=DxHlV3/gbUaP7LOF0QAmaA==:17
 a=IkcTkHD0fZMA:10 a=HOvN0roOp5ukEXjwcb8A:9 a=QEXdDO2ut3YA:10
Message-ID: <8a583e14-b413-d1a2-35d9-e76f73a4b338@Shaw.ca>
Date: Mon, 13 Feb 2023 12:03:31 -0700
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
 Thunderbird/102.7.2
Subject: Re: [ANNOUNCEMENT] Updated: dash 0.5.12-2
Content-Language: en-CA
To: cygwin@cygwin.com
References: <announce.20230212220325.5447-1-Brian.Inglis@Shaw.ca>
 <Y+oBUDYR+cFCx3Fw@calimero.vinschen.de> <6810586169.20230213204858@yandex.ru>
Organization: Inglis
In-Reply-To: <6810586169.20230213204858@yandex.ru>
X-CMAE-Envelope: MS4xfHKB2jTxEKnGwI4n8x6QuWeLgwhxqpYYPgnuQsXmYfoRwuE1RFu4OrATSTniSwncUNGVX2hNGOGfYT/kmAM4lz/ckA1nmRGC5/PYttFz+C4HeL1mfAUU
 3ncAeke+ba8jG0qZWF8PcUdqJdjqpwPVFj6WsesaeyjKU21b+Me8zaLWY/7RkcQvfjOJhKgJimTY7g==
X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_NUMSUBJECT, NICE_REPLY_A,
 RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS,
 TXREP 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@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Brian Inglis via Cygwin <cygwin@cygwin.com>
Reply-To: cygwin@cygwin.com
Cc: Brian Inglis <Brian.Inglis@Shaw.ca>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 31DJ4csp008872

On 2023-02-13 10:43, ASSI via Cygwin wrote:
> Corinna Vinschen via Cygwin writes:
>> On Feb 12 22:03, Cygwin dash Co-Maintainer wrote:
>>> The following packages have been upgraded in the Cygwin distribution:
>>>
>>> * dash        0.5.12-2
>>>
>>> This package is being upgraded to current as the previous release
>>> breaks existing function that may be relied on by some scripts.
>>> This release has been rebuilt disabling libc fnmatch and glob as
>>> Cygwin/winsup/newlib do not support locale dependent named character
>>> classes like glibc.

>> Can you give me an example?  I'm a bit puzzled because fnmatch as well
>> as glob in Cygwin support native characters.

But not locale dependent named character classes like regexp in paths.

> AFAIU, the issue was with locale dependent character classes, not
> characters. Andrey specifically mentioned [[:space:]] in the original
> bugreport.

Specifically support in fnmatch and glob, now updated in glibc, and their use in 
dash for parameter expansion in place of (gnulib?) regexp support.

>> So how do we fix in Cygwin without pulling in GLibc code?

It's fixed in release 2 which disables 0.5.12 changed default (using 
[Cygwin/winsup/newlib] libc fnmatch and glob, without testing functionality), 
and goes back to using its own previous default (gnulib?) regexp code for 
parameter expansion which supports locale dependent named character classes.

As glibc "recently" fixed their fnmatch and glob to support locale dependent 
named character classes like [[:blank:]], dash decided to use those in parameter 
expansions for consistency, but not exactly clearly documented, although they 
added config options to enable/disable each of libc fnmatch/glob.

Cygwin bash parameter expansion also supports locale dependent named character 
classes.

	$ info bash pattern
	$ info sed classes

-- 
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

-- 
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

