Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
3ff2446d
Commit
3ff2446d
authored
Oct 24, 2000
by
Kenichi Handa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(regex_compile): Change the way of handling a range from a char less
than 256 to a char not less than 256.
parent
22d1a4ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
src/regex.c
src/regex.c
+8
-7
No files found.
src/regex.c
View file @
3ff2446d
...
...
@@ -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
=
02
37
;
c1
=
3
7
7
;
}
}
else
if
(
!
SAME_CHARSET_P
(
c
,
c1
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment