]> git.eshelyaron.com Git - emacs.git/commitdiff
coding.c (detect_coding_iso_2022): Fix previous change.
authorKenichi Handa <handa@gnu.org>
Sun, 5 Oct 2014 08:52:04 +0000 (17:52 +0900)
committerKenichi Handa <handa@gnu.org>
Sun, 5 Oct 2014 08:52:04 +0000 (17:52 +0900)
src/coding.c

index 02e59286dc8b88ac2de3b8e93e0091505527065a..f63d710ce9aae1ffc7fca04b3bda873d6b77533b 100644 (file)
@@ -3166,7 +3166,7 @@ detect_coding_iso_2022 (struct coding_system *coding,
          if (inhibit_iso_escape_detection)
            break;
          single_shifting = 0;
-         rejected |= CATEGORY_MASK_ISO_7BIT;
+         rejected |= CATEGORY_MASK_ISO_7BIT | CATEGORY_MASK_ISO_7_ELSE;
          if (CODING_ISO_FLAGS (&coding_categories[coding_category_iso_8_1])
              & CODING_ISO_FLAG_SINGLE_SHIFT)
            {
@@ -3193,9 +3193,9 @@ detect_coding_iso_2022 (struct coding_system *coding,
              single_shifting = 0;
              break;
            }
+         rejected |= CATEGORY_MASK_ISO_7BIT | CATEGORY_MASK_ISO_7_ELSE;
          if (c >= 0xA0)
            {
-             rejected |= CATEGORY_MASK_ISO_7BIT | CATEGORY_MASK_ISO_7_ELSE;
              found |= CATEGORY_MASK_ISO_8_1;
              /* Check the length of succeeding codes of the range
                  0xA0..0FF.  If the byte length is even, we include