# HG changeset patch # User Paul Eggert # Date 1356907745 28800 # Node ID f21c2ecfb7d112a0b3afdd57480226727f254c9b # Parent 551d91bcca65cbd2be99056486bdd4df9fca9d76 regex: revert single-byte change * lib/regexec.c (check_node_accept_bytes): Revert previous change to this function. This was alredy fixed in a different way, at bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see and . diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2012-12-30 Paul Eggert + regex: revert single-byte change + * lib/regexec.c (check_node_accept_bytes): Revert previous change + to this function. This was alredy fixed in a different way, at + bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see + and + . + regex: simplify based on Gawk version * lib/regex_internal.c (re_dfa_add_node): Simplify. Reported by Aharon Robbins in diff --git a/lib/regexec.c b/lib/regexec.c --- a/lib/regexec.c +++ b/lib/regexec.c @@ -3858,11 +3858,7 @@ elem_len = re_string_elem_size_at (input, str_idx); if ((elem_len <= 1 && char_len <= 1) || char_len == 0) - { - wint_t wc = __btowc (input->mbs[str_idx]); - if (wc < SBC_MAX && wc != WEOF) - return 0; - } + return 0; if (node->type == COMPLEX_BRACKET) {