diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/coding.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index dbb34ac3e2d..93aa087f2b9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-01-15 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | * coding.c (detect_coding_system): Fix handling of | ||
| 4 | null_byte_found. | ||
| 5 | |||
| 1 | 2009-01-14 Jason Rumney <jasonr@gnu.org> | 6 | 2009-01-14 Jason Rumney <jasonr@gnu.org> |
| 2 | 7 | ||
| 3 | * frame.c (x_set_font): Always store a font to the font parameter, | 8 | * frame.c (x_set_font): Always store a font to the font parameter, |
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, | |||
| 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) |