(detect_coding_system): Fix handling of null_byte_fount.
This commit is contained in:
parent
0abcd9a8af
commit
4cddb209b4
2 changed files with 8 additions and 2 deletions
|
@ -7905,10 +7905,11 @@ detect_coding_system (src, src_chars, src_bytes, highest, multibytep,
|
|||
}
|
||||
}
|
||||
|
||||
if ((detect_info.rejected & CATEGORY_MASK_ANY) == CATEGORY_MASK_ANY)
|
||||
if ((detect_info.rejected & CATEGORY_MASK_ANY) == CATEGORY_MASK_ANY
|
||||
|| null_byte_found)
|
||||
{
|
||||
detect_info.found = CATEGORY_MASK_RAW_TEXT;
|
||||
id = coding_categories[coding_category_raw_text].id;
|
||||
id = CODING_SYSTEM_ID (Qno_conversion);
|
||||
val = Fcons (make_number (id), Qnil);
|
||||
}
|
||||
else if (! detect_info.rejected && ! detect_info.found)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue