Give commit message reencoding for output on MinGW a chance

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin
2010-08-03 21:01:08 +02:00
committed by Pat Thoyts
parent 342dbf1214
commit f37f29c1b4

View File

@@ -681,7 +681,8 @@ void show_log(struct rev_info *opt)
if (opt->graph)
graph_show_commit_msg(opt->graph, &msgbuf);
else
fwrite(msgbuf.buf, sizeof(char), msgbuf.len, stdout);
/* Do not use fwrite() to give MinGW reencoding a chance */
printf("%.*s", (int)msgbuf.len, msgbuf.buf);
if (opt->use_terminator) {
if (!opt->missing_newline)
graph_show_padding(opt->graph);