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
72d5003d
Commit
72d5003d
authored
Mar 25, 2008
by
Stefan Monnier
Browse files
(decode_coding_object): When not decoding into a buffer,
obey the coding system's preference of (uni|multi)byte.
parent
dd0d723c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
src/ChangeLog
src/ChangeLog
+5
-0
src/coding.c
src/coding.c
+2
-2
No files found.
src/ChangeLog
View file @
72d5003d
2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
* coding.c (decode_coding_object): When not decoding into a buffer,
obey the coding system's preference of (uni|multi)byte.
2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
* casefiddle.c (casify_object): Avoid pathological N^2 worst case if
...
...
src/coding.c
View file @
72d5003d
...
...
@@ -7033,7 +7033,7 @@ decode_coding_object (coding, src_object, from, from_byte, to, to_byte,
coding->dst_object = code_conversion_save (1, 1);
coding->dst_pos = BEG;
coding->dst_pos_byte = BEG_BYTE;
coding->dst_multibyte =
1
;
coding->dst_multibyte =
!CODING_FOR_UNIBYTE (coding)
;
}
else if (BUFFERP (dst_object))
{
...
...
@@ -7048,7 +7048,7 @@ decode_coding_object (coding, src_object, from, from_byte, to, to_byte,
{
code_conversion_save (0, 0);
coding->dst_object = Qnil;
coding->dst_multibyte =
1
;
coding->dst_multibyte =
!CODING_FOR_UNIBYTE (coding)
;
}
decode_coding (coding);
...
...
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