From ce0a3e60215e8e814e289c2bebb26c31b617b9fd Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 2 Aug 2007 17:00:16 +0000 Subject: (logcolorize) keep utf8 flag when splitting a string (should probably be reported as a perl bug...) --- perl-install/standalone/logdrake | 1 + 1 file changed, 1 insertion(+) (limited to 'perl-install/standalone/logdrake') diff --git a/perl-install/standalone/logdrake b/perl-install/standalone/logdrake index 59694d7be..e9c960f82 100755 --- a/perl-install/standalone/logdrake +++ b/perl-install/standalone/logdrake @@ -307,6 +307,7 @@ sub logcolorize { $string =~ s/(\D{3} .. (\d\d:\d\d:\d\d ))//; my $timestamp = $isExplain ? $2 : $1; my @rec = split(/\s/, $string); + @rec = map { c::set_tagged_utf8($_); $_ } @rec if utf8::is_utf8($string); log_output($timestamp, 'Bold', 'darkcyan'); # date & time if any... # BUG: $col hasn't yet be reseted -- cgit v1.2.1