]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix handling of euc-xx coding systems.
authorKenichi Handa <handa@m17n.org>
Thu, 14 Jan 2010 11:31:16 +0000 (20:31 +0900)
committerKenichi Handa <handa@m17n.org>
Thu, 14 Jan 2010 11:31:16 +0000 (20:31 +0900)
src/ChangeLog
src/coding.c

index 57dcaa4af6ef1b848119b49017cc6586d503d28d..e18591b345b4ba2ef6b27742db765425470d6b16 100644 (file)
@@ -1,3 +1,8 @@
+2010-01-14  Kenichi Handa  <handa@m17n.org>
+
+       * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
+       systems.
+
 2010-01-14  Kenichi Handa  <handa@m17n.org>
 
        Make auto-composition work on all buffers even if they are
index 6b63d1f1a42fcd249a642b24838ac5e4f2dda676..b3a51eb0c4cb66a23b28bb2c902f94fca09c7fb3 100644 (file)
@@ -3239,9 +3239,13 @@ detect_coding_iso_2022 (coding, detect_info)
                  int i = 1;
                  while (src < src_end)
                    {
+                     src_base = src;
                      ONE_MORE_BYTE (c);
                      if (c < 0xA0)
-                       break;
+                       {
+                         src = src_base;
+                         break;
+                       }
                      i++;
                    }