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
parent 841953a73e
commit bc9860d3d3

View file

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