I have opened https://sourceforge.net/p/logwatch/bugs/56/ .
I am working a test case for this right now. As I see it, there are 3 paths to test. Output as STDOUT, file, and email. In each case does an 8bit value (0x00..0xff unsigned) result in a valid UTF-8 character. Is binmode(STDOUT, ":utf8") needed? Does it fix the issue if it was needed? > > -----Original Message----- > > From: Willi Mann > > Sent: Friday, December 30, 2016 12:18 > > To: logwatch-devel > > Cc: 849...@bugs.debian.org; 849531-forwar...@bugs.debian.org; Klaus Ethgen > > What would be your suggested fix? $ git show f9db5949c58321175bda66310156f43ae607109f commit f9db5949c58321175bda66310156f43ae607109f Author: bjorn <bjo...@users.sourceforge.net> Date: Sat Oct 15 17:38:40 2016 -0700 Changed encoding to UTF-8, as suggested by Goran Uddeborg. diff --git a/scripts/logwatch.pl b/scripts/logwatch.pl index 0f863dc..0167755 100755 --- a/scripts/logwatch.pl +++ b/scripts/logwatch.pl @@ -1162,9 +1162,9 @@ sub initprint { } #Config{output} html if ( $Config{'format'} eq "html" ) { - $out_mime .= "Content-Type: text/html; charset=\"iso-8859-1\"\n\n"; + $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=\"UTF-8\"\n\n"; } if ($Config{'hostformat'} eq "split") { #8.0 check hostlimit also? or ne none?