mirror of
https://github.com/git/git.git
synced 2024-10-28 12:59:41 +01:00
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>
This commit is contained in:
parent
0cfd112032
commit
5185b9707a
1 changed files with 1 additions and 1 deletions
|
@ -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 /) {
|
||||
|
|
Loading…
Reference in a new issue