comparison src/coding.c @ 19613:666288d82ae1

(detect_eol): Do not select no-conversion even if EOL format of raw-text file is inconsistent. Just read it by raw-text-unix. (Fdetect_coding_region): Do not select no-conversion even if EOL format of raw-text file is inconsistent.
author Kenichi Handa <handa@m17n.org>
date Thu, 28 Aug 1997 10:54:13 +0000
parents 783efd6c7c1e
children 854a46c2aac5
comparison
equal deleted inserted replaced
19612:783efd6c7c1e 19613:666288d82ae1
2837 2837
2838 if (eol_type == CODING_EOL_INCONSISTENT) 2838 if (eol_type == CODING_EOL_INCONSISTENT)
2839 { 2839 {
2840 #if 0 2840 #if 0
2841 /* This code is suppressed until we find a better way to 2841 /* This code is suppressed until we find a better way to
2842 distinguish raw-text and binary. */ 2842 distinguish raw text file and binary file. */
2843 2843
2844 /* If we have already detected that the coding is raw-text, the 2844 /* If we have already detected that the coding is raw-text, the
2845 coding should actually be no-conversion. */ 2845 coding should actually be no-conversion. */
2846 if (coding->type == coding_type_raw_text) 2846 if (coding->type == coding_type_raw_text)
2847 { 2847 {
3180 = XFASTINT (Fget (XCONS (val2)->car, Qcoding_category_index)); 3180 = XFASTINT (Fget (XCONS (val2)->car, Qcoding_category_index));
3181 if (coding_mask & (1 << idx)) 3181 if (coding_mask & (1 << idx))
3182 { 3182 {
3183 #if 0 3183 #if 0
3184 /* This code is suppressed until we find a better way to 3184 /* This code is suppressed until we find a better way to
3185 distinguish raw-text and binary. */ 3185 distinguish raw text file and binary file. */
3186 3186
3187 if (idx == CODING_CATEGORY_IDX_RAW_TEXT 3187 if (idx == CODING_CATEGORY_IDX_RAW_TEXT
3188 && eol_type == CODING_EOL_INCONSISTENT) 3188 && eol_type == CODING_EOL_INCONSISTENT)
3189 val = Fcons (Qno_conversion, val); 3189 val = Fcons (Qno_conversion, val);
3190 else 3190 else