diff options
author | Kenichi Handa <handa@m17n.org> | 2009-01-15 07:13:39 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 2009-01-15 07:13:39 +0000 |
commit | 4cddb209b41bea927090ec9c7b0f3a235964586a (patch) | |
tree | 17907cc0fc6da5984b649872c65811b781a7fef0 /src/coding.c | |
parent | 0abcd9a8af863b1ceb2cc3b617f60475477da22f (diff) | |
download | emacs-4cddb209b41bea927090ec9c7b0f3a235964586a.tar.gz |
(detect_coding_system): Fix handling of null_byte_fount.
Diffstat (limited to 'src/coding.c')
-rw-r--r-- | src/coding.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/coding.c b/src/coding.c index 21c59454346..8c7ddf34db2 100644 --- a/src/coding.c +++ b/src/coding.c @@ -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) |