diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-10-14 17:45:16 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-10-21 15:59:34 -0700 |
commit | 669b963af2778c489b0742d2f4d56aeda7dcfad8 (patch) | |
tree | 2f3f5750a702077c5008f6f50ef9a0db8e86414a /builtin/mailsplit.c | |
parent | c6905e45f078530cda57690b0db6a7378dc1f794 (diff) | |
download | git-669b963af2778c489b0742d2f4d56aeda7dcfad8.tar.gz |
mailinfo: handle charset conversion errors in the caller
Instead of dying in convert_to_utf8(), just report an error and let
the callers handle it. Between the two callers:
- decode_header() silently punts when it cannot parse a broken
RFC2047 encoded text (e.g. when it sees anything other than B or
Q after it sees "=?<charset>") by jumping to release_return,
returning the string it successfully parsed out so far, to the
caller. A piece of string that convert_to_utf8() cannot handle
can be treated the same way.
- handle_commit_msg() doesn't cope with a malformed line well, so
die there for now. We'll lift this even higher in later changes
in this series.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/mailsplit.c')
0 files changed, 0 insertions, 0 deletions