obey the coding system's preference of (uni|multi)byte.
+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
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))
{
{
code_conversion_save (0, 0);
coding->dst_object = Qnil;
- coding->dst_multibyte = 1;
+ coding->dst_multibyte = !CODING_FOR_UNIBYTE (coding);
}
decode_coding (coding);