Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 331167
Collapse All | Expand All

(-)/usr/sbin/logwatch.pl.orig (-4 / +12 lines)
Lines 36-45 Link Here
36
$ENV{'REAL_LC_ALL'}=$ENV{'LC_ALL'} if $ENV{'LC_ALL'};
36
$ENV{'REAL_LC_ALL'}=$ENV{'LC_ALL'} if $ENV{'LC_ALL'};
37
37
38
# Setting ENV for scripts invoked by this script.
38
# Setting ENV for scripts invoked by this script.
39
$ENV{'LC_ALL'} = "C";
39
#$ENV{'LC_ALL'} = "C";
40
# Pinkbyte: replace default logwatch locale
41
$ENV{'LC_ALL'} = "ru_RU.UTF-8";
40
# Using setlocale to set locale for this script.
42
# Using setlocale to set locale for this script.
41
use POSIX qw(locale_h);
43
use POSIX qw(locale_h);
42
setlocale(LC_ALL, "C");
44
#setlocale(LC_ALL, "C");
45
# Pinkbyte: replace default logwatch locale
46
setlocale(LC_ALL, "ru_RU.UTF-8");
43
47
44
my $BaseDir = "/usr/share/logwatch";
48
my $BaseDir = "/usr/share/logwatch";
45
my $ConfigDir = "/etc/logwatch";
49
my $ConfigDir = "/etc/logwatch";
Lines 1030-1038 Link Here
1030
            $out_mime .= "Content-Transfer-Encoding: 7bit\n";
1034
            $out_mime .= "Content-Transfer-Encoding: 7bit\n";
1031
         }
1035
         }
1032
         if ( $outtype_html ) {
1036
         if ( $outtype_html ) {
1033
            $out_mime .= "Content-Type: text/html; charset=\"iso-8859-1\"\n\n";
1037
#            $out_mime .= "Content-Type: text/html; charset=\"iso-8859-1\"\n\n";
1038
# Pinkbyte: replace default codepage to UTF-8
1039
            $out_mime .= "Content-Type: text/html; charset=\"utf-8\"\n\n";
1034
         } else {
1040
         } else {
1035
            $out_mime .= "Content-Type: text/plain; charset=\"iso-8859-1\"\n\n";
1041
#            $out_mime .= "Content-Type: text/plain; charset=\"iso-8859-1\"\n\n";
1042
# Pinkbyte: replace default codepage to UTF-8
1043
            $out_mime .= "Content-Type: text/plain; charset=\"utf-8\"\n\n";
1036
         }
1044
         }
1037
1045
1038
         if (($Config{'splithosts'} eq 1) && ($Config{'multiemail'} eq 0)) {
1046
         if (($Config{'splithosts'} eq 1) && ($Config{'multiemail'} eq 0)) {

Return to bug 331167