From ba22a0dbd0d64a8b71b4d829cb490feb06d95009 Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Thu, 10 Jan 2013 14:25:56 +0100 Subject: [PATCH] No longer validate the UTF-8 from rc.log files in GetRcLinesFor. If the rc.log file contained invalid UTF-8, this would fill the server logs with thousands of warnings. There is nothing we can do about these (they probably originated from an older copy of the script). Therefore, <:utf8 is now used instead of <:encoding(UTF-8). --- wiki.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wiki.pl b/wiki.pl index f0647372..d6ef7506 100755 --- a/wiki.pl +++ b/wiki.pl @@ -1586,7 +1586,8 @@ sub GetRcLinesFor { rcclusteronly rcfilteronly match lang followup); # parsing and filtering my @result = (); - open(F, '<:encoding(UTF-8)', $file) or return (); + # using :utf8 instead of :encoding(utf-8) to avoid validation and warnings on corrupt files :( + open(F, '<:utf8', $file) or return (); while (my $line = ) { chomp($line); my ($ts, $id, $minor, $summary, $host, $username, $revision,