From: Kenichi Handa Date: Tue, 30 May 2000 07:40:59 +0000 (+0000) Subject: (detect_coding_iso2022): Fix code for checking X-Git-Tag: emacs-pretest-21.0.90~3627 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e17de8212403a8d5053009e15e1456446c117712;p=emacs.git (detect_coding_iso2022): Fix code for checking CODING_CATEGORY_MASK_ISO_8_2. --- diff --git a/src/coding.c b/src/coding.c index cdcf312f60f..bd2887e6697 100644 --- a/src/coding.c +++ b/src/coding.c @@ -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);