X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=git-am.sh;h=c132f50da5f3416e6177dd7010e6db3660bdb073;hb=de1a2fdd38b138c4e4fed6412783dcb74d63d2da;hp=26ffe702e04e990113eb287f01be815d4ac8ad0a;hpb=4a452ede390996b0c5dbb7d36536cb5552c6d9fb;p=git.git diff --git a/git-am.sh b/git-am.sh index 26ffe702e..c132f50da 100755 --- a/git-am.sh +++ b/git-am.sh @@ -205,7 +205,7 @@ check_patch_format () { # and see if it looks like that they all begin with the # header field names... sed -n -e '/^$/q' -e '/^[ ]/d' -e p "$1" | - egrep -v '^[A-Za-z]+(-[A-Za-z]+)*:' >/dev/null || + LC_ALL=C egrep -v '^[!-9;-~]+:' >/dev/null || patch_format=mbox fi } < "$1" || clean_abort