# HG changeset patch # User Richard M. Stallman # Date 873343870 0 # Node ID b228f82192d59e3cb588ae918128e9c5bb839820 # Parent 89aff48b7ffbba0e909ef343ff761d6662de98a1 (detect_coding_mask): Re-work previous change. (detect_eol): Fix use of == instead of -. diff -r 89aff48b7ffb -r b228f82192d5 src/coding.c --- a/src/coding.c Thu Sep 04 01:22:26 1997 +0000 +++ b/src/coding.c Thu Sep 04 03:31:10 1997 +0000 @@ -2690,7 +2690,7 @@ /* C is an ISO2022 specific control code of C0. */ mask = detect_coding_iso2022 (src, src_end); src++; - if (mask == CODING_CATEGORY_MASK_ANY) + if (mask == 0) /* No valid ISO2022 code follows C. Try again. */ goto label_loop_detect_coding; mask |= CODING_CATEGORY_MASK_RAW_TEXT; @@ -2851,7 +2851,7 @@ } /* Else, let's decode only text code anyway. */ #endif /* 0 */ - eol_type == CODING_EOL_LF; + eol_type = CODING_EOL_LF; } coding_system = coding->symbol;