Bug 82144 - CPAN installation of Template Toolkit 2.08 fails tests
CPAN installation of Template Toolkit 2.08 fails tests
Product: Red Hat Linux
Classification: Retired
Component: perl (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Warren Togami
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2003-01-17 23:15 EST by Shankar Unni
Modified: 2007-04-18 12:50 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-05-28 03:24:38 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Shankar Unni 2003-01-17 23:15:00 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2)
Gecko/20021120 Netscape/7.01

Description of problem:
If I use the CPAN module to install the Template Toolkit:

  perl -MCPAN -e 'install "Template"'

(Template toolkit downloaded is 2.08), I get a failure in an HTML test (#3 out
of 10 in t/html.t).

Using Perl 5.8.0 out of the box (from the RPM in the 8.0 media).

The precise test is:

-- test --
[% TRY;
      "Léon Brocard" | html_entity;
-- expect --
-- process --
[%  IF entities -%]
Léon Brocard
[%- ELSE -%]
html_all error - cannot locate Apache::Util or HTML::Entities
[%- END %]

It seems this test is throwing an error.

It does work fine on Perl 5.6.1 on a RedHat 7.2 box.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
See above: execute

  perl -MCPAN -e 'install "Template"'

Actual Results:  A single failure running the "html" tests, and so CPAN refuses
to install the package.

Expected Results:  No failures, successful install.

Additional info:

Bugzilla depends on the Template toolkit, so this is (for us, anyway) severe..
Comment 1 Chip Turner 2003-01-18 08:33:17 EST
this is a false breakage.  try the following:

export PERLIO=stdio
perl -MCPAN -e 'install "Template"'

That will probably be a sufficient workaround.  Or you can try the latest perl
in Rawhide.  The core issue is utf8 trouble, most of which is fixed in the
latest perl.
Comment 2 Shankar Unni 2003-01-23 13:41:31 EST
Ah, a chance to add this back.

I'm reopening, but only for a suitable resolution.  The underlying cause indeed
seems to be UTF-8, but the suggested workaround (PERLIO setting) didn't work. 

Turns out RH8 sets the LANG by default (for US locale) to en_US.UTF-8. Changing
LANG to the setting from previous versions (en_US.iso885915) makes the install
work correctly.
Comment 3 Warren Togami 2005-05-28 03:24:38 EDT
Closing due to lack of activity and likely fixed in modern perl.  If this is
still an issue in RHEL4, FC3 or FC4 please open a new bug with new test
information and exact versions of packages.

Note You need to log in before you can comment on or make changes to this bug.