aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorTim J. Robbins <tjr@FreeBSD.org>2004-07-04 16:25:41 +0000
committerTim J. Robbins <tjr@FreeBSD.org>2004-07-04 16:25:41 +0000
commit95cc51cfbd624b3d60d22eb9ccfee071a36dbfb7 (patch)
tree3100d72ab1ad2fe8d78882c86ca18fe475349960 /gnu
parentdfbaec0a6d5309b8cef607ae41ebac211455db71 (diff)
downloadsrc-95cc51cfbd624b3d60d22eb9ccfee071a36dbfb7.tar.gz
src-95cc51cfbd624b3d60d22eb9ccfee071a36dbfb7.zip
Fix bug causing `[' to be wrongly included in character class expressions
in some multibyte locales (Red Hat bug #108484). Obtained from: Fedora (Tim Waugh)
Notes
Notes: svn path=/head/; revision=131578
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/grep/dfa.c2
1 files changed, 1 insertions, 1 deletions
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. */