diff options
author | Kenichi Handa <handa@m17n.org> | 2000-10-24 08:10:27 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 2000-10-24 08:10:27 +0000 |
commit | 71bf63b41e5a99f8706f1e7a30d77cafb25122fd (patch) | |
tree | 567fde62846ac92a80704ca50025e60d48131dc1 /src/regex.c | |
parent | 0ecdf17c44bb46865ec675b1fae11c5ae83b3fe4 (diff) | |
download | emacs-71bf63b41e5a99f8706f1e7a30d77cafb25122fd.tar.gz |
(regex_compile): Change the way of handling a range from a char less
than 256 to a char not less than 256.
Diffstat (limited to 'src/regex.c')
-rw-r--r-- | src/regex.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/regex.c b/src/regex.c index 2001f9af473..1f6b8a2c1ca 100644 --- a/src/regex.c +++ b/src/regex.c @@ -2598,18 +2598,19 @@ regex_compile (pattern, size, syntax, bufp) { if (! SINGLE_BYTE_CHAR_P (c1)) { - /* 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 C1 and - ending at C1. */ + /* Handle a range starting with a + character of less than 256, and ending + with a character of not less than 256. + Split that into two ranges, the low one + ending at 0377, and the high one + starting at the smallest character in + the charset of C1 and ending at C1. */ int charset = CHAR_CHARSET (c1); int c2 = MAKE_CHAR (charset, 0, 0); SET_RANGE_TABLE_WORK_AREA (range_table_work, c2, c1); - c1 = 0237; + c1 = 377; } } else if (!SAME_CHARSET_P (c, c1)) |