From e17de8212403a8d5053009e15e1456446c117712 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 30 May 2000 07:40:59 +0000 Subject: [PATCH] (detect_coding_iso2022): Fix code for checking CODING_CATEGORY_MASK_ISO_8_2. --- src/coding.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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); -- 2.39.5