changeset 19743:b228f82192d5

(detect_coding_mask): Re-work previous change. (detect_eol): Fix use of == instead of -.
author Richard M. Stallman <rms@gnu.org>
date Thu, 04 Sep 1997 03:31:10 +0000
parents 89aff48b7ffb
children b1774d359a3d
files src/coding.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;