Re: [htmltmpl] Parsing bug under Perl 5.6.1, and a fix
Brought to you by:
samtregar
From: Sam T. <sa...@tr...> - 2006-05-23 18:43:14
|
On Tue, 23 May 2006, Josh Clark wrote: > Here's a strange bug that I encountered while running HTML::Template 2.8 > under Perl 5.006001 (doesn't happen in the various flavors of 5.8 that I've > tried). Sounds like a good reason to upgrade. > The problem appears to be related to the uc function in line 1969: > > $which = uc($1); # which tag is it > > Doing something with $1 (e.g. printing it or assigning it to a variable) > before calling the uc function fixes the problem. > > $which = $1; > $which = uc($1); # which tag is it I've seen this kind of Perl bug before in 5.6.x Perls when dealing with UTF-8 data. Are you intentionally doing UTF-8 work with Perl 5.6? If not maybe you can force the data to be treated as plain ascii, perhaps by playing with your LC_LANG setting. -sam |