delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/07/21/22:59:54

X-Recipient: archive-cygwin AT delorie DOT 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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=x8QXJBgU7E98C12LJNkTjHj44uwNqBmizg8FY2bBeGR
LiZLdipoYCuDWNFvxuqVcvuX48J+K9Txz2wm9xaV/vzLtnvVgPc3oIJllFzQbRfS
pAnJ/kg7WTh6481ofDyFTLmWfEvpeb6uyddzXpyjF4mB9dBleDeQNNYn4Aap1DIw
=
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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=c/LCPpJVAgtVOYl+N42WRVUHMYw=; b=ECbXicsMayM2CmWIo
uH+j90uomrL+9c5Pl7iHFQB10FrpAEsJQRIeaAYs/I3CpXkAXDglqzsfVXF7dSLX
ys28JYcY0sLktgHfBbRVcjTzTLb0ydlZDboNr1EB6jTPneLNjVksmM5aHkMcMa6j
4tA5I8r4Jo1LmxDTIzRWM9bN8A=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,RDNS_NONE,SPF_PASS autolearn=ham version=3.3.1
X-Received: by 10.229.146.5 with SMTP id f5mr7157843qcv.0.1374461968692; Sun, 21 Jul 2013 19:59:28 -0700 (PDT)
Message-ID: <51ECA00D.6030105@gmail.com>
Date: Sun, 21 Jul 2013 22:59:25 -0400
From: Mark Levedahl <mlevedahl AT gmail DOT com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: regex library fails git tests
References: <ksepor$cag$1 AT ger DOT gmane DOT org> <20130721193953 DOT GC2661 AT calimero DOT vinschen DOT de>
In-Reply-To: <20130721193953.GC2661@calimero.vinschen.de>

On 07/21/2013 03:39 PM, Corinna Vinschen wrote:

> So, what I did now was this:  I added a workaround to Cygwin's regcomp.
> If the current codeset is ASCII, the characters in the pattern are
> converted to wchar_t by simply using their unsigned value verbatim.
> This allows to compile (and test) the patterns in the git testcases.
>
> However, please note that this behaviour, while being provided by glibc
> and now by Cygwin, is *not* standards-compliant.  In the narrow sense
> the characters beyond 0x7f are still invalid ASCII chars, and other
> functions working with wchar_t strings won't be as forgiving when using
> invalid input.
>
>
> HTH,
> Corinna
>

Thank you. I confirm that git passes the two test cases (t4018 and 
t4034) using today's snapshot. I will pass your comments about use of 
characters 0x80 and above to the git list to see if they wish to change 
anything.

Mark



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

- Raw text -


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