diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-09-19 03:00:06 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-09-19 03:00:06 +0000 |
commit | 9303af82a9d83599e91ca10c83cad764930897c6 (patch) | |
tree | f800abec8cad39f8736b27c33b48f51a7b24fbf8 /src | |
parent | a33b0392e3d8a5717cd23c46789e40a47fb835ae (diff) | |
download | emacs-9303af82a9d83599e91ca10c83cad764930897c6.tar.gz |
(regex_compile): Use TRANSLATE before calling SET_LIST_BIT.
Diffstat (limited to 'src')
-rw-r--r-- | src/regex.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/regex.c b/src/regex.c index 9d8d2d489fd..4f222a5e42e 100644 --- a/src/regex.c +++ b/src/regex.c @@ -2083,23 +2083,24 @@ regex_compile (pattern, size, syntax, bufp) for (ch = 0; ch < 1 << BYTEWIDTH; ch++) { + int translated = TRANSLATE (ch); /* This was split into 3 if's to avoid an arbitrary limit in some compiler. */ if ( (is_alnum && ISALNUM (ch)) || (is_alpha && ISALPHA (ch)) || (is_blank && ISBLANK (ch)) || (is_cntrl && ISCNTRL (ch))) - SET_LIST_BIT (ch); + SET_LIST_BIT (translated); if ( (is_digit && ISDIGIT (ch)) || (is_graph && ISGRAPH (ch)) || (is_lower && ISLOWER (ch)) || (is_print && ISPRINT (ch))) - SET_LIST_BIT (ch); + SET_LIST_BIT (translated); if ( (is_punct && ISPUNCT (ch)) || (is_space && ISSPACE (ch)) || (is_upper && ISUPPER (ch)) || (is_xdigit && ISXDIGIT (ch))) - SET_LIST_BIT (ch); + SET_LIST_BIT (translated); } had_char_class = true; } |