[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

commit-email.pl date format in non-US locales

From: Guillermo Rodriguez Garcia <guille_at_iies.es>
Date: 2007-04-16 16:03:47 CEST


I think we've found a problem when using commit-email.pl in a non-US
locale. The script generates a SMTP Date: header as follows:

    my @head;
    my $formatted_date;
    if (defined $stdout)
        $formatted_date = strftime('%a %b %e %X %Y', localtime());
        push(@head, "From $mail_from $formatted_date\n");
    $formatted_date = strftime('%a, %e %b %Y %X %z', localtime());

However in a non-US system (we have LANG=es_ES.UTF-8 around here),
this will result in the weekday and month names written in the local
language (Spanish in this case). This is wrong according to RFC2822
(http://tools.ietf.org/html/rfc2822#section-3.3) and breaks some
e-mail clients.

I'm not following this list, but just wanted to report this in case
it helps.

Best regards,

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Apr 16 22:07:32 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.