summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2012-11-09 17:42:32 (GMT)
committerJeff King <peff@peff.net>2012-11-09 17:42:32 (GMT)
commit64b22a58949cd56c6ce586c1b9da1b1d32a2889e (patch)
tree151745b372c92aab204669af109fc36ecaa2735c /git-compat-util.h
parent15ba878a1dc4ae929ed121c109a9ff7d35149bea (diff)
parent25dc8dad3a7c9f5426f549701e22eec1f894fec8 (diff)
downloadgit-64b22a58949cd56c6ce586c1b9da1b1d32a2889e.zip
git-64b22a58949cd56c6ce586c1b9da1b1d32a2889e.tar.gz
git-64b22a58949cd56c6ce586c1b9da1b1d32a2889e.tar.bz2
Merge branch 'js/format-2047'
Fixes many rfc2047 quoting issues in the output from format-patch. * js/format-2047: format-patch tests: check quoting/encoding in To: and Cc: headers format-patch: fix rfc2047 address encoding with respect to rfc822 specials format-patch: make rfc2047 encoding more strict format-patch: introduce helper function last_line_length() format-patch: do not wrap rfc2047 encoded headers too late format-patch: do not wrap non-rfc2047 headers too early utf8: fix off-by-one wrapping of text
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 2fbf1fd..2e79b8a 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -506,6 +506,7 @@ extern const char tolower_trans_tbl[256];
#undef isdigit
#undef isalpha
#undef isalnum
+#undef isprint
#undef islower
#undef isupper
#undef tolower
@@ -523,6 +524,7 @@ extern unsigned char sane_ctype[256];
#define isdigit(x) sane_istest(x,GIT_DIGIT)
#define isalpha(x) sane_istest(x,GIT_ALPHA)
#define isalnum(x) sane_istest(x,GIT_ALPHA | GIT_DIGIT)
+#define isprint(x) ((x) >= 0x20 && (x) <= 0x7e)
#define islower(x) sane_iscase(x, 1)
#define isupper(x) sane_iscase(x, 0)
#define is_glob_special(x) sane_istest(x,GIT_GLOB_SPECIAL)