diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/regex.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 96dc0066fd9..1b1a9c1ee73 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-01-27 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | * regex.c (analyse_first): Fix setting of fastmap for unibyte | ||
| 4 | pattern string. | ||
| 5 | |||
| 1 | 2010-01-25 Jan Djärv <jan.h.d@swipnet.se> | 6 | 2010-01-25 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 7 | ||
| 3 | * xfns.c (Fx_create_frame): If frame height is too big, try | 8 | * xfns.c (Fx_create_frame): If frame height is too big, try |
diff --git a/src/regex.c b/src/regex.c index 0dbfa5971b3..bb921a5b519 100644 --- a/src/regex.c +++ b/src/regex.c | |||
| @@ -4083,8 +4083,7 @@ analyse_first (p, pend, fastmap, multibyte) | |||
| 4083 | the corresponding multibyte character. */ | 4083 | the corresponding multibyte character. */ |
| 4084 | int c = RE_CHAR_TO_MULTIBYTE (p[1]); | 4084 | int c = RE_CHAR_TO_MULTIBYTE (p[1]); |
| 4085 | 4085 | ||
| 4086 | if (! CHAR_BYTE8_P (c)) | 4086 | fastmap[CHAR_LEADING_CODE (c)] = 1; |
| 4087 | fastmap[CHAR_LEADING_CODE (c)] = 1; | ||
| 4088 | } | 4087 | } |
| 4089 | } | 4088 | } |
| 4090 | break; | 4089 | break; |