]> git.eshelyaron.com Git - emacs.git/commitdiff
(detect_coding_iso2022): Fix code for checking
authorKenichi Handa <handa@m17n.org>
Tue, 30 May 2000 07:40:59 +0000 (07:40 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 30 May 2000 07:40:59 +0000 (07:40 +0000)
CODING_CATEGORY_MASK_ISO_8_2.

src/coding.c

index cdcf312f60f9acc03d32d16f346439e3568c3a6a..bd2887e6697c1da1452d358a4addecb787dcda5b 100644 (file)
@@ -987,8 +987,6 @@ detect_coding_iso2022 (src, src_end)
            }
          else
            {
-             unsigned char *src_begin = src;
-
              mask &= ~(CODING_CATEGORY_MASK_ISO_7BIT
                        | CODING_CATEGORY_MASK_ISO_7_ELSE);
              mask_found |= CODING_CATEGORY_MASK_ISO_8_1;
@@ -999,7 +997,7 @@ detect_coding_iso2022 (src, src_end)
              if (!single_shifting
                  && mask & CODING_CATEGORY_MASK_ISO_8_2)
                {
-                 int i = 0;
+                 int i = 1;
                  while (src < src_end)
                    {
                      ONE_MORE_BYTE (c);