From: Simon Horman <[email protected]>

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 <[email protected]>
---
 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


_______________________________________________
Quilt-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/quilt-dev

Reply via email to