Convert subject and message with iconv_msg.

This commit is contained in:
Jonathan Bastien-Filiatrault 2007-10-26 18:13:41 -04:00
父節點 af08198304
當前提交 7858a309d7
共有 1 個文件被更改,包括 14 次插入0 次删除

查看文件

@ -320,6 +320,20 @@ struct commitinfo *cgit_parse_commit(struct commit *commit)
} else
ret->subject = substr(p, p+strlen(p));
if(strcmp(ret->msg_encoding, PAGE_ENCODING)) {
t = iconv_msg(ret->subject, ret->msg_encoding);
if(t) {
free(ret->subject);
ret->subject = t;
}
t = iconv_msg(ret->msg, ret->msg_encoding);
if(t) {
free(ret->msg);
ret->msg = t;
}
}
return ret;
}