You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2010/02/10 16:56:38 UTC
[Bug 6329] POSIX::strftime in call under Win32 ActivePerl causes
Perl to hang up
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6329
Daniel <le...@jam-software.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lemke@jam-software.com
--- Comment #1 from Daniel <le...@jam-software.com> 2010-02-10 07:56:38 UTC ---
Can be solved like this....
diff -u -r Mail-SpamAssassin-3.3.0-orig\lib\Mail\SpamAssassin\Logger\Stderr.pm
Mail-SpamAssassin-3.3.0\lib\Mail\SpamAssassin\Logger\Stderr.pm
--- Mail-SpamAssassin-3.3.0-orig\lib\Mail\SpamAssassin\Logger\Stderr.pm Thu
Jan 21 12:14:52 2010
+++ Mail-SpamAssassin-3.3.0\lib\Mail\SpamAssassin\Logger\Stderr.pm Tue Feb
09 11:52:02 2010
@@ -54,8 +54,9 @@
my ($self, $level, $msg) = @_;
my $now = Time::HiRes::time;
+
printf STDERR ("%s:%06.3f [%d] %s: %s\n",
- POSIX::strftime("%b %e %H:%M",localtime($now)), $now-int($now/60)*60,
+ POSIX::strftime("%c",localtime($now)), $now-int($now/60)*60,
$$, $level, $msg) or warn "Error writing to log file: $!";
# print STDERR "[$$] $level: $msg\n"
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.