[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: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Tue, 21 Jun 2011 12:41:59 +0300

Miguel Almeida wrote on Tue, Jun 21, 2011 at 10:32:32 +0100:
> Thanks for your replies,
>
> Either way, neither the linux nor the cross-platform alternative
> ( --add-header date=`LC_ALL=C date +"%a, %d %b %Y %H:%M:%S %z"`)
> actually work. The result on my Evolution (which I know is more
> sensitive than other mail readers like thunderbird or even gmail) yields
> for an email sent a few minutes ago:
> Date: Tue, (30/12/99 23:23:28)
> and is marked as 06/02/36. (!!).
>

You forgot the double quotes around the ``.

> Although this has not quite to do with svn (only in the sense that
> svnnotify, by default, doesn't seem to send the date header), if you
> have any idea of how to add the RFC 2822 date using svnnotify, please
> let me know.
>
> Thank you,
>
> Miguel Almeida
>
> On Tue, 2011-06-21 at 11:22 +0200, Stefan Sperling wrote:
>
> > On Tue, Jun 21, 2011 at 12:14:34PM +0300, Daniel Shahaf wrote:
> > > Stefan Sperling wrote on Tue, Jun 21, 2011 at 10:38:01 +0200:
> > > > On Tue, Jun 21, 2011 at 09:24:21AM +0100, Miguel Almeida wrote:
> > > > > 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.
> > >
> > > What Stefan and Ryan said.
> > >
> > > I just want to add that if LC_ALL and LC_CTIME are both set then the
> > > former wins, so portable code should set LC_ALL rather than LC_CTIME (to
> > > account for LC_ALL=randomvalue being possibly set in the environment).
> >
> > Ooops, it's actually LC_TIME, not LC_CTIME. Typo on my part.
>
>
Received on 2011-06-21 11:42:44 CEST

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