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 8bc2aac136
commit 2e71f4ae20

View File

@@ -702,7 +702,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);