On Sun, 2007-05-06 at 23:10 +0200, Peter J. Holzer wrote:
> How about doing something like this
>
> sub rfc822_date {
> my ($t) = @_;
> if (strftime("%a %b %z", gmtime(0)) ~= m/Thu Jan [-+]\d{4}$/) {
> # strftime works as expected, so use that
> return strftime("...", localtime($t));
Why would you check this every time you want to compute a date ?
Just check once during 'make test'. If it were a GNU package and not
perl, the check would be done during ./configure.
Same for making sure plugins do not set LANG != C. Check the code. Put
something in the test framework to make sure nothing illegal is done.
If people want to hurt themselves then let them do so.
--
--gh