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

Re: SVNNotify - not setting date in header

From: Stefan Sperling <stsp_at_elego.de>
Date: Tue, 21 Jun 2011 10:38:01 +0200

On Tue, Jun 21, 2011 at 09:24:21AM +0100, Miguel Almeida wrote:
> Hi Daniel,
>
> On Mon, 2011-06-20 at 22:17 +0300, Daniel Shahaf wrote:
>
> > Miguel Almeida wrote on Mon, Jun 20, 2011 at 15:02:27 +0100:
> > > I tried adding the following, but with no success (I must be passing
> > > the date wrongly):
> > > --add-header date=`date -R`
> >
> > --add-header Date="`date -R`"
> >
> > FWIW, 'date -R' is not portable; I think the portable version is
> > LC_ALL=C date +"%a, %d %b %Y %H:%M:%S %z"
> >
>
> Could you tell me what you mean by non-portability?

He's saying it will only work on Linux :)

> And also, what does
> the LC_ALL=C part mean in the line you suggest?

It implies LC_CTIME=C, which for in some cases controls how the date
will be formatted on systems that support the LC_TIME locale.
Setting LC_TIME to "C" guarantees the default POSIX formatting
rules will be used.
Received on 2011-06-21 10:38:42 CEST

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