From 95cc51cfbd624b3d60d22eb9ccfee071a36dbfb7 Mon Sep 17 00:00:00 2001 From: "Tim J. Robbins" Date: Sun, 4 Jul 2004 16:25:41 +0000 Subject: [PATCH] Fix bug causing `[' to be wrongly included in character class expressions in some multibyte locales (Red Hat bug #108484). Obtained from: Fedora (Tim Waugh) --- gnu/usr.bin/grep/dfa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/usr.bin/grep/dfa.c b/gnu/usr.bin/grep/dfa.c index 21329bc0a6a8..e57aee343086 100644 --- a/gnu/usr.bin/grep/dfa.c +++ b/gnu/usr.bin/grep/dfa.c @@ -588,7 +588,7 @@ parse_bracket_exp_mb () work_mbc->coll_elems[work_mbc->ncoll_elems++] = elem; } } - wc = WEOF; + wc1 = wc = WEOF; } else /* We treat '[' as a normal character here. */