summaryrefslogtreecommitdiff
path: root/git-format-patch.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-11 07:34:08 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-11-11 08:37:34 (GMT)
commite3e291fc07b49b74bb655ca854bdb19e849e044c (patch)
tree24777ef8ff471ee4d1f6174bfb53c71fd88ca1d6 /git-format-patch.sh
parent605607cc622478fb2e8dfcab2ff16f54b0995599 (diff)
downloadgit-e3e291fc07b49b74bb655ca854bdb19e849e044c.zip
git-e3e291fc07b49b74bb655ca854bdb19e849e044c.tar.gz
git-e3e291fc07b49b74bb655ca854bdb19e849e044c.tar.bz2
Do not lose author name information to locale gotchas.
I noticed format-patch loses authorship information of Lukas' patch when I run git tools with LC_LANG set to ja_JP. It turns out that the sed script to set environment variables were not working on his name (encoded in UTF-8), which is unfortunate but technically correct. Force sed invocation under C locale because we always want literal byte semantics. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-format-patch.sh')
-rwxr-xr-xgit-format-patch.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-format-patch.sh b/git-format-patch.sh
index 548d2d5..7ee5d32 100755
--- a/git-format-patch.sh
+++ b/git-format-patch.sh
@@ -201,7 +201,7 @@ process_one () {
;;
esac
- eval "$(sed -ne "$whosepatchScript" $commsg)"
+ eval "$(LANG=C LC_ALL=C sed -ne "$whosepatchScript" $commsg)"
test "$author,$au" = ",$me" || {
mailScript="$mailScript"'
a\