This queue is for tickets about the HTML-Parser CPAN distribution.

Report information
The Basics
Id:
11380
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
vek [...] pharmapartners.nl
Cc:
AdminCc:

BugTracker
Severity:
Normal
Broken in:
3.45
Fixed in:
(no value)



Subject: make test fails when LANG indicates an utf-8 environment
An a RedHat AS3.0 system with perl 5.8.0 make test fails when LANG indicates utf-8 environment. If the LANG variable is cleared the test passes. I hope the attached file will be included. It is a typescript of running make test with or without LANG being set to UTF-8. Villy

Message body not shown because it is not plain text.

[guest - Fri Feb 4 10:21:32 2005]:
Show quoted text
> > > An a RedHat AS3.0 system with perl 5.8.0 make test fails when > LANG indicates utf-8 environment. If the LANG variable is cleared > the test passes. > > I hope the attached file will be included. It is a typescript of > running make test with or without LANG being set to UTF-8. > > Villy
Further information: In the test t/entities.t there are six lines like: print "ok n\n" if ..... for n 1 through 6. Should be: print "not " unless ..... print "ok n\n"; So failed test results in "not ok ?" instead of printing nothing. Next: If you change Entities.pm so you replace the iso8859-1 characters with their equivalent unicode hex values the function works much better in a utf-8 environment. For example AElig => chr(0xc6), #capital AE diphtong (ligature) After this change the test t/entities.t will pass regardless of the value of the LANG variable and I expect it will still be compatible with 5.005 of perl. Following perl script can easily patch he Entities.pm module. It must run with LANG clear or you may see utf-8 problems. #!/usr/bin/perl -p s/=> '([\x80-\xff])',/sprintf q#=> chr(0x%02x),#, ord $1/e; __END__ I guess bug 2155 and 5531 is a duplicate of this one. Villy


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.