Mercurial > emacs
comparison src/coding.c @ 101197:ee5f395f3c19
(detect_coding_system): Fix handling of null_byte_fount.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 15 Jan 2009 07:09:26 +0000 |
parents | 198d8bf06a4f |
children | 589af07b7af1 |
comparison
equal
deleted
inserted
replaced
101196:d0e7051166db | 101197:ee5f395f3c19 |
---|---|
7903 } | 7903 } |
7904 } | 7904 } |
7905 } | 7905 } |
7906 } | 7906 } |
7907 | 7907 |
7908 if ((detect_info.rejected & CATEGORY_MASK_ANY) == CATEGORY_MASK_ANY) | 7908 if ((detect_info.rejected & CATEGORY_MASK_ANY) == CATEGORY_MASK_ANY |
7909 || null_byte_found) | |
7909 { | 7910 { |
7910 detect_info.found = CATEGORY_MASK_RAW_TEXT; | 7911 detect_info.found = CATEGORY_MASK_RAW_TEXT; |
7911 id = coding_categories[coding_category_raw_text].id; | 7912 id = CODING_SYSTEM_ID (Qno_conversion); |
7912 val = Fcons (make_number (id), Qnil); | 7913 val = Fcons (make_number (id), Qnil); |
7913 } | 7914 } |
7914 else if (! detect_info.rejected && ! detect_info.found) | 7915 else if (! detect_info.rejected && ! detect_info.found) |
7915 { | 7916 { |
7916 detect_info.found = CATEGORY_MASK_ANY; | 7917 detect_info.found = CATEGORY_MASK_ANY; |