delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/10/21/06:17:57

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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=WbtVao/rWdYbUYmrpAMSWKCC40snVm1cUHoWaB7SqYT+INiYllQv/
YL1zwTdF+Wc1mlg8q1JXvraBbSYxSOZIQkPeYXxdaFYYIsvw+b+S3VUJDqoUbm//
u9c42IKgoLxDy5pgxYMSmqgnzUGD/sSHvqhBf/TyRumty5BMUKo2M8=
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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=St/MWSBJFU0H+n18Wtda9akjGwU=; b=PIzbMnBPEPl2N3Yulph+2BAqKJVR
v7sz5a0nfhyV7zxC4xY3DFboBnJzbgFqae2U8RatOESxjbRwkNwo3uxBmX8dynfe
BCYy1im9M4mCj6HcEGZuerzg+PeVv4ZHN6m44oo3GfuvSbvZp9xkXpacGzhG95Jt
PZ6zaXi7qw3AeEc=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-5.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2
X-HELO: calimero.vinschen.de
Date: Wed, 21 Oct 2015 12:17:32 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: gawk 4.1.3: warning: gensub: third argument
Message-ID: <20151021101732.GM5319@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <7134EBD742DCBF41BAF3EF2F123CCC6C0AA96A70 AT ORSMSX101 DOT amr DOT corp DOT intel DOT com>
MIME-Version: 1.0
In-Reply-To: <7134EBD742DCBF41BAF3EF2F123CCC6C0AA96A70@ORSMSX101.amr.corp.intel.com>
User-Agent: Mutt/1.5.23 (2014-03-12)

--E6lVPAHcXg6biC3t
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Oct  3 04:59, Westlund, John A wrote:
> I first noticed this issue after an update to gawk 4.1.3. If the third ar=
gument in a call to gensub is bogus a warning is generated where is used to=
 silently pass through:
>=20
> $ echo asdf=C2=A0 | gawk '{print gensub(/a/,"b","")}'
> gawk: cmd. line:1: (FILENAME=3D- FNR=3D1) warning: gensub: third argument=
 `' treated as 1
> bsdf
> $ gawk -V
> GNU Awk 4.1.3, API: 1.1 (GNU MPFR 3.1.3, GNU MP 6.0.0)
> Copyright (C) 1989, 1991-2015 Free Software Foundation.
>=20
> On other gawk versions this is the behavior:
> $ echo asdf | gawk '{print gensub(/a/,"b","")}'
> Bsdf
>=20
> Appears to be resolved by this patch:
> https://www.sourceware.org/ml/libc-alpha/2015-08/msg00269.html

No, that's a patch in glibc to cope with the changed behaviour of gawk
4.1.3.  The upstream change was intentional.


Corinna

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

--E6lVPAHcXg6biC3t
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWJ2Y8AAoJEPU2Bp2uRE+gggwQAI5N5a2VGqX1fmvx/HbL+c2K
QqEfmrsb5xTN+bAA7hp+6F5QlRwUzLUuvblvWYn1k5vUxtrYioY3qUdURWayV0zd
1uZoBDTLSAl8t3QndXL/mzAROXnS9CA5heEO48i5hXbU06dbo0SltLT3FHWJx3jH
1siQz6yglGEitV2YFdm0Xx8EwZLAg0zuRq4psZpGzqwxXXnTTepnzsK40RU9GzbY
+YZvoq6Q/wXHewCpB/qgfX/tnYhlU5NeLQbhGn7LutOEWMHqm9r/NphkZylOJtMY
0Awg6FKEAHTqqKt+u2Rur9C65d0BnJAyjaqinqyBxx1206LTuNFzkF1ZJFZ4rSXv
g+dN1Sm3sNnW2vFsig3bmLdVtacRf//wCOKFqkF06p9IpTsfz/ndthj/D+N7TGhF
R80o8aNRDXfhi9LeUuLWsPDQFUZB1odjj4TIZkYtzXFHEq/ELmGulwJJ97x1o7+I
9TmcGR52j1gI/eRw3yGRQKdlm/0kSSkRHvup2IJca7za0U25MpdRSQLW1VE12n2c
iz4HvPbyArd09tAHO/i3k2PtXw4V6WNR95LffhQC3lXKL7F2kBvOFnr5/R0zIfbQ
iAm808HgHPoE9BW8+FMCkt+MNxGsuHiD8SAdLY/LKwsZGLkK8CPDNpQL0snao1Wu
708mz+crddDeswzAIor+
=nNL1
-----END PGP SIGNATURE-----

--E6lVPAHcXg6biC3t--

- Raw text -


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