W3C home > Mailing lists > Public > www-validator-cvs@w3.org > February 2009

validator/httpd/cgi-bin check,1.642,1.643

From: Ville Skytta via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 04 Feb 2009 20:01:42 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1LUnwM-00031D-28@lionel-hutz.w3.org>

Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv11521/httpd/cgi-bin

Modified Files:
	check 
Log Message:
Make Encode::JIS2K optional.

Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.642
retrieving revision 1.643
diff -u -d -r1.642 -r1.643
--- check	3 Feb 2009 00:43:36 -0000	1.642
+++ check	4 Feb 2009 20:01:39 -0000	1.643
@@ -52,7 +52,6 @@
 use Encode::Alias             qw();
 use Encode::HanExtra          qw(); # for some chinese character encodings,
                                     # e.g gb18030
-use Encode::JIS2K             qw(); # ditto extra japanese encodings
 use File::Spec::Functions     qw(catfile);
 use HTML::Encoding       0.52 qw();
 use HTML::Parser         3.24 qw(); # Need 3.24 for $p->parse($code_ref)
@@ -223,7 +222,10 @@
   };
 $RSRC = \%rsrc;
 
-
+eval {
+  local $SIG{__DIE__};
+  require Encode::JIS2K; # for optional extra Japanese encodings
+};
 
 } # end of BEGIN block.
 
Received on Wednesday, 4 February 2009 20:01:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:08 GMT