changeset 32399:3819d0d851cb

(skip_chars): Change the way of handling a range from unibyte char to multibyte char.
author Kenichi Handa <handa@m17n.org>
date Thu, 12 Oct 2000 02:54:26 +0000
parents 7d051f1f92cd
children 7ae01ec91cb3
files src/syntax.c
diffstat 1 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/syntax.c	Thu Oct 12 02:53:21 2000 +0000
+++ b/src/syntax.c	Thu Oct 12 02:54:26 2000 +0000
@@ -1483,17 +1483,18 @@
 		{
 		  if (! SINGLE_BYTE_CHAR_P (c2))
 		    {
-		      /* Handle a range such as \177-\377 in multibyte
-			 mode.  Split that into two ranges, the low
-			 one ending at 0237, and the high one starting
-			 at the smallest character in the charset of
-			 C2 and ending at C2.  */
+		      /* Handle a range starting by a unibyte char and
+			 ending by a multibyte char.  Split
+			 that into two ranges, the low one ending at
+			 0377, and the high one starting at the
+			 smallest character in the charset of C2 and
+			 ending at C2.  */
 		      int charset = CHAR_CHARSET (c2);
 		      int c1 = MAKE_CHAR (charset, 0, 0);
 
 		      char_ranges[n_char_ranges++] = c1;
 		      char_ranges[n_char_ranges++] = c2;
-		      c2 = 0237;
+		      c2 = 0377;
 		    }
 		  while (c <= c2)
 		    {