}
}
if (!require_encoding)
- str = make_unibyte_string ((char *) data, size);
+ {
+ str = make_unibyte_string ((char *) data, size);
+ Vlast_coding_system_used = Qraw_text;
+ }
else
{
int bufsize;
: coding.produced_char);
str = make_string_from_bytes ((char *) buf, size, coding.produced);
xfree (buf);
+ Vlast_coding_system_used = coding.symbol;
}
return str;
}
/* No multibyte character in OBJ. We need not encode it. */
*nofree_ret = 1;
if (NILP (type)) type = QSTRING;
+ Vlast_coding_system_used = Qraw_text;
}
else
{
/* We must return it as `COMPOUND_TEXT'. */
if (NILP (type)) type = QCOMPOUND_TEXT;
}
+ Vlast_coding_system_used = coding.symbol;
}
}
else if (SYMBOLP (obj))