head 1.3; access; symbols pkgsrc-2013Q2:1.3.0.20 pkgsrc-2013Q2-base:1.3 pkgsrc-2012Q4:1.3.0.18 pkgsrc-2012Q4-base:1.3 pkgsrc-2011Q4:1.3.0.16 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q2:1.3.0.14 pkgsrc-2011Q2-base:1.3 pkgsrc-2009Q4:1.3.0.12 pkgsrc-2009Q4-base:1.3 pkgsrc-2008Q4:1.3.0.10 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.8 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.6 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.4 pkgsrc-2008Q2-base:1.3 pkgsrc-2008Q1:1.3.0.2 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.2.0.28 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.26 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.24 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.22 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.20 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.18 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.16 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.14 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.12 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.10 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.8 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.6 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.2.0.4 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.2 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.1.0.8 pkgsrc-2004Q2-base:1.1 pkgsrc-2004Q1:1.1.0.6 pkgsrc-2004Q1-base:1.1 pkgsrc-2003Q4:1.1.0.4 pkgsrc-2003Q4-base:1.1 netbsd-1-6-1:1.1.0.2 netbsd-1-6-1-base:1.1; locks; strict; comment @# @; 1.3 date 2008.03.08.12.16.43; author tnn; state dead; branches; next 1.2; 1.2 date 2004.07.06.20.36.58; author bouyer; state Exp; branches; next 1.1; 1.1 date 2002.12.25.19.50.35; author wiz; state Exp; branches; next ; desc @@ 1.3 log @Update to grep-2.5.3. Main changes are move to GPLv3 and several updated translations. Also some bugfixes (at least the ones we had patched in pkgsrc). Sorry, not more specific because NEWS isn't properly maintained. @ text @$NetBSD: patch-ab,v 1.2 2004/07/06 20:36:58 bouyer Exp $ --- src/dfa.c.orig 2001-09-26 18:57:55.000000000 +0200 +++ src/dfa.c 2004-07-06 22:33:02.000000000 +0200 @@@@ -44,7 +44,7 @@@@ # include #endif -#if defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H && defined HAVE_MBRTOWC +#if defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H && defined HAVE_MBRTOWC && defined HAVE_WCTYPE /* We can handle multibyte string. */ # define MBS_SUPPORT #endif @@@@ -1052,12 +1052,17 @@@@ setbit_case_fold (c, ccl); } else { /* POSIX locales are painful - leave the decision to libc */ - char expr[6] = { '[', c, '-', c2, ']', '\0' }; + char expr[6] = { '[', '\0', '-', '\0', ']', '\0' }; regex_t re; + + expr[1] = c; + expr[3] = c2; if (regcomp (&re, expr, case_fold ? REG_ICASE : 0) == REG_NOERROR) { for (c = 0; c < NOTCHAR; ++c) { - char buf[2] = { c, '\0' }; + char buf[2] = { '\0', '\0' }; regmatch_t mat; + + buf[0] = c; if (regexec (&re, buf, 1, &mat, 0) == REG_NOERROR && mat.rm_so == 0 && mat.rm_eo == 1) setbit_case_fold (c, ccl); @ 1.2 log @Apply patch from http://lists.gnu.org/archive/html/bug-gnu-utils/2002-03/msg00359.html requested by Georg Schwarz in private mail: make it compile with non-gcc compilers. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.1 2002/12/25 19:50:35 wiz Exp $ @ 1.1 log @Honor GNU_PROGRAM_PREFIX, patch by Jeremy C. Reed. While here: Fix build on NetBSD-current. @ text @d1 1 a1 1 $NetBSD$ d3 3 a5 3 --- src/dfa.c.orig Wed Sep 26 18:57:55 2001 +++ src/dfa.c @@@@ -44,7 +44,7 @@@@ extern void free(); d14 20 @