Changeset 1501

Show
Ignore:
Timestamp:
08/20/06 18:40:07
Author:
miyagawa
Message:

fixed terrible bug Term::Encoding detector doesn't work. Thanks to Yappo

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger.pm

    r1415 r1501  
    388388 
    389389    chomp($msg); 
    390     if ($self->{log}->{encoding}) { 
     390    if ($self->conf->{log}->{encoding}) { 
    391391        $msg = Encode::decode_utf8($msg) unless utf8::is_utf8($msg); 
    392         $msg = Encode::encode($self->{log}->{encoding}, $msg); 
     392        $msg = Encode::encode($self->conf->{log}->{encoding}, $msg); 
    393393    } 
    394394    warn "$caller [$level] $msg\n";