Hello Jonathan, hello all,

jonathan wrote (21 Apr 2008 12:03:12 GMT) :
> * Micah Anderson <[EMAIL PROTECTED]> [080321 21:53]:
>> * jonathan <[EMAIL PROTECTED]> [2008-02-15 02:31-0500]:

[...]

>>> It seems that isnow() function assume english locale too for day name
>>> checking.
>> 
>> Yeah, it does.

> So when you have specified a 'when' option like :

>   when = sundays at 02:00

> and you launch backupninja in a non-english locale environment the day
> name comparison in the isnow() function will allways fail because 
> date +%A will return a non-english day name.

>>> LANG=C could be set at the begining of the script to fix this problem.
>> 
>> You mean at the beginning of the backupninja script itself?

> Yes.

I’m in favour of the LANG=C addition, which seems quite a good idea to
me since the following code assumes English locales.

But − and this is unrelated − I’m still surprised you actually found
this bug, because when testing, I always run 'backupninja -n -d' (-n
== --now), so the isnow function is not used. How can you test the
thing without the -n switch ?

Bye,
--
  intrigeri <[EMAIL PROTECTED]>



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to