The patch is obvious. There's a test for the case, too.

--- Compiler.pm.orig    Tue May 18 18:32:59 2004
+++ JIT/Compiler.pm     Tue May 18 18:33:52 2004
@@ -131,7 +131,7 @@
   SV * temp_sv;
   int i;
   STRLEN len;
-  char c;
+  unsigned char c;
   char buf[4];
 
   SvPOK_on(result);


--- 10escape.t.orig     Tue May 18 18:39:12 2004
+++ 10escape.t  Tue May 18 18:42:03 2004
@@ -1,4 +1,4 @@
-use Test::More tests => 3;
+use Test::More tests => 4;
 use HTML::Template::JIT;
 my $debug = 0;
 
@@ -35,3 +35,13 @@
 $output = $template->output;
 like($output, qr/Some URL escaped stuff:/); 
 
+# test 8bit char in urlescaped var
+$template = HTML::Template::JIT->new(
+                                     filename => 'urlescape.tmpl',
+                                     path => ['t/templates'],
+                                     jit_path => 't/jit_path',
+                                     jit_debug => $debug,
+                                    );
+$template->param(STUFF => "\xf4"); #"
+$output = $template->output;
+like($output, qr/%F4/); #"


-- 
Alex Kapranoff.


-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to