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

commit-email.pl generates a wrong "Date:" header in some locales

From: Vincent Lefevre <vincent-svn_at_vinc17.net>
Date: Wed, 21 May 2014 13:40:47 +0200

Hi,

The commit-email.pl script generates a wrong "Date:" header in some
locales, e.g.

Date: Tue, 20 May 2014 04:21:21 PM +0200

AFAIK, the reason is that in the strftime line, it uses %X instead
of %T. Actually there may also be problems with %a and %b, and for
these ones, the only possibility seems to locally change the locale
to C (and possibly change it back after the strftime).

This problem is still present:

  http://svn.apache.org/viewvc/subversion/trunk/contrib/hook-scripts/commit-email.pl.in?view=markup

(revision 1295006).

In old versions of the script, the "Date:" header was not included,
thus was generated by the mail server and was correct.

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Received on 2014-05-21 13:41:18 CEST

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