emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r99392: regex.c (analyse_first): Fix


From: Kenichi Handa
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r99392: regex.c (analyse_first): Fix setting of fastmap for unibyte pattern string.
Date: Wed, 27 Jan 2010 14:25:10 +0900
User-agent: Bazaar (2.0.2)

------------------------------------------------------------
revno: 99392 [merge]
committer: Kenichi Handa  <address@hidden>
branch nick: trunk
timestamp: Wed 2010-01-27 14:25:10 +0900
message:
  regex.c (analyse_first): Fix setting of fastmap for unibyte pattern string.
modified:
  src/ChangeLog
  src/regex.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2010-01-27 04:08:41 +0000
+++ b/src/ChangeLog     2010-01-27 05:23:52 +0000
@@ -1,3 +1,8 @@
+2010-01-27  Kenichi Handa  <address@hidden>
+
+       * regex.c (analyse_first): Fix setting of fastmap for unibyte
+       pattern string.
+
 2010-01-27  David De La Harpe Golden  <address@hidden>
 
        * fileio.c (Frename_file): Call copy-directory and

=== modified file 'src/regex.c'
--- a/src/regex.c       2010-01-13 08:35:10 +0000
+++ b/src/regex.c       2010-01-27 05:17:35 +0000
@@ -4083,8 +4083,7 @@
                     the corresponding multibyte character.  */
                  int c = RE_CHAR_TO_MULTIBYTE (p[1]);
 
-                 if (! CHAR_BYTE8_P (c))
-                   fastmap[CHAR_LEADING_CODE (c)] = 1;
+                 fastmap[CHAR_LEADING_CODE (c)] = 1;
                }
            }
          break;


reply via email to

[Prev in Thread] Current Thread [Next in Thread]