HTML::Template 2.6 dies with templates stored by Perl as UTF-8 under perl-5.8.0-88 packaged by RedHat. Again, H::T is victim of buggy Unicode.
The script below causes HTML::Template to die complaining of invalid template syntax. This occurs on RedHat 8.0 (linux 2.4.18-...) and RedHat 9.0 (linux 2.4.20-...). We've worked around it on both RH8.0 and RH9.0 by downgrading to perl-5.8.0-55. This is similar but not a duplicate of the bug discussed here late in 2002: http://www.mail-archive.com/[EMAIL PROTECTED]/msg00330.html So I've already got that patch in place: $which = $1; $which = uc($which); ####### reproduce the bug ####### #!/usr/local/bin/perl -w use strict; use HTML::Template; my $template = q(<html>).chr(560).q(<TMPL_VAR NAME=foo></html>); my $ht = HTML::Template->new(scalarRef=>\$template); print "ok 1\n"; ##Another way to get it to die by making sure it's in memory as utf8. #use Encode; #my $template2 = q(<html><TMPL_VAR NAME=foo></html>); #my $decoded2 = Encode::decode('iso-8859-1', $template2); #my $ht2 = HTML::Template->new(scalarRef=>\$decoded2); #print "ok 2\n"; ####### /reproduce the bug ####### Where else can I report this bug? Not to bugzilla.redhat.com because RedHat does not package HTML::Template, right? What about the perl-porters? The script to reproduce the bug causes this die: HTML::Template->new() : Syntax error in <TMPL_*> tag at /fake/path/for/non/file/template : 1. at /usr/lib/perl5/site_perl/5.8.0/HTML/Template.pm line 2243. It's not just H::T that has trouble with RedHat perl-5.8.0-88: http://www.livejournal.com/users/jwz/257602.html http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=102106 Thanks in advance for any help, Bryan Cribbs and Brandon Bowersox ([EMAIL PROTECTED]) ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Html-template-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/html-template-users