Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Log-Dispatch CPAN distribution.

Report information
The Basics
Id: 26063
Status: resolved
Priority: 0/
Queue: Log-Dispatch

People
Owner: Nobody in particular
Requestors: angelo [...] proofpoint.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: 2.19



Perl warnings are generated when logging utf8 characters using Log4Perl. Added support for utf8 would be very useful: -bash-3.00$ diff -ru Log-Dispatch-2.17_org Log-Dispatch-2.17 diff -ru Log-Dispatch-2.17_org/lib/Log/Dispatch/File.pm Log-Dispatch-2.17/lib/Log/Dispatch/File.pm --- Log-Dispatch-2.17_org/lib/Log/Dispatch/File.pm 2007-03-31 08:44:40.000000000 -0700 +++ Log-Dispatch-2.17/lib/Log/Dispatch/File.pm 2007-04-02 14:09:36.000000000 -0700 @@ -98,6 +98,14 @@ $self->{chmodded} = 1; } + if (defined $self->{binmode}) { + binmode $self->{fh}, $self->{binmode}; + } + + if (defined $self->{utf8}) { + binmode $self->{fh}, ":utf8"; + } + $self->{fh} = $fh; }