quilt-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Quilt-dev] [PATCH 3/4] quilt mail: force locale to C when generatin


From: Andreas Gruenbacher
Subject: Re: [Quilt-dev] [PATCH 3/4] quilt mail: force locale to C when generating date for the From header
Date: Fri, 24 Feb 2012 08:03:18 +0100

On Fre, 2012-02-24 at 00:27 +0100, Raphaël Hertzog wrote:
> 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

This is the same as commit "quilt mail: Don't use localized date format
in From lines" on the fixes-0.5 branch.

Jean, can you please pull this branch in as well?  Thanks.

Andreas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]