builtin-mailinfo.c: compare character encodings case insensitively
commited1e3985e445e4cb4558056f8a31c366f2bf2634
authorBrandon Casey <casey@nrlssc.navy.mil>
Mon, 18 May 2009 23:44:40 +0000 (18 18:44 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 May 2009 03:53:14 +0000 (18 20:53 -0700)
tree440b663aae7a33222b10fe90eab16af8fb2f8993
parent330db18c0277dcfcf322bb61c688acfb5ddf3867
builtin-mailinfo.c: compare character encodings case insensitively

When converting between character encodings, git tests whether the "from"
encoding and the "to" encoding have the same name.  git should perform this
test case insensitively so that e.g. utf-8 is not seen as a different
encoding than UTF-8.

Additionally, it is not necessary to call tolower() anymore on the encodings
extracted from the mail message.

Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-mailinfo.c