{
char *out;
- if (!charset || !*charset)
+ if (!mi->metainfo_charset || !charset || !*charset)
return;
if (same_encoding(mi->metainfo_charset, charset))
dec = decode_q_segment(&piecebuf, 1);
break;
}
- if (mi->metainfo_charset)
- convert_to_utf8(mi, dec, charset_q.buf);
+ convert_to_utf8(mi, dec, charset_q.buf);
strbuf_addbuf(&outbuf, dec);
strbuf_release(dec);
mi->header_stage = 0;
/* normalize the log message to UTF-8. */
- if (mi->metainfo_charset)
- convert_to_utf8(mi, line, charset.buf);
+ convert_to_utf8(mi, line, charset.buf);
if (mi->use_scissors && is_scissors_line(line)) {
int i;