format-patch: run diff in C locale
Otherwise it would show incomplete line and binary markers in a locale dependent way. Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Nov 29, 2005 at 13:51 UTC
830273d10cf1cfe646db39b87d3ccb49bf88b73a
1 file changed
+5
-1
git-format-patch.sh
+5
-1
@@ -5,6 +5,10 @@
5
6
. git-sh-setup
7
8
+# Force diff to run in C locale.
9
+LANG=C LC_ALL=C
10
+export LANG LC_ALL
11
+
12
usage () {
13
echo >&2 "usage: $0"' [-n] [-o dir | --stdout] [--keep-subject] [--mbox]
14
[--check] [--signoff] [-<diff options>...]
@@ -202,7 +206,7 @@ process_one () {
206
;;
207
esac
208
205
- eval "$(LANG=C LC_ALL=C sed -ne "$whosepatchScript" $commsg)"
209
+ eval "$(sed -ne "$whosepatchScript" $commsg)"
210
test "$author,$au" = ",$me" || {
211
mailScript="$mailScript"'
212
a\