W3C home > Mailing lists > Public > www-validator-cvs@w3.org > April 2007

validator/httpd/cgi-bin check,1.502,1.503

From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 24 Apr 2007 06:48:06 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1HgEoo-0002XM-Lc@lionel-hutz.w3.org>

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

Modified Files:
	check 
Log Message:
Looks like we were decoding bytes, but forgetting to re-encode in utf8...

See http://www.w3.org/Bugs/Public/show_bug.cgi?id=4474



Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.502
retrieving revision 1.503
diff -u -d -r1.502 -r1.503
--- check	19 Apr 2007 07:28:43 -0000	1.502
+++ check	24 Apr 2007 06:48:04 -0000	1.503
@@ -2041,7 +2041,7 @@
 
   # Try to transcode
   eval {
-    $output = Encode::decode($cs, $input, Encode::FB_CROAK);
+    $output = Encode::encode("utf8", Encode::decode($cs, $input, Encode::FB_CROAK));
   };
 
   # Transcoding failed
Received on Tuesday, 24 April 2007 06:48:11 GMT

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