git-send-email: introduce quote_subject()
authorKrzysztof Mazur <krzysiek@podlesie.net>
Wed, 24 Oct 2012 21:08:26 +0000 (23:08 +0200)
committerJeff King <peff@peff.net>
Thu, 25 Oct 2012 10:05:35 +0000 (06:05 -0400)
commitce5478006c7318f12e6b2abeb0c0477009db63b5
treeede8cfab80d6c1541dde1e9e7a499cf5ef3c5404
parent5637d8573206e8c3d99abacb6b6ca3cf11816202
git-send-email: introduce quote_subject()

The quote_rfc2047() always adds RFC2047 quoting. To avoid
quoting ASCII subjects, before calling quote_rfc2047()
subject must be tested for non-ASCII characters. This patch
introduces a new quote_subject() function, which performs
the test and calls quote_rfc2047 only if necessary.

Signed-off-by: Krzysztof Mazur <krzysiek@podlesie.net>
Signed-off-by: Jeff King <peff@peff.net>
git-send-email.perl