[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Quilt-dev] [PATCH 3/4] quilt mail: force locale to C when generating da
From: |
Raphaël Hertzog |
Subject: |
[Quilt-dev] [PATCH 3/4] quilt mail: force locale to C when generating date for the From header |
Date: |
Fri, 24 Feb 2012 00:27:38 +0100 |
From: Simon Horman <address@hidden>
Without this the From header will end up with a date according
to the current locale, which can result in an invalid mbox.
That was at least the case with a japanese locale (ja_JP.UTF-8),
mutt-ng did not accept the mbox.
Signed-off-by: Raphaël Hertzog <address@hidden>
---
quilt/mail.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/quilt/mail.in b/quilt/mail.in
index de23878..eacbe8d 100644
--- a/quilt/mail.in
+++ b/quilt/mail.in
@@ -141,7 +141,7 @@ process_mail()
| ${QUILT_SENDMAIL:-sendmail} \
${QUILT_SENDMAIL_ARGS--f "$opt_sender"} "$@"
else
- local from_date=$(date "+%a %b %e %H:%M:%S %Y")
+ local from_date=$(LC_ALL=C date "+%a %b %e %H:%M:%S %Y")
echo "From $opt_sender_address $from_date"
sed -e 's/^From />From /' $tmpfile
echo
--
1.7.9.1