aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorRichard M. Stallman1997-09-04 03:31:10 +0000
committerRichard M. Stallman1997-09-04 03:31:10 +0000
commit1b2af4b0badae7bad8130d27b22a325c6a58d50b (patch)
tree7348d011f6373e1f41ed034db7159c331de631fe /src/coding.c
parentaa5cc10d1a34d7a193b9c67377294cba1e0db0a3 (diff)
downloademacs-1b2af4b0badae7bad8130d27b22a325c6a58d50b.tar.gz
emacs-1b2af4b0badae7bad8130d27b22a325c6a58d50b.zip
(detect_coding_mask): Re-work previous change.
(detect_eol): Fix use of == instead of -.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coding.c b/src/coding.c
index fd092886fbc..e91b763897e 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -2690,7 +2690,7 @@ detect_coding_mask (src, src_bytes)
2690 /* C is an ISO2022 specific control code of C0. */ 2690 /* C is an ISO2022 specific control code of C0. */
2691 mask = detect_coding_iso2022 (src, src_end); 2691 mask = detect_coding_iso2022 (src, src_end);
2692 src++; 2692 src++;
2693 if (mask == CODING_CATEGORY_MASK_ANY) 2693 if (mask == 0)
2694 /* No valid ISO2022 code follows C. Try again. */ 2694 /* No valid ISO2022 code follows C. Try again. */
2695 goto label_loop_detect_coding; 2695 goto label_loop_detect_coding;
2696 mask |= CODING_CATEGORY_MASK_RAW_TEXT; 2696 mask |= CODING_CATEGORY_MASK_RAW_TEXT;
@@ -2851,7 +2851,7 @@ detect_eol (coding, src, src_bytes)
2851 } 2851 }
2852 /* Else, let's decode only text code anyway. */ 2852 /* Else, let's decode only text code anyway. */
2853#endif /* 0 */ 2853#endif /* 0 */
2854 eol_type == CODING_EOL_LF; 2854 eol_type = CODING_EOL_LF;
2855 } 2855 }
2856 2856
2857 coding_system = coding->symbol; 2857 coding_system = coding->symbol;