changeset 57665:b8ccc605c96d

(re_error_msgid): Add an entry for REG_ERANGEX. (regex_compile): Return REG_ERANGEX if appropriate.
author Kenichi Handa <handa@m17n.org>
date Sun, 24 Oct 2004 03:56:51 +0000
parents 4d6eec4c1ef8
children 64d82a5de8e3
files src/regex.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/regex.c	Sun Oct 24 00:25:21 2004 +0000
+++ b/src/regex.c	Sun Oct 24 03:56:51 2004 +0000
@@ -1283,6 +1283,7 @@
     gettext_noop ("Premature end of regular expression"), /* REG_EEND */
     gettext_noop ("Regular expression too big"), /* REG_ESIZE */
     gettext_noop ("Unmatched ) or \\)"), /* REG_ERPAREN */
+    gettext_noop ("Range striding over charsets") /* REG_ERANGEX  */
   };
 
 /* Avoiding alloca during matching, to placate r_alloc.  */
@@ -2871,7 +2872,7 @@
 			  }
 		      }
 		    else if (!SAME_CHARSET_P (c, c1))
-		      FREE_STACK_RETURN (REG_ERANGE);
+		      FREE_STACK_RETURN (REG_ERANGEX);
 		  }
 		else
 		  /* Range from C to C. */