Subject: | bug-HTML-FromText |
Date: | Mon, 20 Aug 2012 22:51:29 +0000 |
To: | "'bug-HTML-FromText [...] rt.cpan.org'" <bug-HTML-FromText [...] rt.cpan.org> |
From: | Roland Soderstrom <Rolands [...] logicaltech.com.au> |
Hi,
First of all, I'm not a perl programmer.
I use a lot of tools that requires perl and have used a lot of modules from CPAN.
Running some tools often has a requirement of some perl modules.
The effort all the programmers are making to make life easier for the rest of us is upon words.
Keep up the good work! You're all awesome.
I struggled a day trying to get HTML::FromText to work on Solaris 10.
Finally I found what the problem was and would like to report my findings.
I'm using vanilla Solaris 10 perl.
This is perl, v5.8.4 built for i86pc-solaris-64int
SunOS pxym01 5.10 Generic_147441-19 i86pc i386 i86pc
The dependencies was as always a bit of a struggle to sort out, this is what I had to install in this order.
HTML-Tagset-3.20
HTML-Parser-3.69
Email-Date-Format-1.002
Test-Simple-0.92
Test-Harness-3.17
TimeDate-1.20
Pod-Escapes-1.04
Pod-Simple-3.23
Test-Pod-1.45
MailTools-2.06
Email-Valid-0.190
Email-Find-0.10
Email-Find-0.10
Exporter-Lite-0.02
Scalar-List-Utils-1.21
HTML-FromText-2.05
All compile and test fine except HTML-FromText-2.05 which fails "make test" but compiles fine.
It turned out it can't handle ' see below at --> O'Reilly
root@pxym01:/var/tmp/perl-modules/HTML-FromText-2.05# make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.tt/01_features.t .. 1/?
# Failed test 'indented tables with normal para'
# at t/01_features.t line 286.
# got: '<table class="hft-tables">
# <tr><td>http://www.pm.org</td><td>Perl Mongers</td></tr>
# <tr><td>http://perl.com</td><td>O 'Reilly Perl Center</td></tr>
# <tr><td>http://lists.perl.org</td><td>List of Mailing Lists</td></tr>
# <tr><td>http://use.perl.org</td><td>Perl News and Community Journals</td></tr>
# <tr><td>http://perl.apache.org</td><td>mod_perl</td></tr>
# <tr><td>http://theperlreview.com</td><td>The Perl Review</td></tr>
# </table>
# '
# expected: '<table class="hft-tables">
# <tr><td>http://www.pm.org</td><td>Perl Mongers</td></tr>
# <tr><td>http://perl.com</td><td>O'Reilly Perl Center</td></tr>
# <tr><td>http://lists.perl.org</td><td>List of Mailing Lists</td></tr>
# <tr><td>http://use.perl.org</td><td>Perl News and Community Journals</td></tr>
# <tr><td>http://perl.apache.org</td><td>mod_perl</td></tr>
# <tr><td>http://theperlreview.com</td><td>The Perl Review</td></tr>
# </table>
# '
# Looks like you failed 1 test of 28.
Simply removing the ' in the test file (there is another ' as well in t/02_v2.01.t ) makes the test run clean.
Is there another module that fixes this or is it a bug in HTML::FromText?
There is a lot of reports that this module won't PASS. http://search.cpan.org/~cwest/HTML-FromText-2.05/
I guess it will work just fine as long as I avoid using ' in the translated text.
Best Regards,
Roland Soderstrom | Senior System Administrator
Direct 03 8643 6485 | Mobile 0425 362 611 | Office 03 8643 6444
Email rolands@logicaltech.com.au<mailto:rolands@logicaltech.com.au> | Web www.logicaltech.com.au<http://www.logicaltech.com.au/>
[Description: 25 years email signature 75%]
Disclaimer: This message contains privileged and confidential information intended only for the use of the addressee named above.
If you are not the intended recipient of this message you must not disseminate, copy or take any action in reliance on it.
Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of the company.