* Micah Anderson <[EMAIL PROTECTED]> [080321 21:53]: > * jonathan <[EMAIL PROTECTED]> [2008-02-15 02:31-0500]: > >> In various part of backupninja english locale is assumed. If backupninja >> is run from an interactive shell, in order to test its configuration for >> example, it may not be the case and some weird log lines (localised >> month abbreviations) could be writen and break log parsers. > > I am trying to understand better what you are saying here. If I > understand correctly, what you are saying is that due to the english > locale assumptions within backupninja, if a user who does not use the > english locales runs backupninja in an interactive shell then the > non-english locale is used which breaks ...?
Sorry for explaining my thoughts so badly :-( The logs problem is mainly cosmetic, the fact that you will find log lines with non-english day and month name when you launch backupninja by hand may not break your system, it is a little bit annoying, not more. >> 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. Regards, -- Jonathan
signature.asc
Description: Digital signature