mirror of
https://github.com/git/git.git
synced 2026-02-13 11:21:10 +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:
committed by
Pat Thoyts
parent
8bc2aac136
commit
2e71f4ae20
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user