--- /usr/sbin/logwatch.pl.orig 2010-08-04 11:26:48.000000000 +0400 +++ /usr/sbin/logwatch.pl 2010-08-04 11:14:10.000000000 +0400 @@ -36,10 +36,14 @@ $ENV{'REAL_LC_ALL'}=$ENV{'LC_ALL'} if $ENV{'LC_ALL'}; # Setting ENV for scripts invoked by this script. -$ENV{'LC_ALL'} = "C"; +#$ENV{'LC_ALL'} = "C"; +# Pinkbyte: replace default logwatch locale +$ENV{'LC_ALL'} = "ru_RU.UTF-8"; # Using setlocale to set locale for this script. use POSIX qw(locale_h); -setlocale(LC_ALL, "C"); +#setlocale(LC_ALL, "C"); +# Pinkbyte: replace default logwatch locale +setlocale(LC_ALL, "ru_RU.UTF-8"); my $BaseDir = "/usr/share/logwatch"; my $ConfigDir = "/etc/logwatch"; @@ -1030,9 +1034,13 @@ $out_mime .= "Content-Transfer-Encoding: 7bit\n"; } if ( $outtype_html ) { - $out_mime .= "Content-Type: text/html; charset=\"iso-8859-1\"\n\n"; +# $out_mime .= "Content-Type: text/html; charset=\"iso-8859-1\"\n\n"; +# Pinkbyte: replace default codepage to UTF-8 + $out_mime .= "Content-Type: text/html; charset=\"utf-8\"\n\n"; } else { - $out_mime .= "Content-Type: text/plain; charset=\"iso-8859-1\"\n\n"; +# $out_mime .= "Content-Type: text/plain; charset=\"iso-8859-1\"\n\n"; +# Pinkbyte: replace default codepage to UTF-8 + $out_mime .= "Content-Type: text/plain; charset=\"utf-8\"\n\n"; } if (($Config{'splithosts'} eq 1) && ($Config{'multiemail'} eq 0)) {