Re: git format-patch doesn't add Content-type for UTF-8 diffs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




I wonder if it would be enough to do:

 1. Always add a content-type header, even if the commit is utf-8 and
    contains only ascii characters. This _shouldn't_ hurt anything,
    though I suppose it would if you have latin1 (for example) commit
    messages and did not correctly set the encoding header in your
    commits.

Does it make sense to call this function (from utf8.c)

int is_utf8(const char *text)

and either add the content-type header for utf-8 (or not)


--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]