mirror of
https://github.com/git/git
synced 2024-10-06 00:29:28 +00:00
Give commit message reencoding for output on MinGW a chance
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
parent
841953a73e
commit
bc9860d3d3
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue