comparison src/coding.c @ 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 854a46c2aac5
children bed06df9cbc5
comparison
equal deleted inserted replaced
19742:89aff48b7ffb 19743:b228f82192d5
2688 { 2688 {
2689 /* i.e. (c == ISO_CODE_ESC || c == ISO_CODE_SI || c == ISO_CODE_SO) */ 2689 /* i.e. (c == ISO_CODE_ESC || c == ISO_CODE_SI || c == ISO_CODE_SO) */
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;
2697 } 2697 }
2698 else if (c < 0xA0) 2698 else if (c < 0xA0)
2849 setup_coding_system (Qno_conversion, coding); 2849 setup_coding_system (Qno_conversion, coding);
2850 return; 2850 return;
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;
2858 while (!NILP (coding_system) 2858 while (!NILP (coding_system)
2859 && NILP (val = Fget (coding_system, Qeol_type))) 2859 && NILP (val = Fget (coding_system, Qeol_type)))