]> git.ipfire.org Git - thirdparty/git.git/commit - commit.c
commit/commit-tree: correct latin1 to utf-8
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 28 Jun 2012 18:24:14 +0000 (11:24 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 21 Aug 2012 23:10:53 +0000 (16:10 -0700)
commit08a94a145c3231c0fa36469682591a3c45222271
treef25e5463156188f41e00da2f284fd8eb1b756bf2
parent4c8a9db6f7dd9e10b5ce9bfbcd5faa82a8c86ce3
commit/commit-tree: correct latin1 to utf-8

When a line in the message is not a valid utf-8, "git mailinfo"
attempts to convert it to utf-8 assuming the input is latin1 (and
punt if it does not convert cleanly).  Using the same heuristics in
"git commit" and "git commit-tree" lets the editor output be in
latin1 to make the overall system more consistent.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/mailinfo.c
commit.c