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
ade8d05e
Commit
ade8d05e
authored
Feb 27, 2001
by
Kenichi Handa
Browse files
(ccl_coding_driver): If ccl->eight_bit_control is zero,
treat the produced bytes as a valid multibyte sequence.
parent
063af457
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/coding.c
src/coding.c
+7
-0
No files found.
src/coding.c
View file @
ade8d05e
...
...
@@ -4459,6 +4459,13 @@ ccl_coding_driver (coding, source, destination, src_bytes, dst_bytes, encodep)
coding->produced_char = coding->produced;
coding->spec.ccl.cr_carryover = ccl->cr_consumed;
}
else if (!ccl->eight_bit_control)
{
/* The produced bytes forms a valid multibyte sequence. */
coding->produced_char
= multibyte_chars_in_text (destination, coding->produced);
coding->spec.ccl.eight_bit_carryover[0] = 0;
}
else
{
/* On decoding, the destination should always multibyte. But,
...
...
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