From c29d64de043cc1c6eef58e346ba62cbe1492fcec Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Tue, 3 Aug 2010 21:01:08 +0200 Subject: [PATCH] Give commit message reencoding for output on MinGW a chance Signed-off-by: Johannes Schindelin --- log-tree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/log-tree.c b/log-tree.c index 5cac6bfcd4..570908d632 100644 --- a/log-tree.c +++ b/log-tree.c @@ -588,7 +588,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); -- 2.11.4.GIT