Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 241377 Details for
Bug 331167
sys-apps/logwatch should send mail in system locale(for example in UTF-8), but not in C
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for logwatch to send reports in UTF-8
logwatch-utf8.patch (text/plain), 1.44 KB, created by
Sergey Popov
on 2010-08-04 07:30:27 UTC
(
hide
)
Description:
patch for logwatch to send reports in UTF-8
Filename:
MIME Type:
Creator:
Sergey Popov
Created:
2010-08-04 07:30:27 UTC
Size:
1.44 KB
patch
obsolete
>--- /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)) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 331167
: 241377