You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@velocity.apache.org by cb...@apache.org on 2020/05/30 13:18:12 UTC

[velocity-site] branch master updated: [site] Remove obsolete char encoding fix

This is an automated email from the ASF dual-hosted git repository.

cbrisson pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/velocity-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 3ab5f3f  [site] Remove obsolete char encoding fix
3ab5f3f is described below

commit 3ab5f3f21dbff1d5910dba0190b190ce0cd7cdbc
Author: Claude Brisson <cl...@renegat.net>
AuthorDate: Sat May 30 15:18:06 2020 +0200

    [site] Remove obsolete char encoding fix
---
 src/lib/view.pm | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/src/lib/view.pm b/src/lib/view.pm
index c671126..a6f8360 100644
--- a/src/lib/view.pm
+++ b/src/lib/view.pm
@@ -13,7 +13,6 @@ use Date::Format;
 use Date::Parse;
 use LWP::Simple;
 use File::Temp qw/tempfile/;
-use utf8;
 use HTML::Entities;
     
 # set to 1 for some debug output
@@ -36,9 +35,6 @@ sub changes_report
     # hack to fix an error in the XML up to 1.7
     $xml =~ s/<scope>/&lt;scope&gt;/;
 
-    # hack to fix non-utf8 chars
-    utf8::encode($xml);
-
     my ($fh, $filename) = tempfile("XXXXXX");
     print $fh $xml;
     close $fh;
@@ -56,9 +52,6 @@ sub source_file
 
     $content = "" if not $content;
 
-    # hack to fix non-utf8 chars
-    utf8::encode($content);
-
     # extension gives lexer used for code highlighting
     if ($url =~ /\.([a-z]+)$/i)
     {
@@ -88,9 +81,6 @@ sub team()
     my $xml = get 'https://gitbox.apache.org/repos/asf?p=velocity-master.git;a=blob_plain;f=pom/pom.xml;hb=HEAD';
     my ($fh, $filename) = tempfile("XXXXXX");
 
-    # hack to fix non-utf8 chars
-    utf8::encode($xml);
-
     print $fh $xml;
     close $fh;
     my $pmc = `xsltproc stylesheets/pmc.xsl $filename`;