W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2010

link-checker commit: Try enabling UTF-8 mode in HTML::Parser (#3289).

From: Mercurial notifier <nobody@w3.org>
Date: Thu, 05 Aug 2010 14:47:05 +0000
To: link-checker updates <www-validator-cvs@w3.org>
Message-Id: <E1Oh1ir-0005mG-3p@blinky.w3.org>
changeset:   140:0f7bfe8ed86d
user:        ville
date:        Thu May 25 08:50:50 2006 +0000
files:       bin/checklink
description:
Try enabling UTF-8 mode in HTML::Parser (#3289).


diff -r ceaf7314619c -r 0f7bfe8ed86d bin/checklink
--- a/bin/checklink	Thu May 25 07:59:58 2006 +0000
+++ b/bin/checklink	Thu May 25 08:50:50 2006 +0000
@@ -5,7 +5,7 @@
 # (c) 1999-2005 World Wide Web Consortium
 # based on Renaud Bruyeron's checklink.pl
 #
-# $Id: checklink,v 4.30 2006-05-25 07:59:58 ville Exp $
+# $Id: checklink,v 4.31 2006-05-25 08:50:50 ville Exp $
 #
 # This program is licensed under the W3C(r) Software License:
 #       http://www.w3.org/Consortium/Legal/copyright-software
@@ -123,7 +123,7 @@
   $PROGRAM     = 'W3C-checklink';
   $VERSION     = '4.2.1';
   $REVISION    = sprintf('version %s (c) 1999-2005 W3C', $VERSION);
-  my ($cvsver) = q$Revision: 4.30 $ =~ /(\d+[\d\.]*\.\d+)/;
+  my ($cvsver) = q$Revision: 4.31 $ =~ /(\d+[\d\.]*\.\d+)/;
   $AGENT       = sprintf('%s/%s [%s] %s',
                          $PROGRAM, $VERSION, $cvsver, LWP::RobotUA->_agent());
 
@@ -1194,6 +1194,7 @@
 sub new
 {
   my $p = HTML::Parser::new(@_, api_version => 3);
+  eval { local $SIG{__DIE__}; $p->utf8_mode(1); };
 
   # Start tags
   $p->handler(start => 'start', 'self, tagname, attr, text, line');
Received on Thursday, 5 August 2010 14:47:20 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:43 UTC