Commit 72d5003d authored by Stefan Monnier's avatar Stefan Monnier

(decode_coding_object): When not decoding into a buffer,

obey the coding system's preference of (uni|multi)byte.
parent dd0d723c
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
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment