changeset 16239:c196d1ded35c

(regex_compile): Use TRANSLATE before calling SET_LIST_BIT.
author Richard M. Stallman <rms@gnu.org>
date Thu, 19 Sep 1996 03:00:06 +0000
parents 75913ae7ac7e
children b448d7632094
files src/regex.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/regex.c	Wed Sep 18 22:57:51 1996 +0000
+++ b/src/regex.c	Thu Sep 19 03:00:06 1996 +0000
@@ -2083,23 +2083,24 @@
 
 			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;
 		      }