From 5185b9707a768a0ad17de4765c7893f86f4c4a0e Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Tue, 15 Jan 2013 00:59:33 +0400 Subject: [PATCH] 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 Signed-off-by: Junio C Hamano --- git-am.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-am.sh b/git-am.sh index eaa8a1145..c72d05251 100755 --- a/git-am.sh +++ b/git-am.sh @@ -261,7 +261,7 @@ split_patches () { # Since we cannot guarantee that the commit message is in # git-friendly format, we put no Subject: line and just consume # all of the message as the body - perl -M'POSIX qw(strftime)' -ne 'BEGIN { $subject = 0 } + LANG=C LC_ALL=C perl -M'POSIX qw(strftime)' -ne 'BEGIN { $subject = 0 } if ($subject) { print ; } elsif (/^\# User /) { s/\# User/From:/ ; print ; } elsif (/^\# Date /) { -- 2.26.2