git-commit-vandalism/t/t5100/info0017
Junio C Hamano 176943b965 mailinfo: do not concatenate charset= attribute values from mime headers
"Content-type: text/plain; charset=UTF-8" header should not appear
twice in the input, but it is always better to gracefully deal with
such a case.  The current code concatenates the value to the values
we have seen previously, producing nonsense such as "utf8UTF-8".

Instead of concatenating, forget the previous value and use the last
value we see.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
2012-09-17 15:24:52 -07:00

6 lines
103 B
Plaintext

Author: A U Thor
Email: a.u.thor@example.com
Subject: A E I O U
Date: Mon, 17 Sep 2012 14:23:44 -0700