Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/nvi/dist/regex Fix search for collating symbols...
details: https://anonhg.NetBSD.org/src/rev/adc2d5d1448d
branches: trunk
changeset: 983335:adc2d5d1448d
user: rin <rin%NetBSD.org@localhost>
date: Mon May 17 04:01:57 2021 +0000
description:
Fix search for collating symbols in form of [[.foo.]], as in a similar
manner as already done for POSIX character classes by upstream:
https://github.com/visrc/nvi/commit/fd5795cc9890581b9783a0ff96e0b44d6b38e26a#diff-42d58222b328681b9923634991312932089876a0242f78cf488157aa24969c1a
(We already have this change since initial import to external/bsd/nvi.)
Found by tnozaki. Thanks!
diffstat:
external/bsd/nvi/dist/regex/regcomp.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6ef103a83bf5 -r adc2d5d1448d external/bsd/nvi/dist/regex/regcomp.c
--- a/external/bsd/nvi/dist/regex/regcomp.c Sun May 16 19:42:35 2021 +0000
+++ b/external/bsd/nvi/dist/regex/regcomp.c Mon May 17 04:01:57 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: regcomp.c,v 1.7 2017/11/12 16:33:31 christos Exp $ */
+/* $NetBSD: regcomp.c,v 1.8 2021/05/17 04:01:57 rin Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994 Henry Spencer.
* Copyright (c) 1992, 1993, 1994
@@ -44,7 +44,7 @@
static char sccsid[] = "@(#)regcomp.c 8.4 (Berkeley) 3/19/94";
#endif /* LIBC_SCCS and not lint */
#else
-__RCSID("$NetBSD: regcomp.c,v 1.7 2017/11/12 16:33:31 christos Exp $");
+__RCSID("$NetBSD: regcomp.c,v 1.8 2021/05/17 04:01:57 rin Exp $");
#endif
#include <sys/types.h>
@@ -934,7 +934,7 @@
}
len = p->next - sp;
for (cp = cnames; cp->name != NULL; cp++)
- if (STRLEN(cp->name) == len && MEMCMP(cp->name, sp, len))
+ if (STRLEN(cp->name) == len && !MEMCMP(cp->name, sp, len))
return(cp->code); /* known name */
if (len == 1)
return(*sp); /* single character */
Home |
Main Index |
Thread Index |
Old Index