Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
4cddb209
Commit
4cddb209
authored
Jan 15, 2009
by
Kenichi Handa
Browse files
(detect_coding_system): Fix handling of null_byte_fount.
parent
0abcd9a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
src/ChangeLog
src/ChangeLog
+5
-0
src/coding.c
src/coding.c
+3
-2
No files found.
src/ChangeLog
View file @
4cddb209
2009-01-15 Kenichi Handa <handa@m17n.org>
* coding.c (detect_coding_system): Fix handling of
null_byte_found.
2009-01-14 Jason Rumney <jasonr@gnu.org>
* frame.c (x_set_font): Always store a font to the font parameter,
...
...
src/coding.c
View file @
4cddb209
...
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment