am: invoke perl's strftime in C locale

We used to convert timestamps in metadata comment of Hg patch to mbox-looking Date: field using strftime, without making sure the resulting string is not translated. Always use C locale for this. Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Dmitry V. Levin committed Jan 15, 2013 at 00:59 UTC 5185b9707a768a0ad17de4765c7893f86f4c4a0e
1 file changed +1 -1
git-am.sh
+1 -1
@@ -261,7 +261,7 @@ split_patches () {
261 # Since we cannot guarantee that the commit message is in
262 # git-friendly format, we put no Subject: line and just consume
263 # all of the message as the body
264 - perl -M'POSIX qw(strftime)' -ne 'BEGIN { $subject = 0 }
264 + LANG=C LC_ALL=C perl -M'POSIX qw(strftime)' -ne 'BEGIN { $subject = 0 }
265 if ($subject) { print ; }
266 elsif (/^\# User /) { s/\# User/From:/ ; print ; }
267 elsif (/^\# Date /) {