Reported by Aharon Robbins in
<http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
* lib/regexec.c (check_node_accept_bytes):
Return 0 if the pattern string has a multibyte character here.
2012-12-29 Paul Eggert <eggert@cs.ucla.edu>
+ regex: check that pattern char is single-byte
+ Reported by Aharon Robbins in
+ <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
+ * lib/regexec.c (check_node_accept_bytes):
+ Return 0 if the pattern string has a multibyte character here.
+
regex: implement rational ranges
Reported by Aharon Robbins in
<http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
elem_len = re_string_elem_size_at (input, str_idx);
if ((elem_len <= 1 && char_len <= 1) || char_len == 0)
- return 0;
+ {
+ wint_t wc = __btowc (input->mbs[str_idx]);
+ if (wc < SBC_MAX && wc != WEOF)
+ return 0;
+ }
if (node->type == COMPLEX_BRACKET)
{