From: Jim Meyering Date: Mon, 22 Jul 1996 01:01:10 +0000 (+0000) Subject: (rpmatch): Add back [[:alpha:]]. Drepper says it's the standard. X-Git-Tag: TEXTUTILS-1_19b~114 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a56da10982f7e2227f2041377371642d44d95389;p=thirdparty%2Fcoreutils.git (rpmatch): Add back [[:alpha:]]. Drepper says it's the standard. --- diff --git a/lib/rpmatch.c b/lib/rpmatch.c index a57a0478f1..d3ea353be1 100644 --- a/lib/rpmatch.c +++ b/lib/rpmatch.c @@ -71,8 +71,8 @@ rpmatch (response) static regex_t yesre, nore; int result; - return ((result = try (response, _("^[yY]"), 1, 0, + return ((result = try (response, _("^[yY][[:alpha:]]*"), 1, 0, &yesexpr, &yesre)) ? result - : try (response, _("^[nN]"), 0, -1, &noexpr, &nore)); + : try (response, _("^[nN][[:alpha:]]*"), 0, -1, &noexpr, &nore)); }