Fix handling of euc-xx coding systems.
[bpt/emacs.git] / src / coding.c
index 6b63d1f..b3a51eb 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++;
                    }